Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2525583rwb; Sun, 4 Sep 2022 18:34:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR7HniNs3J2YSo6mZr1JYKudPv+gk48BAEUmF9vIRdQNWIvjy64SmDKYHal2jMajNdUdzcxo X-Received: by 2002:a17:902:7145:b0:172:fad2:fb71 with SMTP id u5-20020a170902714500b00172fad2fb71mr46529073plm.57.1662341643093; Sun, 04 Sep 2022 18:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662341643; cv=none; d=google.com; s=arc-20160816; b=D8YOA+5VRdXbWK7PqGLMymrLD3n3Mf8MZE8a/vFd9VjZlX83WZ19Z50lTXla1bBf7j kisRlFIY5A5eNFfjz6QfLCkHr8XnwQnCzxk5nkosF5Fjv1RjnrxJQ3ZKCdNoec9r2e7V YQN6F74AajORnve26s5Ok1yvvrZP6T/tUQ7ykLG2wpG1YhNTOTzH4/5sBUwSCm6kZuZ8 ulszmZecHJ/t50d1sAFhIE8+Cpfm+ieLSWLUKKnSjY9zvqsnu8ngnaNYdwTURBWZ1koo mE8C+emRpj97k7b96rItVgK8rmNE6GpEi281HqATC8OFJZB8CaRHRiIe9r02wWZoAWRO bGow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iLE6+31xhEegpGK33dpBxi0hGNJ5NQjTWw9Fc+mhXBI=; b=GJOITftb6V+EMaCXVq9agRwc3CQGxkvX71hjH9roabIE1sfkhOkQfydQIYRgwOKRvz iVMRPIkwgi4py7UxX7RmNMlio1W8Zq4mOd/uytCBePRvqwsUSm8GrrnrRMEkdU1nDoBm YFZNvKoBSXUJLIVIcDdhZPJndQphrZa/VpSoYq6NgT6rWWRw5W3kxZkBV0HWYmtti6ew Tezm815PdlkeMlwRuP7X3BYSmtZEWo7syC0ggAY349SoR+ro/YzzpR51FoBLjvp+3hoa tXiA6n3e4mj/YY7DtF8zSDIppRa4at4cHa4CyqIJz2iG6RhEr3xcm2XW9I1CBGFPr85R 4CNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bwNk0Thx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a056a00228100b0052ab931ec55si10150071pfe.184.2022.09.04.18.33.52; Sun, 04 Sep 2022 18:34:03 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bwNk0Thx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234561AbiIEBGx (ORCPT + 99 others); Sun, 4 Sep 2022 21:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbiIEBGv (ORCPT ); Sun, 4 Sep 2022 21:06:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 916DB26AEF; Sun, 4 Sep 2022 18:06:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2DFD4B80E4F; Mon, 5 Sep 2022 01:06:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF8EDC433D6; Mon, 5 Sep 2022 01:06:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662340007; bh=WHlHuifdgAP3L07PRo0ZESVFpJt3mJTHJqUFvycAowI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bwNk0ThxJwpFzzWy8saa5YQp49fQMKD/CsU0saAAVH26vYzyNsv5avmW1q6U8HjkY hIXkSS4kLxoOd2XVRy6b6J4p448ainTNkro/Te4IC6V0+u7rKg/QumMlKIMcpDhepr /9XsZkng8utT8ExKZwFoyy43/s2H8b7h5fGUKOFAZwMRONF4Or9YtZsPpZeIti5K3n g6OfQVcKv44vvavHXf79/juUDwNh1Sj/CUpjwpHemMb66ayz8lfPJvYbxZToKOZb9D 2PkmEsbildcfZWo0gjFTKf3/pgo6//fx4zl/lutTkwYR2UZZM7D3uvfi3RiEKnuOtD /qrN1oGXWK2YQ== Date: Mon, 5 Sep 2022 09:06:42 +0800 From: Shawn Guo To: Li Yang Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Zhang Ying Subject: Re: [PATCH 08/11] arm64: dts: ls1043a: add gpio based i2c recovery information Message-ID: <20220905010642.GP1728671@dragon> References: <20220824223700.32442-1-leoyang.li@nxp.com> <20220824223700.32442-9-leoyang.li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220824223700.32442-9-leoyang.li@nxp.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Wed, Aug 24, 2022 at 05:36:59PM -0500, Li Yang wrote: > 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-ls1043a.dtsi | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > index b37244acf16a..20888aceb5f4 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > @@ -538,7 +538,7 @@ dspi1: spi@2110000 { > }; > > i2c0: i2c@2180000 { > - compatible = "fsl,vf610-i2c"; > + compatible = "fsl,ls1043a-i2c", "fsl,vf610-i2c"; > #address-cells = <1>; > #size-cells = <0>; > reg = <0x0 0x2180000 0x0 0x10000>; > @@ -553,7 +553,7 @@ i2c0: i2c@2180000 { > }; > > i2c1: i2c@2190000 { > - compatible = "fsl,vf610-i2c"; > + compatible = "fsl,ls1043a-i2c", "fsl,vf610-i2c"; > #address-cells = <1>; > #size-cells = <0>; > reg = <0x0 0x2190000 0x0 0x10000>; > @@ -561,11 +561,12 @@ i2c1: i2c@2190000 { > clock-names = "i2c"; > clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL > QORIQ_CLK_PLL_DIV(1)>; > + scl-gpios = <&gpio4 2 0>; Could you use the polarity define from include/dt-bindings/gpio/gpio.h? Shawn > status = "disabled"; > }; > > i2c2: i2c@21a0000 { > - compatible = "fsl,vf610-i2c"; > + compatible = "fsl,ls1043a-i2c", "fsl,vf610-i2c"; > #address-cells = <1>; > #size-cells = <0>; > reg = <0x0 0x21a0000 0x0 0x10000>; > @@ -573,11 +574,12 @@ i2c2: i2c@21a0000 { > clock-names = "i2c"; > clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL > QORIQ_CLK_PLL_DIV(1)>; > + scl-gpios = <&gpio4 10 0>; > status = "disabled"; > }; > > i2c3: i2c@21b0000 { > - compatible = "fsl,vf610-i2c"; > + compatible = "fsl,ls1043a-i2c", "fsl,vf610-i2c"; > #address-cells = <1>; > #size-cells = <0>; > reg = <0x0 0x21b0000 0x0 0x10000>; > @@ -585,6 +587,7 @@ i2c3: i2c@21b0000 { > clock-names = "i2c"; > clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL > QORIQ_CLK_PLL_DIV(1)>; > + scl-gpios = <&gpio4 12 0>; > status = "disabled"; > }; > > -- > 2.37.1 >