From patchwork Mon Apr 8 12:23:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Ray X-Patchwork-Id: 13621080 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 24C37C67861 for ; Mon, 8 Apr 2024 12:24:34 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3CK7glpZeJM9XjYOI9mKNKOd56reXE4GUlv2b+n1ikw=; b=VaAZLPRIjQ+Q1K Wec48760LhdaR5i/xWmeTPn6rorWgcexQI53DfnhXYjAvmNXgfiqFihGmn+XE7OKFXpKTA9zQ4R8S eXqQ9IbqxX8vHNKQk5Rrv1pMc/58u1ATtiMX9KtAd+rPJwPk0LM49onvS4FuL5xj+82+b5A9+jDr9 OErPSMxlVSYVjHfG+SOVaTflrcP+XOaWo5UvsnKGGE6rAfYro+xlfmqAfjIkOryKwIAya25Pzaeus dZC5eaxSdHUJ0ZiDHcAfKl4HUvDkVeLdqdWHyhMEynnkSxA51FoJRkyNZfAHpGNiA8ACszhk06zii ON2sF/qO/PjZb8NL3xmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rto2q-0000000FVPr-3skY; Mon, 08 Apr 2024 12:24:16 +0000 Received: from mx0a-00176a03.pphosted.com ([67.231.149.52]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rto2k-0000000FVPS-1pqm for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 12:24:11 +0000 Received: from pps.filterd (m0047961.ppops.net [127.0.0.1]) by m0047961.ppops.net-00176a03. (8.17.1.24/8.17.1.24) with ESMTP id 438A7ark010515 for ; Mon, 8 Apr 2024 08:24:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= gehealthcare.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=outbound; bh=vG3EaXqf3b262/c0/QoTfdhXWijF6zXQ/VHlqLDA1hs=; b= jk+8p+fCR+KIvao7S5Fu/QH6X9TqxSuKIervYNHHCN9PfucDNBr1g7Cs7PnwI2+n QO3Q1AmZh6CU2liBwnxzziUna5bbw7BP+objIHtXVP5SmIONdpa7+969NlvkSkfA yPQZeonltnEbxT72hFhHyZBMLTlHqD9bK/pf+CVLW9zP6hTcd4fe6yU/vVrdEEPB zSfRjatqqBjrXOjG2BhNm72PrUOj1TAkSQ+SG5V3ccWolV1Q6zvqdhWLLH3PZSWa UwuNn47k32QW7nicDhw4dCNI4CTKIBz5nQ1LAa5ZGpcZC14FpwNHVFn0KVAaG7Xz /+IQyx8elVald/XLkKbUuA== From: Ian Ray To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Ian Ray , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 2/2] arm64: dts: imx8mp-msc-sm2s: Add i2c{1,6} sda-/scl-gpios Date: Mon, 8 Apr 2024 15:23:21 +0300 Message-Id: <20240408122321.464-2-ian.ray@gehealthcare.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240408122321.464-1-ian.ray@gehealthcare.com> References: <20240408122321.464-1-ian.ray@gehealthcare.com> MIME-Version: 1.0 X-Proofpoint-GUID: i1MQOrnHVp0JsXoYqH9Cp3AO0XXywfyW X-Proofpoint-ORIG-GUID: i1MQOrnHVp0JsXoYqH9Cp3AO0XXywfyW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-08_11,2024-04-05_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 clxscore=1015 impostorscore=0 suspectscore=0 phishscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404080095 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_052410_505771_5F382C89 X-CRM114-Status: GOOD ( 10.92 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add i2c{1,6} sda-/scl-gpios with the corresponding pinmux entries. Signed-off-by: Ian Ray --- .../boot/dts/freescale/imx8mp-msc-sm2s.dtsi | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s.dtsi index 940bdbe115a3..aeb557fe9dd6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s.dtsi @@ -200,8 +200,11 @@ ethphy1: ethernet-phy@1 { }; &i2c1 { - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1>; + pinctrl-1 = <&pinctrl_i2c1_gpio>; + scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; clock-frequency = <400000>; status = "okay"; @@ -241,8 +244,11 @@ &i2c5 { }; &i2c6 { - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c6>; + pinctrl-1 = <&pinctrl_i2c6_gpio>; + scl-gpios = <&gpio3 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio3 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; clock-frequency = <400000>; status = "okay"; @@ -606,6 +612,12 @@ pinctrl_i2c1: i2c1grp { ; }; + pinctrl_i2c1_gpio: i2c1gpiogrp { + fsl,pins = + , + ; + }; + pinctrl_i2c2: i2c2grp { fsl,pins = , @@ -636,6 +648,12 @@ pinctrl_i2c6: i2c6grp { ; }; + pinctrl_i2c6_gpio: i2c6gpiogrp { + fsl,pins = + , + ; + }; + pinctrl_lcd0_backlight: lcd0-backlightgrp { fsl,pins = ;