Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1480953rwb; Fri, 7 Oct 2022 13:19:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4tY5x9Qj/CLKdakFvNUuX+4h01ojhCF7/Esjb56zw8ECOmIo3OLjG0OneVLKJs67Neaw9C X-Received: by 2002:a17:907:762f:b0:78d:51c1:996b with SMTP id jy15-20020a170907762f00b0078d51c1996bmr4046690ejc.542.1665173961151; Fri, 07 Oct 2022 13:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665173961; cv=none; d=google.com; s=arc-20160816; b=rr/IoDvSkJZkldERYpX8TXAQEUqi/V9Vstay9ops9LXOVk8q1skzjI4q6eLJg7of9R O89pyhAbAsurwbE48qhmr2FN8L/Tw7z1bp2pMkNiqAL3AWYSNQHM7GuXL9QpYhM3Ecgv 45JbmGyGU7TEwddhdpQ8yF0po0ZE4xPAbFlTM/5AB/zVHmjySfZgyx4/qccbkUeZWA5k Da9Ec4zKUDXw6qT3nZgEFvO7B+/qgL6cjEU5MrFi5HGuFS5AYxXVONkFtoZiBMP5WOHb jtz7rgwn4d8xVZ+6AvIefvazGcuBJRQKMUdan6V9KmkSN6Nb4fbkDFBGVL5Yqr9Em8mr kwnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=PbGF80sOUXCNAVpDFeCmJl68dJOfmnOYEQDWtOldjzs=; b=KPBt4XF4cAFZytLpMCXOaz/GM7hKOwSSCpBYXLyFYlVuJzVM6j3hAoxybH5X+IxRna bCsWKapK75KR/KQ8Is725WtosGBJj4K56UUGNgipAs3osmPFmvYnBfWStLWWM0h+7GjA FAGFQ2l3wy7CnTte2ov2QFyfdvg+yS7tLGReKkZGk+7uBOvcTXlpu8defEv1RFHPjby9 jHk6q4HA904QVvxGYjsphGfB1DMyyNDlCwsej04T39XOBEy7JA7iUNE/g7mOdgq36F87 ZD3uydQeWFpCiuEWxoXIfgYSpI+Y0vqRcONtc2MnfV+U+/UQu74Hyqhhy7JGfpISuoNM ogDw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt3-20020a170907728300b0073dc32ccd9fsi3270999ejc.104.2022.10.07.13.18.24; Fri, 07 Oct 2022 13:19:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbiJGTk7 (ORCPT + 99 others); Fri, 7 Oct 2022 15:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbiJGTkl (ORCPT ); Fri, 7 Oct 2022 15:40:41 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [5.144.164.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41D09CC82C for ; Fri, 7 Oct 2022 12:40:37 -0700 (PDT) Received: from [192.168.1.101] (95.49.30.201.neoplus.adsl.tpnet.pl [95.49.30.201]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 8B17B2009D; Fri, 7 Oct 2022 21:40:34 +0200 (CEST) Message-ID: <65bf7993-a2c5-bc80-50d1-7beffa780758@somainline.org> Date: Fri, 7 Oct 2022 21:40:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 3/4] arm64: dts: qcom: sdm630: align TLMM pin configuration with DT schema Content-Language: en-US To: Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221006104104.171368-1-krzysztof.kozlowski@linaro.org> <20221006104104.171368-3-krzysztof.kozlowski@linaro.org> From: Konrad Dybcio In-Reply-To: <20221006104104.171368-3-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6.10.2022 12:41, Krzysztof Kozlowski wrote: > DT schema expects TLMM pin configuration nodes to be named with > '-state' suffix and their optional children with '-pins' suffix. All > nodes for GPIOs must also define the function property. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Konrad Dybcio Konrad > .../boot/dts/qcom/sda660-inforce-ifc6560.dts | 6 +- > .../dts/qcom/sdm630-sony-xperia-nile.dtsi | 18 ++- > arch/arm64/boot/dts/qcom/sdm630.dtsi | 121 ++++++++---------- > .../sdm636-sony-xperia-ganges-mermaid.dts | 2 +- > .../boot/dts/qcom/sdm660-xiaomi-lavender.dts | 6 +- > 5 files changed, 75 insertions(+), 78 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts > index 28050bc5f081..f8f8a9f35e27 100644 > --- a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts > +++ b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts > @@ -401,16 +401,18 @@ vreg_bob: bob { > }; > > &sdc2_state_on { > - sd-cd { > + sd-cd-pins { > pins = "gpio54"; > + function = "gpio"; > bias-pull-up; > drive-strength = <2>; > }; > }; > > &sdc2_state_off { > - sd-cd { > + sd-cd-pins { > pins = "gpio54"; > + function = "gpio"; > bias-disable; > drive-strength = <2>; > }; > diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi > index 09c07800793a..d604a9675508 100644 > --- a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi > @@ -577,16 +577,18 @@ vreg_l19a_3p3: l19 { > }; > > &sdc2_state_on { > - sd-cd { > + sd-cd-pins { > pins = "gpio54"; > + function = "gpio"; > bias-pull-up; > drive-strength = <2>; > }; > }; > > &sdc2_state_off { > - sd-cd { > + sd-cd-pins { > pins = "gpio54"; > + function = "gpio"; > bias-disable; > drive-strength = <2>; > }; > @@ -615,33 +617,35 @@ &sdhc_2 { > &tlmm { > gpio-reserved-ranges = <8 4>; > > - ts_int_active: ts-int-active { > + ts_int_active: ts-int-active-state { > pins = "gpio45"; > + function = "gpio"; > drive-strength = <8>; > bias-pull-up; > }; > > - ts_lcd_id_active: ts-lcd-id-active { > + ts_lcd_id_active: ts-lcd-id-active-state { > pins = "gpio56"; > + function = "gpio"; > drive-strength = <8>; > bias-disable; > }; > > - imx300_vana_default: imx300-vana-default { > + imx300_vana_default: imx300-vana-default-state { > pins = "gpio50"; > function = "gpio"; > bias-disable; > drive-strength = <2>; > }; > > - imx219_vana_default: imx219-vana-default { > + imx219_vana_default: imx219-vana-default-state { > pins = "gpio51"; > function = "gpio"; > bias-disable; > drive-strength = <2>; > }; > > - cam_vdig_default: cam-vdig-default { > + cam_vdig_default: cam-vdig-default-state { > pins = "gpio52"; > function = "gpio"; > bias-disable; > diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi > index 796c19b9b2eb..41481493c1e5 100644 > --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi > @@ -721,35 +721,36 @@ tlmm: pinctrl@3100000 { > interrupt-controller; > #interrupt-cells = <2>; > > - blsp1_uart1_default: blsp1-uart1-default { > + blsp1_uart1_default: blsp1-uart1-default-state { > pins = "gpio0", "gpio1", "gpio2", "gpio3"; > function = "blsp_uart1"; > drive-strength = <2>; > bias-disable; > }; > > - blsp1_uart1_sleep: blsp1-uart1-sleep { > + blsp1_uart1_sleep: blsp1-uart1-sleep-state { > pins = "gpio0", "gpio1", "gpio2", "gpio3"; > + function = "gpio"; > drive-strength = <2>; > bias-disable; > }; > > - blsp1_uart2_default: blsp1-uart2-default { > + blsp1_uart2_default: blsp1-uart2-default-state { > pins = "gpio4", "gpio5"; > function = "blsp_uart2"; > drive-strength = <2>; > bias-disable; > }; > > - blsp2_uart1_default: blsp2-uart1-active { > - tx-rts { > + blsp2_uart1_default: blsp2-uart1-active-state { > + tx-rts-pins { > pins = "gpio16", "gpio19"; > function = "blsp_uart5"; > drive-strength = <2>; > bias-disable; > }; > > - rx { > + rx-pins { > /* > * Avoid garbage data while BT module > * is powered off or not driving signal > @@ -760,7 +761,7 @@ rx { > bias-pull-up; > }; > > - cts { > + cts-pins { > /* Match the pull of the BT module */ > pins = "gpio18"; > function = "blsp_uart5"; > @@ -769,15 +770,15 @@ cts { > }; > }; > > - blsp2_uart1_sleep: blsp2-uart1-sleep { > - tx { > + blsp2_uart1_sleep: blsp2-uart1-sleep-state { > + tx-pins { > pins = "gpio16"; > function = "gpio"; > drive-strength = <2>; > bias-pull-up; > }; > > - rx-cts-rts { > + rx-cts-rts-pins { > pins = "gpio17", "gpio18", "gpio19"; > function = "gpio"; > drive-strength = <2>; > @@ -785,228 +786,216 @@ rx-cts-rts { > }; > }; > > - i2c1_default: i2c1-default { > + i2c1_default: i2c1-default-state { > pins = "gpio2", "gpio3"; > function = "blsp_i2c1"; > drive-strength = <2>; > bias-disable; > }; > > - i2c1_sleep: i2c1-sleep { > + i2c1_sleep: i2c1-sleep-state { > pins = "gpio2", "gpio3"; > function = "blsp_i2c1"; > drive-strength = <2>; > bias-pull-up; > }; > > - i2c2_default: i2c2-default { > + i2c2_default: i2c2-default-state { > pins = "gpio6", "gpio7"; > function = "blsp_i2c2"; > drive-strength = <2>; > bias-disable; > }; > > - i2c2_sleep: i2c2-sleep { > + i2c2_sleep: i2c2-sleep-state { > pins = "gpio6", "gpio7"; > function = "blsp_i2c2"; > drive-strength = <2>; > bias-pull-up; > }; > > - i2c3_default: i2c3-default { > + i2c3_default: i2c3-default-state { > pins = "gpio10", "gpio11"; > function = "blsp_i2c3"; > drive-strength = <2>; > bias-disable; > }; > > - i2c3_sleep: i2c3-sleep { > + i2c3_sleep: i2c3-sleep-state { > pins = "gpio10", "gpio11"; > function = "blsp_i2c3"; > drive-strength = <2>; > bias-pull-up; > }; > > - i2c4_default: i2c4-default { > + i2c4_default: i2c4-default-state { > pins = "gpio14", "gpio15"; > function = "blsp_i2c4"; > drive-strength = <2>; > bias-disable; > }; > > - i2c4_sleep: i2c4-sleep { > + i2c4_sleep: i2c4-sleep-state { > pins = "gpio14", "gpio15"; > function = "blsp_i2c4"; > drive-strength = <2>; > bias-pull-up; > }; > > - i2c5_default: i2c5-default { > + i2c5_default: i2c5-default-state { > pins = "gpio18", "gpio19"; > function = "blsp_i2c5"; > drive-strength = <2>; > bias-disable; > }; > > - i2c5_sleep: i2c5-sleep { > + i2c5_sleep: i2c5-sleep-state { > pins = "gpio18", "gpio19"; > function = "blsp_i2c5"; > drive-strength = <2>; > bias-pull-up; > }; > > - i2c6_default: i2c6-default { > + i2c6_default: i2c6-default-state { > pins = "gpio22", "gpio23"; > function = "blsp_i2c6"; > drive-strength = <2>; > bias-disable; > }; > > - i2c6_sleep: i2c6-sleep { > + i2c6_sleep: i2c6-sleep-state { > pins = "gpio22", "gpio23"; > function = "blsp_i2c6"; > drive-strength = <2>; > bias-pull-up; > }; > > - i2c7_default: i2c7-default { > + i2c7_default: i2c7-default-state { > pins = "gpio26", "gpio27"; > function = "blsp_i2c7"; > drive-strength = <2>; > bias-disable; > }; > > - i2c7_sleep: i2c7-sleep { > + i2c7_sleep: i2c7-sleep-state { > pins = "gpio26", "gpio27"; > function = "blsp_i2c7"; > drive-strength = <2>; > bias-pull-up; > }; > > - i2c8_default: i2c8-default { > + i2c8_default: i2c8-default-state { > pins = "gpio30", "gpio31"; > function = "blsp_i2c8_a"; > drive-strength = <2>; > bias-disable; > }; > > - i2c8_sleep: i2c8-sleep { > + i2c8_sleep: i2c8-sleep-state { > pins = "gpio30", "gpio31"; > function = "blsp_i2c8_a"; > drive-strength = <2>; > bias-pull-up; > }; > > - cci0_default: cci0_default { > - pinmux { > - pins = "gpio36","gpio37"; > - function = "cci_i2c"; > - }; > - > - pinconf { > - pins = "gpio36","gpio37"; > - bias-pull-up; > - drive-strength = <2>; > - }; > + cci0_default: cci0-default-state { > + pins = "gpio36","gpio37"; > + function = "cci_i2c"; > + bias-pull-up; > + drive-strength = <2>; > }; > > - cci1_default: cci1_default { > - pinmux { > - pins = "gpio38","gpio39"; > - function = "cci_i2c"; > - }; > - > - pinconf { > - pins = "gpio38","gpio39"; > - bias-pull-up; > - drive-strength = <2>; > - }; > + cci1_default: cci1-default-state { > + pins = "gpio38","gpio39"; > + function = "cci_i2c"; > + bias-pull-up; > + drive-strength = <2>; > }; > > - sdc1_state_on: sdc1-on { > - clk { > + sdc1_state_on: sdc1-on-state { > + clk-pins { > pins = "sdc1_clk"; > bias-disable; > drive-strength = <16>; > }; > > - cmd { > + cmd-pins { > pins = "sdc1_cmd"; > bias-pull-up; > drive-strength = <10>; > }; > > - data { > + data-pins { > pins = "sdc1_data"; > bias-pull-up; > drive-strength = <10>; > }; > > - rclk { > + rclk-pins { > pins = "sdc1_rclk"; > bias-pull-down; > }; > }; > > - sdc1_state_off: sdc1-off { > - clk { > + sdc1_state_off: sdc1-off-state { > + clk-pins { > pins = "sdc1_clk"; > bias-disable; > drive-strength = <2>; > }; > > - cmd { > + cmd-pins { > pins = "sdc1_cmd"; > bias-pull-up; > drive-strength = <2>; > }; > > - data { > + data-pins { > pins = "sdc1_data"; > bias-pull-up; > drive-strength = <2>; > }; > > - rclk { > + rclk-pins { > pins = "sdc1_rclk"; > bias-pull-down; > }; > }; > > - sdc2_state_on: sdc2-on { > - clk { > + sdc2_state_on: sdc2-on-state { > + clk-pins { > pins = "sdc2_clk"; > bias-disable; > drive-strength = <16>; > }; > > - cmd { > + cmd-pins { > pins = "sdc2_cmd"; > bias-pull-up; > drive-strength = <10>; > }; > > - data { > + data-pins { > pins = "sdc2_data"; > bias-pull-up; > drive-strength = <10>; > }; > }; > > - sdc2_state_off: sdc2-off { > - clk { > + sdc2_state_off: sdc2-off-state { > + clk-pins { > pins = "sdc2_clk"; > bias-disable; > drive-strength = <2>; > }; > > - cmd { > + cmd-pins { > pins = "sdc2_cmd"; > bias-pull-up; > drive-strength = <2>; > }; > > - data { > + data-pins { > pins = "sdc2_data"; > bias-pull-up; > drive-strength = <2>; > diff --git a/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts b/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts > index 58f687fc49e0..9702e5f59a1d 100644 > --- a/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts > +++ b/arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts > @@ -19,7 +19,7 @@ / { > }; > > &sdc2_state_on { > - clk { > + clk-pins { > drive-strength = <14>; > }; > }; > diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts > index a3559f6e34a5..270091db48fc 100644 > --- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts > +++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts > @@ -372,16 +372,18 @@ &pm660l_wled { > }; > > &sdc2_state_on { > - sd-cd { > + sd-cd-pins { > pins = "gpio54"; > + function = "gpio"; > bias-pull-up; > drive-strength = <2>; > }; > }; > > &sdc2_state_off { > - sd-cd { > + sd-cd-pins { > pins = "gpio54"; > + function = "gpio"; > bias-disable; > drive-strength = <2>; > };