dts: Fix WSA Reset pins and haptics ID

Set spkr_02/13 to have function = "gpio".
Previously was func0 which is incorrect.
In kalama there are 2 resets instead of 4 like taro.
These resets are shared between WSA0/2 and WSA1/3.
Remove conflicting WSA2 nodes and rename to wsa_spkr_en02/13.
Update haptics swr slave id.

Change-Id: I62c1c6a2ea10283da9b014050c9adb0bbc8a46e2
Signed-off-by: Matthew Rice <mrice@quicinc.com>
This commit is contained in:
Matthew Rice
2022-02-08 12:23:26 -08:00
parent f73af8a9ef
commit d0baea6d8c
2 changed files with 11 additions and 24 deletions

View File

@@ -155,7 +155,7 @@
qcom,swr-clock-stop-mode0 = <1>;
swr_haptics: swr_haptics@f0170220 {
compatible = "qcom,pm8350b-swr-haptics";
reg = <0x01 0xf0170220>;
reg = <0x02 0xf0170220>;
qcom,rx_swr_ch_map = <0 0x01 0x01 0 PCM_OUT1>;
};
@@ -205,7 +205,7 @@
wsa884x_0220: wsa884x@02170220 {
compatible = "qcom,wsa884x";
reg = <0x4 0x2170220>;
qcom,spkr-sd-n-node = <&wsa_spkr_en1>;
qcom,spkr-sd-n-node = <&wsa_spkr_en02>;
qcom,lpass-cdc-handle = <&lpass_cdc>;
qcom,wsa-macro-handle = <&wsa_macro>;
@@ -219,7 +219,7 @@
wsa884x_0221: wsa884x@02170221 {
compatible = "qcom,wsa884x";
reg = <0x4 0x2170221>;
qcom,spkr-sd-n-node = <&wsa_spkr_en2>;
qcom,spkr-sd-n-node = <&wsa_spkr_en13>;
qcom,lpass-cdc-handle = <&lpass_cdc>;
qcom,wsa-macro-handle = <&wsa_macro>;
@@ -272,7 +272,7 @@
wsa884x_2_0220: wsa884x@02170220 {
compatible = "qcom,wsa884x_2";
reg = <0x4 0x2170220>;
qcom,spkr-sd-n-node = <&wsa2_spkr_en1>;
qcom,spkr-sd-n-node = <&wsa2_spkr_en02>;
qcom,lpass-cdc-handle = <&lpass_cdc>;
qcom,wsa-macro-handle = <&wsa2_macro>;
@@ -286,7 +286,7 @@
wsa884x_2_0221: wsa884x@02170221 {
compatible = "qcom,wsa884x_2";
reg = <0x4 0x2170221>;
qcom,spkr-sd-n-node = <&wsa2_spkr_en2>;
qcom,spkr-sd-n-node = <&wsa2_spkr_en13>;
qcom,lpass-cdc-handle = <&lpass_cdc>;
qcom,wsa-macro-handle = <&wsa2_macro>;
@@ -541,33 +541,20 @@
};
&soc {
wsa_spkr_en1: wsa_spkr_en1_pinctrl {
wsa_spkr_en02: wsa_spkr_en1_pinctrl {
compatible = "qcom,msm-cdc-pinctrl";
pinctrl-names = "aud_active", "aud_sleep";
pinctrl-0 = <&spkr_02_sd_n_active>;
pinctrl-1 = <&spkr_02_sd_n_sleep>;
};
wsa_spkr_en2: wsa_spkr_en2_pinctrl {
wsa_spkr_en13: wsa_spkr_en2_pinctrl {
compatible = "qcom,msm-cdc-pinctrl";
pinctrl-names = "aud_active", "aud_sleep";
pinctrl-0 = <&spkr_13_sd_n_active>;
pinctrl-1 = <&spkr_13_sd_n_sleep>;
};
wsa2_spkr_en1: wsa2_spkr_en1_pinctrl {
compatible = "qcom,msm-cdc-pinctrl";
pinctrl-names = "aud_active", "aud_sleep";
pinctrl-0 = <&spkr_02_sd_n_active>;
pinctrl-1 = <&spkr_02_sd_n_sleep>;
};
wsa2_spkr_en2: wsa2_spkr_en2_pinctrl {
compatible = "qcom,msm-cdc-pinctrl";
pinctrl-names = "aud_active", "aud_sleep";
pinctrl-0 = <&spkr_13_sd_n_active>;
pinctrl-1 = <&spkr_13_sd_n_sleep>;
};
wcd938x_rst_gpio: msm_cdc_pinctrl@32 {
compatible = "qcom,msm-cdc-pinctrl";

View File

@@ -1984,7 +1984,7 @@
spkr_02_sd_n_sleep: spkr_02_sd_n_sleep {
mux {
pins = "gpio17";
function = "func0";
function = "gpio";
};
config {
@@ -1998,7 +1998,7 @@
spkr_02_sd_n_active: spkr_02_sd_n_active {
mux {
pins = "gpio17";
function = "func0";
function = "gpio";
};
config {
@@ -2014,7 +2014,7 @@
spkr_13_sd_n_sleep: spkr_13_sd_n_sleep {
mux {
pins = "gpio18";
function = "func0";
function = "gpio";
};
config {
@@ -2028,7 +2028,7 @@
spkr_13_sd_n_active: spkr_13_sd_n_active {
mux {
pins = "gpio18";
function = "func0";
function = "gpio";
};
config {