Commit b504af6c authored by Yassine Oudjana's avatar Yassine Oudjana Committed by Bjorn Andersson

arm64: dts: qcom: Use WCD9335 DT bindings

Replace DAI indices in codec nodes with definitions from the WCD9335
DT bindings for devices that use WCD9335.
Signed-off-by: default avatarYassine Oudjana <y.oudjana@protonmail.com>
Acked-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220622161322.168017-4-y.oudjana@protonmail.com
parent 9e826e05
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/sound/qcom,q6afe.h> #include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h> #include <dt-bindings/sound/qcom,q6asm.h>
#include <dt-bindings/sound/qcom,wcd9335.h>
/* /*
* GPIO name legend: proper name = the GPIO line is used as GPIO * GPIO name legend: proper name = the GPIO line is used as GPIO
...@@ -1064,7 +1065,7 @@ platform { ...@@ -1064,7 +1065,7 @@ platform {
}; };
codec { codec {
sound-dai = <&wcd9335 6>; sound-dai = <&wcd9335 AIF4_PB>;
}; };
}; };
...@@ -1079,7 +1080,7 @@ platform { ...@@ -1079,7 +1080,7 @@ platform {
}; };
codec { codec {
sound-dai = <&wcd9335 1>; sound-dai = <&wcd9335 AIF1_CAP>;
}; };
}; };
}; };
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "msm8996-xiaomi-common.dtsi" #include "msm8996-xiaomi-common.dtsi"
#include <dt-bindings/sound/qcom,q6afe.h> #include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h> #include <dt-bindings/sound/qcom,q6asm.h>
#include <dt-bindings/sound/qcom,wcd9335.h>
#include <dt-bindings/input/ti-drv260x.h> #include <dt-bindings/input/ti-drv260x.h>
/ { / {
...@@ -193,7 +194,7 @@ platform { ...@@ -193,7 +194,7 @@ platform {
}; };
codec { codec {
sound-dai = <&wcd9335 6>; sound-dai = <&wcd9335 AIF4_PB>;
}; };
}; };
...@@ -208,7 +209,7 @@ platform { ...@@ -208,7 +209,7 @@ platform {
}; };
codec { codec {
sound-dai = <&wcd9335 1>; sound-dai = <&wcd9335 AIF1_CAP>;
}; };
}; };
}; };
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "pmi8996.dtsi" #include "pmi8996.dtsi"
#include <dt-bindings/sound/qcom,q6afe.h> #include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h> #include <dt-bindings/sound/qcom,q6asm.h>
#include <dt-bindings/sound/qcom,wcd9335.h>
/ { / {
model = "Xiaomi Mi Note 2"; model = "Xiaomi Mi Note 2";
...@@ -190,7 +191,7 @@ platform { ...@@ -190,7 +191,7 @@ platform {
}; };
codec { codec {
sound-dai = <&wcd9335 6>; sound-dai = <&wcd9335 AIF4_PB>;
}; };
}; };
...@@ -205,7 +206,7 @@ platform { ...@@ -205,7 +206,7 @@ platform {
}; };
codec { codec {
sound-dai = <&wcd9335 1>; sound-dai = <&wcd9335 AIF1_CAP>;
}; };
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment