[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <60b0074f-f29b-da1f-d6d0-0085e17e5dcb@linaro.org>
Date: Wed, 22 Jun 2022 16:36:22 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Yassine Oudjana <yassine.oudjana@...il.com>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Banajit Goswami <bgoswami@...cinc.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>
Cc: Yassine Oudjana <y.oudjana@...tonmail.com>,
devicetree@...r.kernel.org, alsa-devel@...a-project.org,
linux-arm-msm@...r.kernel.org, phone-devel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] arm64: dts: qcom: Use WCD9335 DT bindings
On 22/06/2022 08:47, Yassine Oudjana wrote:
> From: Yassine Oudjana <y.oudjana@...tonmail.com>
>
> Replace DAI indices in codec nodes with definitions from the WCD9335
> DT bindings for devices that use WCD9335.
>
> Signed-off-by: Yassine Oudjana <y.oudjana@...tonmail.com>
> ---
> arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 5 +++--
> arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts | 5 +++--
> arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts | 5 +++--
> 3 files changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dts b/arch/arm64/boot/dts/qcom/apq8096-db820c.dts
> index 49afbb1a066a..ff915cd8e5a6 100644
> --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dts
> +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dts
> @@ -13,6 +13,7 @@
> #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> #include <dt-bindings/sound/qcom,q6afe.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
> @@ -1009,7 +1010,7 @@ platform {
> };
>
> codec {
> - sound-dai = <&wcd9335 6>;
> + sound-dai = <&wcd9335 AIF4_PB>;
> };
> };
>
> @@ -1024,7 +1025,7 @@ platform {
> };
>
> codec {
> - sound-dai = <&wcd9335 1>;
> + sound-dai = <&wcd9335 AIF1_CAP>;
> };
> };
> };
> diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts
> index 22978d06f85b..261f2ea7def0 100644
> --- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts
> @@ -9,6 +9,7 @@
> #include <dt-bindings/sound/qcom,q6afe.h>
> #include <dt-bindings/sound/qcom,q6asm.h>
> #include <dt-bindings/input/ti-drv260x.h>
> +#include <dt-bindings/sound/qcom,wcd9335.h>
Keep the order, so this goes before input (even though it is not really
alphabetical, but that's life...).
>
> / {
> model = "Xiaomi Mi 5";
> @@ -193,7 +194,7 @@ platform {
> };
>
> codec {
> - sound-dai = <&wcd9335 6>;
> + sound-dai = <&wcd9335 AIF4_PB>;
> };
> };
>
> @@ -208,7 +209,7 @@ platform {
> };
>
> codec {
> - sound-dai = <&wcd9335 1>;
> + sound-dai = <&wcd9335 AIF1_CAP>;
> };
> };
> };
> diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts
> index 1e2dd6763ad1..c9f935cfb587 100644
> --- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts
> @@ -9,6 +9,7 @@
> #include "pmi8996.dtsi"
> #include <dt-bindings/sound/qcom,q6afe.h>
> #include <dt-bindings/sound/qcom,q6asm.h>
> +#include <dt-bindings/sound/qcom,wcd9335.h>
>
> / {
> model = "Xiaomi Mi Note 2";
> @@ -171,7 +172,7 @@ platform {
> };
>
> codec {
> - sound-dai = <&wcd9335 6>;
> + sound-dai = <&wcd9335 AIF4_PB>;
> };
> };
>
> @@ -186,7 +187,7 @@ platform {
> };
>
> codec {
> - sound-dai = <&wcd9335 1>;
> + sound-dai = <&wcd9335 AIF1_CAP>;
> };
> };
> };
Best regards,
Krzysztof
Powered by blists - more mailing lists