[PATCH v2 11/15] ARM: dts: imx6qdl-icore-rqs: Replace codec 'lable: node at addr'

Jagan Teki jagan at openedev.com
Fri Mar 24 09:18:46 PDT 2017


From: Jagan Teki <jagan at amarulasolutions.com>

According to devicetree specification from ePAPER v1.1
[label:] node-name[@unit-address] { };

label: should be human readable string describing a device.
node-name: The name of a node should be somewhat generic,
reflecting the function of the device and not its
unit-address: match the first address specified in the
reg property of the node and shouldn't have leading zeros.

So replaced
codec: sgtl5000 at 0a => sgtl5000: codec at a

Cc: Shawn Guo <shawnguo at kernel.org>
Cc: Matteo Lisi <matteo.lisi at engicam.com>
Cc: Michael Trimarchi <michael at amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
Changes for v2:
- Newly added patch

 arch/arm/boot/dts/imx6dl-icore-rqs.dts   | 2 +-
 arch/arm/boot/dts/imx6q-icore-rqs.dts    | 2 +-
 arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/imx6dl-icore-rqs.dts b/arch/arm/boot/dts/imx6dl-icore-rqs.dts
index 5b4c14c..053e7cb 100644
--- a/arch/arm/boot/dts/imx6dl-icore-rqs.dts
+++ b/arch/arm/boot/dts/imx6dl-icore-rqs.dts
@@ -51,7 +51,7 @@
 };
 
 &i2c3 {
-	codec: sgtl5000 at 0a {
+	sgtl5000: codec at a {
 		compatible = "fsl,sgtl5000";
 		reg = <0x0a>;
 		clocks = <&clks IMX6QDL_CLK_CKO>;
diff --git a/arch/arm/boot/dts/imx6q-icore-rqs.dts b/arch/arm/boot/dts/imx6q-icore-rqs.dts
index 441a28e5..d45e4f5 100644
--- a/arch/arm/boot/dts/imx6q-icore-rqs.dts
+++ b/arch/arm/boot/dts/imx6q-icore-rqs.dts
@@ -50,7 +50,7 @@
 };
 
 &i2c3 {
-	codec: sgtl5000 at 0a {
+	sgtl5000: codec at a {
 		compatible = "fsl,sgtl5000";
 		reg = <0x0a>;
 		clocks = <&clks IMX6QDL_CLK_CKO>;
diff --git a/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi b/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi
index 4032d38..d24e531 100644
--- a/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi
@@ -123,7 +123,7 @@
 		compatible = "fsl,imx-audio-sgtl5000";
 		model = "imx-audio-sgtl5000";
 		ssi-controller = <&ssi1>;
-		audio-codec = <&codec>;
+		audio-codec = <&sgtl5000>;
 		audio-routing =
 			"MIC_IN", "Mic Jack",
 			"Mic Jack", "Mic Bias",
-- 
1.9.1




More information about the linux-arm-kernel mailing list