arm64: dts: qcom: sc7280: Move wcd specific pin conf to common file
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Thu, 7 Jul 2022 12:36:21 +0000 (18:06 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 16 Jul 2022 15:18:14 +0000 (10:18 -0500)
Move wcd specific pin conf to common file to support various
herbronie variant boards and to avoid duplicate nodes in dts files.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1657197381-1271-1-git-send-email-quic_srivasam@quicinc.com
arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi
arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts

index 32a1e78..859faaa 100644 (file)
@@ -5,6 +5,70 @@
  * Copyright (c) 2022, The Linux Foundation. All rights reserved.
  */
 
+/* PINCTRL */
+
+&lpass_dmic01_clk {
+       drive-strength = <8>;
+       bias-disable;
+};
+
+&lpass_dmic01_clk_sleep {
+       drive-strength = <2>;
+};
+
+&lpass_dmic01_data {
+       bias-pull-down;
+};
+
+&lpass_dmic23_clk {
+       drive-strength = <8>;
+       bias-disable;
+};
+
+&lpass_dmic23_clk_sleep {
+       drive-strength = <2>;
+};
+
+&lpass_dmic23_data {
+       bias-pull-down;
+};
+
+&lpass_rx_swr_clk {
+       drive-strength = <2>;
+       slew-rate = <1>;
+       bias-disable;
+};
+
+&lpass_rx_swr_clk_sleep {
+       bias-pull-down;
+};
+
+&lpass_rx_swr_data {
+       drive-strength = <2>;
+       slew-rate = <1>;
+       bias-bus-hold;
+};
+
+&lpass_rx_swr_data_sleep {
+       bias-pull-down;
+};
+
+&lpass_tx_swr_clk {
+       drive-strength = <2>;
+       slew-rate = <1>;
+       bias-disable;
+};
+
+&lpass_tx_swr_clk_sleep {
+       bias-pull-down;
+};
+
+&lpass_tx_swr_data {
+       drive-strength = <2>;
+       slew-rate = <1>;
+       bias-bus-hold;
+};
+
 &mi2s1_data0 {
        drive-strength = <6>;
        bias-disable;
index e9ca6c5..7881bbc 100644 (file)
@@ -155,67 +155,6 @@ ap_ts_pen_1v8: &i2c13 {
  * - If a pin is totally internal to Qcard then it gets Qcard name.
  * - If a pin is not hooked up on Qcard, it gets no name.
  */
-&lpass_dmic01_clk {
-       drive-strength = <8>;
-       bias-disable;
-};
-
-&lpass_dmic01_clk_sleep {
-       drive-strength = <2>;
-};
-
-&lpass_dmic01_data {
-       bias-pull-down;
-};
-
-&lpass_dmic23_clk {
-       drive-strength = <8>;
-       bias-disable;
-};
-
-&lpass_dmic23_clk_sleep {
-       drive-strength = <2>;
-};
-
-&lpass_dmic23_data {
-       bias-pull-down;
-};
-
-&lpass_rx_swr_clk {
-       drive-strength = <2>;
-       slew-rate = <1>;
-       bias-disable;
-};
-
-&lpass_rx_swr_clk_sleep {
-       bias-pull-down;
-};
-
-&lpass_rx_swr_data {
-       drive-strength = <2>;
-       slew-rate = <1>;
-       bias-bus-hold;
-};
-
-&lpass_rx_swr_data_sleep {
-       bias-pull-down;
-};
-
-&lpass_tx_swr_clk {
-       drive-strength = <2>;
-       slew-rate = <1>;
-       bias-disable;
-};
-
-&lpass_tx_swr_clk_sleep {
-       bias-pull-down;
-};
-
-&lpass_tx_swr_data {
-       drive-strength = <2>;
-       slew-rate = <1>;
-       bias-bus-hold;
-};
 
 &pm8350c_gpios {
        gpio-line-names = "FLASH_STROBE_1",             /* 1 */