Skip to contentSkip to conversation

dt-bindings: sound: adau7118: Fix example warning

PATCH Superseded Maxime Ripard 2 participants 2 messages Oct 31, 2019 – Nov 4, 2019

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: sound: adau7118: Fix example warning

The ADAU7118 has an example where the codec has an i2c address of 14, and the unit address set to 14 as well.

However, while the address is expressed in decimal, the unit-address is supposed to be in hexadecimal, which ends up with two different addresses that trigger a DTC warning. Fix this by setting the unit address to (0x)e.

Cc Nuno Sá <[email protected]>
Fixes 969d49b2cdc8 ("dt-bindings: asoc: Add ADAU7118 documentation")
---
 Documentation/devicetree/bindings/sound/adi,adau7118.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +1 -1
index c3f10afbdd6f..65f6844a0c6d 100644
@@ -65,7 +65,7 @@ examples:
         /* example with i2c support */
         #address-cells = <1>;
         #size-cells = <0>;
-        adau7118_codec: audio-codec@14 {
+        adau7118_codec: audio-codec@e {
                 compatible = "adi,adau7118";
                 reg = <14>;
                 #sound-dai-cells = <0>;
Signature · 1 line
2.23.0
#1 lore raw
Quoted 6 lines · Maxime Ripard

The ADAU7118 has an example where the codec has an i2c address of 14, and the unit address set to 14 as well>
However, while the address is expressed in decimal, the unit-address is supposed to be in hexadecimal, which ends up with two different addresses that trigger a DTC warning. Fix this by setting the unit address to (0x)e.

The mistake is in the I2C address, should be 0x14.

Quoted 13 lines
Cc Nuno Sá <[email protected]>
Fixes 969d49b2cdc8 ("dt-bindings: asoc: Add ADAU7118 documentation")
---
 Documentation/devicetree/bindings/sound/adi,adau7118.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +0 -0
index c3f10afbdd6f..65f6844a0c6d 100644

Documentation/devicetree/bindings/sound/adi,adau7118.yaml examples: · line 71

Quoted 8 lines
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +1 -1
@@ -65,7 +65,7 @@ examples:
         /* example with i2c support */
         #address-cells = <1>;
         #size-cells = <0>;
-        adau7118_codec: audio-codec@14 {
+        adau7118_codec: audio-codec@e {
                 compatible = "adi,adau7118";
                 reg = <14>;
                 #sound-dai-cells = <0>;

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel