From patchwork Mon Dec 18 12:54:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13496895 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 01DA3C46CCD for ; Mon, 18 Dec 2023 12:56:43 +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=6UabhOhIDUTvS6JgKj+H5ORXhtCL6zAHzon/79Lj+Q4=; b=Ruf2PPgSG2oCvF pnuAdji2q31w51QzS1qLuzADghYVn6DXKeW/VdH3u5AVhv9ZIjtGLOt0d1F0LledbffeiNvR+NX9h ZG3Ip6nd1D45ursXN4Wj7OhsEV/vQjZk1zonO4kgkWeMM2VAKGN57YKWOJkovKuPzQ9aF868V7tat axgXQkwfyiWrdH1hHZ1/FqwKXOjGDfLYa9sB3YDHLO7i0nYt4zyIE3hrAxe5XZwPswE/4Kn6THVrI nBjlcqdfp/YQztAKGvcoKe6Vp4b8jeS3gMhHqG3WwAw6yWoVRiIqh/VV9eordcKn9Dk6d7u7HgaGa sIXd6ubG8Al/8DbSdunw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFDAH-00AjKs-29; Mon, 18 Dec 2023 12:56:10 +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 1rFD9J-00AiXa-2Y 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=dMNTcEryUPOJQdA6zyo/HXjDgsyIOb6uDssYvhqhwu0=; b=jhO8XBx7D3UPOm1ep6+LzWr+9kURFUCvMBHWztWlUfvwpmm+UNpDUDXN DL6905DO+MKQhvEDgD8OZ/1Q8TJjepdnJLVAxDH8KSXsHaTZZCd4CWLg5 m9agOYnQIM39+mqHT8RBKIA5lklwx+5zt5axXcYsuR7sxU7XjjOq2nW+m 8jVQv2ZIJ0eYX5fNOd85QYREqTmTdQYR2ttjKlGaetVX2JI7inAjCPkMj JMyPDKPmVr9dRdzNX/6l4h4TV5F1mtwhkGA04kAFBWjHWMfNLyzmvBMxk g41Q7AGVvFJYHOoQVXdgUz+P3Gt9Xc4dBvYmiFAYRK64C/3sArGSjb0uv w==; X-IronPort-AV: E=Sophos;i="6.04,285,1695679200"; d="scan'208";a="34562701" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Dec 2023 13:55:01 +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 49B8B28008E; 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 10/23] ARM: dts: imx7-tqma7: Add i2c bus recovery Date: Mon, 18 Dec 2023 13:54:46 +0100 Message-Id: <20231218125459.2769733-11-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_132439_70CE4515 X-CRM114-Status: GOOD ( 10.99 ) 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 i2c1. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi index e6e40747d5b9..a68f567010f2 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi @@ -30,8 +30,11 @@ qspi-reset-hog { }; &i2c1 { - pinctrl-names = "default"; + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c1>; + pinctrl-1 = <&pinctrl_i2c1_recovery>; + scl-gpios = <&gpio4 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio4 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; clock-frequency = <100000>; status = "okay"; @@ -168,6 +171,12 @@ pinctrl_i2c1: i2c1grp { ; }; + pinctrl_i2c1_recovery: i2c1recoverygrp { + fsl,pins = + , + ; + }; + pinctrl_pmic1: pmic1grp { fsl,pins = ;