lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 25 Feb 2021 23:55:40 +0100
From:   Konrad Dybcio <konrad.dybcio@...ainline.org>
To:     Douglas Anderson <dianders@...omium.org>,
        Bjorn Andersson <bjorn.andersson@...aro.org>
Cc:     Stephen Boyd <swboyd@...omium.org>,
        Alexandru M Stan <amstan@...omium.org>,
        Matthias Kaehlcke <mka@...omium.org>,
        Rob Clark <robdclark@...omium.org>,
        V Sujith Kumar Reddy <vsujithk@...eaurora.org>,
        Srinivasa Rao Mandadapu <srivasam@...eaurora.org>,
        Tzung-Bi Shih <tzungbi@...omium.org>,
        Judy Hsiao <judyhsiao@...omium.org>,
        Andy Gross <agross@...nel.org>,
        Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org,
        linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 02/13] arm64: dts: qcom: Move sc7180 MI2S config to board
 files and make pulldown

Hi,


>  
> +&pri_mi2s_active {
> +	pinconf {
> +		pins = "gpio53", "gpio54", "gpio55", "gpio56";
> +		drive-strength = <2>;
> +		bias-pull-down;
> +	};
> +};
> +

You can omit pinconf{}, so the outcome would be:
&pri_mi2s_active {

    pins = ...

    ...

};


This makes the DTs ever so shorter and is the style that's currently used for new submissions.

Same goes for the nodes that are being referenced.


> +&pri_mi2s_mclk_active {
> +	pinconf {
> +		pins = "gpio57";
> +		drive-strength = <2>;
> +		bias-pull-down;
> +	};
> +};
> +
>  &qspi_cs0 {
>  	pinconf {
>  		pins = "gpio68";
> @@ -1015,6 +1031,14 @@ pinconf-rx {
>  	};
>  };
>  
> +&sec_mi2s_active {
> +	pinconf {
> +		pins = "gpio49", "gpio50", "gpio51";
> +		drive-strength = <2>;
> +		bias-pull-down;
> +	};
> +};
> +
>  /* PINCTRL - board-specific pinctrl */
>  
>  &pm6150_gpio {
> diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi
> index 60248a6757d8..5040923a9f7c 100644
> --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi
> @@ -1856,12 +1856,6 @@ pinmux {
>  					pins = "gpio49", "gpio50", "gpio51";
>  					function = "mi2s_1";
>  				};
> -
> -				pinconf {
> -					pins = "gpio49", "gpio50", "gpio51";
> -					drive-strength = <8>;
> -					bias-pull-up;
> -				};
>  			};
>  
>  			pri_mi2s_active: pri-mi2s-active {
> @@ -1869,12 +1863,6 @@ pinmux {
>  					pins = "gpio53", "gpio54", "gpio55", "gpio56";
>  					function = "mi2s_0";
>  				};
> -
> -				pinconf {
> -					pins = "gpio53", "gpio54", "gpio55", "gpio56";
> -					drive-strength = <8>;
> -					bias-pull-up;
> -				};
>  			};
>  
>  			pri_mi2s_mclk_active: pri-mi2s-mclk-active {
> @@ -1882,12 +1870,6 @@ pinmux {
>  					pins = "gpio57";
>  					function = "lpass_ext";
>  				};
> -
> -				pinconf {
> -					pins = "gpio57";
> -					drive-strength = <8>;
> -					bias-pull-up;
> -				};
>  			};
>  
>  			sdc1_on: sdc1-on {
>
Applies to all ^.


Konrad


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ