Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3618213pxb; Mon, 21 Feb 2022 01:59:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMtOpJ8mHYtzR39NhpIddLxiNWB3ScDHktX7b5qjV4SBkntnusnKtqxLgt2L/SHtXRyMvS X-Received: by 2002:a05:6a00:1f07:b0:4e1:3335:9dd6 with SMTP id be7-20020a056a001f0700b004e133359dd6mr19281381pfb.76.1645437544885; Mon, 21 Feb 2022 01:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645437544; cv=none; d=google.com; s=arc-20160816; b=SeC9+GGH1ygL8YdqxZHgDL4YGijcE3Ifu6N6qF2L19hkoAgGHHYbr4NIwjtpFMNBES DIaFNUGL7lYCbjdhvwVsK1+pvl0H3bPFgJlDluYTZU98YpMOy7v+sr10dgRarVkJK2OD rsUsC858gaIbEo+D7wRrn/KcXWIR5bobqQumeARWRxsV0TaUWVzeCCV8nFD85MrPc43a K3LItJPcSqf6HJZQxVvp4SLPXeX6WnW501SpqFS14Kx56ntW07TyF9Sfl4M1F1CEaVZo kqJ7b66AWD9RUij9TAB7+s5YwQUIJVnSzjqeT7nIGMKEPoy7NEfp2xjspW3DP+2LXPo2 SUBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qHDjaVOLJ5AfXl443uHA/iglADxWTjxAF14C6QCFSuY=; b=HXUbYp24Q/V27J+z55mDZJ6ycgJWvakkcXoXoviJrJ/HDswFgoY5MTRXJvbPBNqXc3 BMFk7ioMQgBakuFzmGAX/P8UVfe/IaFvA1S0idVIHFf145XiI3y6thio0Ag+auA+K7ln fPk2/ZCI+BdU0fA6Qt/cagsPzhlaiCjMhdiCAhoS7FRQVT0EozeADLR/IF/+DHvYBHFh mYK0BxZNpNNKMXUig+zbwHsw641I7fjIshSAoaSuwyVandYEVyQabkxRscD0T/KV1fVj 1JpzlVuUQVrdaELX3CK6KTvValR56+zMeaRkRVwvH4W5nGOHeHIhc0SBRhYJ487xpU3X i0Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k4VXj7rF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13si17209337plg.262.2022.02.21.01.58.51; Mon, 21 Feb 2022 01:59:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k4VXj7rF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344187AbiBUDVR (ORCPT + 99 others); Sun, 20 Feb 2022 22:21:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344182AbiBUDVP (ORCPT ); Sun, 20 Feb 2022 22:21:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA61741338; Sun, 20 Feb 2022 19:20:53 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 7451D6113A; Mon, 21 Feb 2022 03:20:53 +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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220211153843.3721618-1-hugo@hugovil.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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!