From patchwork Mon Apr 8 09:24:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Ray X-Patchwork-Id: 13620858 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 46E95CD128A for ; Mon, 8 Apr 2024 09:25:55 +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: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:In-Reply-To:References: List-Owner; bh=9OaiQFN3zcQl1CNBAtHPQDznHnXBAr7CZoK0mEx6FDc=; b=khAIkSO9eRaVXj 4wU9E8hGMjeZbUcTZX68MIwYjVTqvjxvW0eomxzl+5DaGiVybnnFwgjg0ZLD4xX3DNywNDrCwP79Y 8G63bJZKIjYytnxHoZIrEivMMWbIdGrFOhSGG4hHlZWAYi9V/DQcH4b5745mvyh2AS2WkmB4e6ymq Cc2ohe12GVWfdZqeNbvrreiQ6QZhwBQj//jDWNerGtf14df8IBrJLOBHb2C+JOyMCjb5I6fa/MD86 UYcvJSC6JXv/yCm+svcyKGRl7HrvL+mHe1yH7CXDVUuSM9bHznUT5G0u34N91pgGSq3FVcz0tIbU0 g7ZbETruafCCsQ/h2ZVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtlG3-0000000F5WR-3dV0; Mon, 08 Apr 2024 09:25:44 +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 1rtlG0-0000000F5Vz-26Q9 for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 09:25:41 +0000 Received: from pps.filterd (m0047962.ppops.net [127.0.0.1]) by m0047962.ppops.net-00176a03. (8.17.1.24/8.17.1.24) with ESMTP id 4385xlgj015240 for ; Mon, 8 Apr 2024 05:25:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= gehealthcare.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=outbound; bh=qYN2gTSX hF9fQTvXvqjS4pLs+E5SrnBzBEJm94NG1bk=; b=o4vdlasYAGzFSXaGpDDp754F VPkKd1iB60geg86+mCnlAq2BH7pzAV1yC2+cFKO4kw15IhVaEhLlCcsoETCzsy5g 1rk4HqxtLv/JccHcfNQ6ydnIRYQbadwzdIThr0OIfvGW4DJppG2xaWqEgk2j+Yu2 h+SIktSytYfKvkf6Q5vsHqctUZZKLRcBIHXQajKl3BlhHOW+7SxJ5X0o/WvBT1fR n+yw+MJNPKvWdpd5D2fYFENufmBOZ7rRw22uny64qXREkrDurN8sv3rNLidICzW8 zX+yWMEp4pBx4V+iJ4Q5+NaztVbSulQU8ElkSlcQbG2oplH++OZbAIGzCryQng== 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] arm64: dts: imx8mp-msc-sm2s: Add i2c{1,6} sda-/scl-gpios Date: Mon, 8 Apr 2024 12:24:49 +0300 Message-Id: <20240408092449.6-1-ian.ray@gehealthcare.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Proofpoint-GUID: _uYKUPwmQq7RJ5QCw40-SXyvHA-SgL9t X-Proofpoint-ORIG-GUID: _uYKUPwmQq7RJ5QCw40-SXyvHA-SgL9t 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_07,2024-04-05_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 adultscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 spamscore=0 phishscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404080072 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_022540_592182_CB5DCCE3 X-CRM114-Status: GOOD ( 10.67 ) 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 61c2a63efc6d..7e4327084d26 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: i2c5gpiogrp { + fsl,pins = + , + ; + }; + pinctrl_lcd0_backlight: lcd0-backlightgrp { fsl,pins = ;