From patchwork Mon Dec 18 12:54:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13496901 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 7D1B2C35274 for ; Mon, 18 Dec 2023 12:56:50 +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=pgX0D92IsS2/M/J7EaPDbxsBtA/3yMGvft0B9RFSqBs=; b=1/BCGGvTEZMYLf mk27JzljYj6S84QSX7VSFASZSky1AmcqZu2j5wqnc36w9BsOJNa6qwh9bajTbxTDqOmcglKVsNJuV VE59KHoVHRG3alO8PgQ1fI6ml39EqeeeSFmW7ce78UISckwTlX7Ca1dwGWF6WtunII2+ozHDRwQfG Xm0DofIg773WI/EpJVfVZrnDNJaoB79Ptn4JvzLBRRHxEGhl1Nufd4kULyaGm6UAwi56P5lcPCKCT L+XIRyewte2CstsDubx98u5C0WCAtODuwSZisfequsvq41NzYj0sYoLqlBZTuVXLFATz4nTG+1mJ8 +/5t+Mpo/XefuGmWCjKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFDAJ-00AjMZ-2q; Mon, 18 Dec 2023 12:56:11 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFD9K-00AiXB-0E for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2023 12:55:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1702904110; x=1734440110; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LhOaiWoTwAnhyIVZhpJf6gdGNYqUMdBRr/p/4Zp+P/8=; b=a0YbRegl1hgLxMh6n2IOwKXlQjLprUux3TCJsQ24vKMSXuoAHtDj6cP/ 9WE7IuszaOIpe0FpUj80pfGL/nJyhufDlDql8djqmLKv49A8+l1t5uj4H sFpcIUry2CGrA3BBIbWWfY2QtM5+O5oVSV1HZuoHmJz9dj5YlubNT6vBv pnA8wDdKqmHI/wRRugzr5+Si/WEBas6xFGLmtiBRe91sTU9a4kL8hD9C4 xQtu8xPYOsPUqB5486eFfBnV+qNBJCHD14/ylURvo+XXK2pCJ9DwM3aDt 8Kc07buuxHYUMsETHO5y2fXh4+uACXxvXqyrjGCEBSoMhBnzC6Mt7ZS8G A==; X-IronPort-AV: E=Sophos;i="6.04,285,1695679200"; d="scan'208";a="34562702" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Dec 2023 13:55:02 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 8441F280096; Mon, 18 Dec 2023 13:55:01 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux@ew.tq-group.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 11/23] ARM: dts: imx7-mba7: Add i2c bus recovery Date: Mon, 18 Dec 2023 13:54:47 +0100 Message-Id: <20231218125459.2769733-12-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231218125459.2769733-1-alexander.stein@ew.tq-group.com> References: <20231218125459.2769733-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_045510_582737_527A275A X-CRM114-Status: GOOD ( 11.20 ) 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 the pin muxing and GPIO settings for SCL/SDA for i2c2 & i2c3. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi index e887889816c7..f72fd912e1a6 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi @@ -309,8 +309,11 @@ lm75: temperature-sensor@49 { &i2c2 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2_recovery>; + scl-gpios = <&gpio4 10 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio4 11 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; tlv320aic32x4: audio-codec@18 { @@ -338,8 +341,11 @@ pca9555: gpio-expander@20 { &i2c3 { clock-frequency = <100000>; - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c3>; + pinctrl-1 = <&pinctrl_i2c3_recovery>; + scl-gpios = <&gpio4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; }; @@ -424,12 +430,24 @@ pinctrl_i2c2: i2c2grp { ; }; + pinctrl_i2c2_recovery: i2c2recoverygrp { + fsl,pins = + , + ; + }; + pinctrl_i2c3: i2c3grp { fsl,pins = , ; }; + pinctrl_i2c3_recovery: i2c3recoverygrp { + fsl,pins = + , + ; + }; + pinctrl_pca9555: pca95550grp { fsl,pins = ;