Skip to contentSkip to conversation

ARM: dts: omap3-beagle: Add omap-twl4030 audio support

PATCH In review Jarkko Nikula 2 participants 4 messages Nov 27, 2013 – Dec 2, 2013 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: omap3-beagle: Add omap-twl4030 audio support

This adds typical McBSP2-TWL4030 audio description to the legacy Beagle Board.

---
 arch/arm/boot/dts/omap3-beagle.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/omap3-beagle.dts +14 -0
index fa532aaacc68..1912c421e246 100644
@@ -61,6 +61,14 @@
 		vcc-supply = <&hsusb2_power>;
 	};
 
+	sound {
+		compatible = "ti,omap-twl4030";
+		ti,model = "omap3beagle";
+
+		ti,mcbsp = <&mcbsp2>;
+		ti,codec = <&twl_audio>;
+	};
+
 	gpio_keys {
 		compatible = "gpio-keys";
 
@@ -120,6 +128,12 @@
 		reg = <0x48>;
 		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
 		interrupt-parent = <&intc>;
+
+		twl_audio: audio {
+			compatible = "ti,twl4030-audio";
+			codec {
+			};
+		};
 	};
 };
 
Signature · 1 line
1.8.4.3
#1 lore raw
Quoted 2 lines · Jarkko Nikula

This adds typical McBSP2-TWL4030 audio description to the legacy Beagle Board.

Nice to see that work almost out of the box :)

BTW, I just noticed that sound/soc/omap/Kconfig has depends on OMAP_MUX. The OMAP_MUX option will be dropped for mach-omap2 for v3.14, so you may want to take a look at that too. If there really is a dependency, that should be handled using pinctrl-single for the .dts entries.

Regards,

Tony

#2 lore raw
Quoted 4 lines · Tony Lindgren
Quoted 2 lines · Jarkko Nikula

This adds typical McBSP2-TWL4030 audio description to the legacy Beagle Board.

Quoted 8 lines

Nice to see that work almost out of the box :)

BTW, I just noticed that sound/soc/omap/Kconfig has depends on OMAP_MUX. The OMAP_MUX option will be dropped for mach-omap2 for v3.14, so you may want to take a look at that too. If there really is a dependency, that should be handled using pinctrl-single for the .dts entries.

There is actually dependency but only on N810 which needs to remux 4 pins from EAC to McBSP2. I'll try to keep my eye on it but don't let that block your cleanup work.

Signature · 1 line
Jarkko
#3 lore raw
Quoted 13 lines · Jarkko Nikula
Quoted 4 lines · Tony Lindgren
Quoted 2 lines · Jarkko Nikula

This adds typical McBSP2-TWL4030 audio description to the legacy Beagle Board.

Quoted 8 lines

Nice to see that work almost out of the box :)

BTW, I just noticed that sound/soc/omap/Kconfig has depends on OMAP_MUX. The OMAP_MUX option will be dropped for mach-omap2 for v3.14, so you may want to take a look at that too. If there really is a dependency, that should be handled using pinctrl-single for the .dts entries.

Quoted 3 lines

There is actually dependency but only on N810 which needs to remux 4 pins from EAC to McBSP2. I'll try to keep my eye on it but don't let that block your cleanup work.

Thanks, meanwhile I'll queue your beagle audio fix.

Tony