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

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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -14,6 +14,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
@@ -1064,7 +1065,7 @@ platform {
	};

		codec {
			sound-dai = <&wcd9335 6>;
			sound-dai = <&wcd9335 AIF4_PB>;
		};
	};

@@ -1079,7 +1080,7 @@ platform {
		};

		codec {
			sound-dai = <&wcd9335 1>;
			sound-dai = <&wcd9335 AIF1_CAP>;
		};
	};
};
+3 −2
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include "msm8996-xiaomi-common.dtsi"
#include <dt-bindings/sound/qcom,q6afe.h>
#include <dt-bindings/sound/qcom,q6asm.h>
#include <dt-bindings/sound/qcom,wcd9335.h>
#include <dt-bindings/input/ti-drv260x.h>

/ {
@@ -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>;
		};
	};
};
+3 −2
Original line number Diff line number Diff line
@@ -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";
@@ -190,7 +191,7 @@ platform {
		};

		codec {
			sound-dai = <&wcd9335 6>;
			sound-dai = <&wcd9335 AIF4_PB>;
		};
	};

@@ -205,7 +206,7 @@ platform {
		};

		codec {
			sound-dai = <&wcd9335 1>;
			sound-dai = <&wcd9335 AIF1_CAP>;
		};
	};
};