Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp74927rdb; Thu, 5 Oct 2023 17:34:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEm8w/yV/zHqdPRg+CPec0NGqIvK79ZEBbCxHxjIUisg6xUf1s+fNwLvIW4f/KZ+xleg+Ty X-Received: by 2002:a17:902:720a:b0:1c4:72c9:64ef with SMTP id ba10-20020a170902720a00b001c472c964efmr6498395plb.40.1696552465850; Thu, 05 Oct 2023 17:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696552465; cv=none; d=google.com; s=arc-20160816; b=UmidKXBw80S0MFGsSBH8mRL9J8WhVF0XsLzzah2n4f9uze1CZM6BRGvW4R6Yey+vmk GJ60qULtE+2XZx62YovTlFxbxChgDRqmCJAHS5zgVuLkvHgctYUEcyJ3xJol29TIvJuM 1OFPAfygCbAku69Zm/pMI7hMJ+JljodrU2JFn7Usmc5XZs8+XCPvDPJQ5mne7XexHf3B SK2WM1V4WM7PQgRiX4iZL4z9DeSzPffupYhy2yIeUdWhuZqegU/A0/0xNyYfRKdMUwr9 bNfXYPp0KvmWL4EuNIujfQitCFgFtv9uha62bvA+FInaP1nllHMdqduGLGOHNrD+EIc+ t7yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ttASz5PFIq45SB63T27urLBr0KsSG9UVkEiGsDKUa0w=; fh=HVwtvmm9c22OJQLCUZL2inZSf9v419gurWyvDvs4c/s=; b=GOPRAlGYoQ1V7ji3DBLU0NqjBPyS/2eHxJYTpLrhIo8lj9IhiLlhNDA4cMmkdbkA3u Cyu2stR3in8lDijaZsbM/LK4AULw2Qo9QK4ki1hVZ8M29yeBBuelUJcd/KfvN5obHXXR SscGARumo8tR4eIxmVt7GxgvsyPVtReJje024cXpv3KYQGkhp13lJEwrzO2iQvrTikeq nesKVcvmP8Izee+0K9vcGvCElgbjDLhBaAPPcO2kvwT3AG6WQg7RMCXWSn0fjKtOdkax /b6Ux6XHMUNNDrLN0jXbMmA5BD2SLbEx8f0FloOTTUeHRchibixrpGh4/S3eMI6U9G6E dk5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=hKPxUN2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id w4-20020a170902d3c400b001b874c5f7a8si2295454plb.653.2023.10.05.17.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 17:34:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=hKPxUN2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6BCD48075173; Thu, 5 Oct 2023 17:34:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229570AbjJFAdg (ORCPT + 99 others); Thu, 5 Oct 2023 20:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjJFAde (ORCPT ); Thu, 5 Oct 2023 20:33:34 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A01DE for ; Thu, 5 Oct 2023 17:33:30 -0700 (PDT) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 967B52C043C; Fri, 6 Oct 2023 13:33:28 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1696552408; bh=ttASz5PFIq45SB63T27urLBr0KsSG9UVkEiGsDKUa0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hKPxUN2ex/Y4eOieQZTMuQHLBMXtMUO8ORdjwqwPX5BZbjKwjkKAMWLyOxj8AlJiH RowRJanGmiQ4O/avQFu+UIdCAU8QPvTHARy7dnOwyX1mtTBvAPMNbNNO56swYbgVOy G5+ZITtpK6ZJwxUggBoxzsIwYHpmraLLadyf085eKuCLXv2DFpJt7Ji34r8WOo+f3D tyK8GYF8cfEt4EF5OsUe0eS2vkRvI/CWEpqSVaOSc7XeafYtxwP3tp4BpYOWQBIpZi wjl20mN4ePNgxFUTL89Byqe9dh3Gc/7myij3YBT7cKLRqsEfaJCwHIj7gsjmNIhorm MEN2qSV1lbrnw== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Fri, 06 Oct 2023 13:33:28 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 5A7BA13EE85; Fri, 6 Oct 2023 13:33:28 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 59C3028084D; Fri, 6 Oct 2023 13:33:28 +1300 (NZDT) From: Chris Packham To: gregory.clement@bootlin.com, andi.shyti@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, pierre.gondois@arm.com Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v2 2/3] arm64: dts: marvell: AC5: use I2C unstuck function Date: Fri, 6 Oct 2023 13:33:20 +1300 Message-ID: <20231006003321.2100016-3-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231006003321.2100016-1-chris.packham@alliedtelesis.co.nz> References: <20231006003321.2100016-1-chris.packham@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=Vf2Jw2h9 c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=bhdUkHdE2iEA:10 a=Jm_8IDygZZvVWM1ZSnEA:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 05 Oct 2023 17:34:04 -0700 (PDT) The AC5 SoC supports using a controller based I2C unstuck function for recovery. Use this instead of the generic GPIO recovery. Signed-off-by: Chris Packham --- arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/b= oot/dts/marvell/ac5-98dx25xx.dtsi index c9ce1010c415..e52d3c3496d5 100644 --- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi +++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi @@ -137,7 +137,7 @@ mdio: mdio@22004 { =20 i2c0: i2c@11000{ compatible =3D "marvell,mv78230-i2c"; - reg =3D <0x11000 0x20>; + reg =3D <0x11000 0x20>, <0x110a0 0x4>; #address-cells =3D <1>; #size-cells =3D <0>; =20 @@ -146,17 +146,14 @@ i2c0: i2c@11000{ interrupts =3D ; clock-frequency=3D<100000>; =20 - pinctrl-names =3D "default", "gpio"; + pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins>; - pinctrl-1 =3D <&i2c0_gpio>; - scl-gpios =3D <&gpio0 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; - sda-gpios =3D <&gpio0 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status =3D "disabled"; }; =20 i2c1: i2c@11100{ compatible =3D "marvell,mv78230-i2c"; - reg =3D <0x11100 0x20>; + reg =3D <0x11100 0x20>, <0x110a4 0x4>; #address-cells =3D <1>; #size-cells =3D <0>; =20 @@ -165,11 +162,8 @@ i2c1: i2c@11100{ interrupts =3D ; clock-frequency=3D<100000>; =20 - pinctrl-names =3D "default", "gpio"; + pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c1_pins>; - pinctrl-1 =3D <&i2c1_gpio>; - scl-gpios =3D <&gpio0 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; - sda-gpios =3D <&gpio0 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status =3D "disabled"; }; =20 --=20 2.42.0