Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp77454rwb; Thu, 22 Sep 2022 14:44:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5gkdyUBT81uRfIo6KVm2h3BpdnsJekKRt8c91dxMRB8xwmbf8cFodmegMpFWPpoId3fvmY X-Received: by 2002:a05:6402:2213:b0:451:a711:13a9 with SMTP id cq19-20020a056402221300b00451a71113a9mr5470292edb.186.1663883078969; Thu, 22 Sep 2022 14:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663883078; cv=none; d=google.com; s=arc-20160816; b=e+KV/Sp7SHNxf57MwSYKs+5m5NiWxh2LIs1nSO4s+VMu4oEz7KHlBjqRja+7q7KNhU RtP/k0Vg7nICegLNWQwaF9HTYbGD1F+a37q0CtnozZeccyEAYt8FxlfdphZurZrsL8bJ vzbelJytM+9CR95ebuvHzrfdlGU7yBGLQpiJNs52T3bM0QdIlXOWQ1A0Yv4A1TkFm94p A6YzcFxSXmmRDxO0WkBdkZ+HnWIixy6v3fRXALVd+sPaPZ0t7lZZmcelW9JhjMM5MgO9 PEQjcjPuJjbRUCABHpcnu+45fLuE4YpW0n89n08w104dUzNRTFY93E7K5RvQ4PTEsmdV 4Wpg== 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; bh=78Hbfc0qSno6OZ1HJWmhR9XJORY3HYeiTgVRKm+G7L8=; b=fz36YFpPIP2bPEk0V8tWN5mUFvgQgjDyj5aFL9sktUBFHrvFPaBDZ1Phpo/ePeZhEp zpfX8fWCSd9/b890GDHI31vtWfcnTh7RjGpT1zdGE/RqKCmsIfpiCDo9U3S/8XNGMeFr 2l9Zy2j9scemkbioFNbfH0hqPt5ZPrUOgZlJIlOMIgjHNtzxcM/HJlsJfT1+iCwdwR9P kFrkWfzWQ3ohYvdz5ceoteQT8M0E9iD5VrYUtHraK5i/v/NoipEvGba5sceTndfnleux od41kpTMPAIGQWzRk7mUBazvtHRHoylxYbEDv3k470pgNspKDRaqyxb/9SIFwK+lkX6F QVYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a056402519000b0043a23aed655si6871227edd.386.2022.09.22.14.44.13; Thu, 22 Sep 2022 14:44:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231499AbiIVVlG (ORCPT + 99 others); Thu, 22 Sep 2022 17:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbiIVVkn (ORCPT ); Thu, 22 Sep 2022 17:40:43 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21D3D8287E; Thu, 22 Sep 2022 14:40:42 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 8F52E200A38; Thu, 22 Sep 2022 23:40:40 +0200 (CEST) Received: from smtp.na-rdc02.nxp.com (usphx01srsp001v.us-phx01.nxp.com [134.27.49.11]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4D782200A0A; Thu, 22 Sep 2022 23:40:40 +0200 (CEST) Received: from right.am.freescale.net (right.am.freescale.net [10.81.116.134]) by usphx01srsp001v.us-phx01.nxp.com (Postfix) with ESMTP id 0F21940AA2; Thu, 22 Sep 2022 14:40:38 -0700 (MST) From: Li Yang To: shawnguo@kernel.org, devicetree@vger.kernel.org Cc: robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Li Yang , Zhang Ying Subject: [PATCH v3 7/9] arm64: dts: ls1046a: add gpios based i2c recovery information Date: Thu, 22 Sep 2022 16:40:28 -0500 Message-Id: <20220922214030.9004-8-leoyang.li@nxp.com> X-Mailer: git-send-email 2.25.1.377.g2d2118b In-Reply-To: <20220922214030.9004-1-leoyang.li@nxp.com> References: <20220922214030.9004-1-leoyang.li@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add scl-gpios property for i2c recovery and add SoC specific compatible string for SoC specific fixup. Signed-off-by: Zhang Ying Signed-off-by: Li Yang --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi index 4d56735b5361..b8967f2027ac 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include / { compatible = "fsl,ls1046a"; @@ -501,7 +502,7 @@ dspi: spi@2100000 { }; i2c0: i2c@2180000 { - compatible = "fsl,vf610-i2c"; + compatible = "fsl,ls1046a-i2c", "fsl,vf610-i2c"; #address-cells = <1>; #size-cells = <0>; reg = <0x0 0x2180000 0x0 0x10000>; @@ -515,35 +516,38 @@ i2c0: i2c@2180000 { }; i2c1: i2c@2190000 { - compatible = "fsl,vf610-i2c"; + compatible = "fsl,ls1046a-i2c", "fsl,vf610-i2c"; #address-cells = <1>; #size-cells = <0>; reg = <0x0 0x2190000 0x0 0x10000>; interrupts = ; clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(2)>; + scl-gpios = <&gpio3 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; }; i2c2: i2c@21a0000 { - compatible = "fsl,vf610-i2c"; + compatible = "fsl,ls1046a-i2c", "fsl,vf610-i2c"; #address-cells = <1>; #size-cells = <0>; reg = <0x0 0x21a0000 0x0 0x10000>; interrupts = ; clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(2)>; + scl-gpios = <&gpio3 10 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; }; i2c3: i2c@21b0000 { - compatible = "fsl,vf610-i2c"; + compatible = "fsl,ls1046a-i2c", "fsl,vf610-i2c"; #address-cells = <1>; #size-cells = <0>; reg = <0x0 0x21b0000 0x0 0x10000>; interrupts = ; clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(2)>; + scl-gpios = <&gpio3 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; }; -- 2.37.1