From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25E73C433EF for ; Mon, 21 Feb 2022 03:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Thr79GlbXRhRPm6XOkfWTQWe8A1TWVFavnHV0M+yabY=; b=wc4FkOc/eqMnU0 dK+YFco9p5c+1cZmh5GQB/uzpsdIhUjIB8Ch2MpsqGQc8DZDg5PT0EOIHIV0qVsbpNGarp3vOkObA GouSSoLkBHFQ9kyXnDj3Lq5rq1zDzIBC8MR7Kqbi0g31GTcZJf6F3yGf0rfn0BFOZLN4xIWUHopCh BYOFOqfpuwgYJ+3UhhpsPfv8B32qDEKLP+AKF9I6yItyRvCGT04HU38pNcFB88PbWyd2zopHyvYoz kWQM0Ub/ZkhXVWifJy52LRMfCX7D7go+wa0iqFZhVL+eESkoyP/xANG4OsYj0Gbn5ph9xWf2lxyKI uUu30Vd9SoXy06/5Uw/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLzFz-003BOz-6P; Mon, 21 Feb 2022 03:20:59 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nLzFv-003BNq-HL for linux-arm-kernel@lists.infradead.org; Mon, 21 Feb 2022 03:20:56 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 38B3CB80E58; Mon, 21 Feb 2022 03:20:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C4EAC340EB; Mon, 21 Feb 2022 03:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645413652; bh=BsOF4O9MtEGZQijN1hcpOFMalvpmK6xjtHuxCcuIQQo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k4VXj7rF+wz86jES+PoZdNgQjJgM2iW96fedLE4I9DomqSA6llWHIZOFHOdK07D5H M99z4xpfQdLrGC0jSP27y7geI7M9aBPb4Vk+CbQxrs62ViFpNXtrDzsdCIiDw0Z97/ 2uEe6A2224Dbv3Pv9tlodMhrjl07sns0RsTETb1XG2TEoEwV/D4tPCcvS92hy8BFbd z/JDDYKIN1XY6GlLYvPZHF6vVInpGPKAiq7jAo7cFxqlBOEaVFsrQ/zcc1kHQd3yWT 2ttjjUXHkbiUBuwUDdmGnokynoQRUXvUEqLfeDD+ejZB3klS0VdGzW/jSK9bP+a8Wd FFoPlzA4kZiWA== Date: Mon, 21 Feb 2022 11:20:46 +0800 From: Shawn Guo To: Hugo Villeneuve Cc: Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Hugo Villeneuve , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: imx8mp-evk: add support for I2C5 Message-ID: <20220221032046.GG2249@dragon> References: <20220211153843.3721618-1-hugo@hugovil.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220211153843.3721618-1-hugo@hugovil.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220220_192055_740657_0F541532 X-CRM114-Status: GOOD ( 17.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Feb 11, 2022 at 10:38:43AM -0500, Hugo Villeneuve wrote: > From: Hugo Villeneuve > > Add support for i2c5, which is used to access the > external I2C bus on connector J22 of the imx8mp-evk. > > Limit the speed to 100kHz since this is an external I2C bus. > > Disabled by default, since it is shared with the CAN1 bus. > > To enable i2c5, you need to disable the CAN1 function, enable the i2c5 > function and also configure the CAN1/I2C5_SEL GPIO to HIGH to > select i2c5 instead of CAN1. This can be done by defining a gpio-hog > inside the pca6416 node, in your board device tree, like in this example: > > &flexcan1 { > status = "disabled"; > }; > > &i2c5 { > status = "okay"; > }; > > &pca6416 { > can1-i2c5-sel-hog { > gpio-hog; > gpios = <2 GPIO_ACTIVE_HIGH>; > output-high; > line-name = "can1-i2c5-sel"; > }; > }; > > Signed-off-by: Hugo Villeneuve Applied, thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel