Skip to contentSkip to conversation

ARM: DTS: am335x-evmsk: Audio and MMC1 fix (for 3.13?)

PATCH New Peter Ujfalusi 2 participants 5 messages Dec 23, 2013 – Feb 13, 2014 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: DTS: am335x-evmsk: Audio and MMC1 fix (for 3.13?)

Hi,

The audio frequency has been incorrectly set in the DTS file which results incorrect playback frequency on EVM-SK.

The SD card can not be used without the second patch on 3.13-rc5.

Regards,
Peter
---
Peter Ujfalusi (2):
ARM: DTS: am335x-evmsk: Correct audio clock frequency
ARM: dts: am335x-evmsk: Fix mmc1 support

 arch/arm/boot/dts/am335x-evmsk.dts | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.5.2
#1 lore raw

PATCH 1/2 ARM: DTS: am335x-evmsk: Correct audio clock frequency

The clock for audio is sourced from virt_24000000_ck, so the correct frequency is 24000000.

---
 arch/arm/boot/dts/am335x-evmsk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am335x-evmsk.dts +1 -1
index 4718ec4a4dbf..50abe53f6887 100644
@@ -121,7 +121,7 @@
 		ti,model = "AM335x-EVMSK";
 		ti,audio-codec = <&tlv320aic3106>;
 		ti,mcasp-controller = <&mcasp1>;
-		ti,codec-clock-rate = <24576000>;
+		ti,codec-clock-rate = <24000000>;
 		ti,audio-routing =
 			"Headphone Jack",       "HPLOUT",
 			"Headphone Jack",       "HPROUT";
Signature · 1 line
1.8.5.2
#2 lore raw

PATCH 2/2 ARM: dts: am335x-evmsk: Fix mmc1 support

In reply to Peter Ujfalusi

Add pinctrl section and cd-gpio to mmc1. Without these the SD card is not working on EVM-SK board.

---
 arch/arm/boot/dts/am335x-evmsk.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/am335x-evmsk.dts +9 -0
index 50abe53f6887..486880b74831 100644
@@ -256,6 +256,12 @@
 		>;
 	};
 
+	mmc1_pins: pinmux_mmc1_pins {
+		pinctrl-single,pins = <
+			0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
+		>;
+	};
+
 	mcasp1_pins: mcasp1_pins {
 		pinctrl-single,pins = <
 			0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_crs.mcasp1_aclkx */
@@ -456,6 +462,9 @@
 	status = "okay";
 	vmmc-supply = <&vmmc_reg>;
 	bus-width = <4>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc1_pins>;
+	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
 };
 
 &sham {
Signature · 1 line
1.8.5.2
#3 lore raw

cover ARM: DTS: am335x-evmsk: Audio and MMC1 fix (for 3.13?)

In reply to Peter Ujfalusi

Hi Benoit,

Quoted 6 lines · Peter Ujfalusi

Hi,

The audio frequency has been incorrectly set in the DTS file which results incorrect playback frequency on EVM-SK.

The SD card can not be used without the second patch on 3.13-rc5.

Can you take a look at these and if it is possible send it for 3.13?

Quoted 11 lines

Regards,
Peter
---
Peter Ujfalusi (2):
ARM: DTS: am335x-evmsk: Correct audio clock frequency
ARM: dts: am335x-evmsk: Fix mmc1 support

 arch/arm/boot/dts/am335x-evmsk.dts | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
Signature · 1 line
P?ter
#4 lore raw

cover ARM: DTS: am335x-evmsk: Audio and MMC1 fix (for 3.13?)

Quoted 11 lines · Peter Ujfalusi

Hi Benoit,

Quoted 6 lines · Peter Ujfalusi

Hi,

The audio frequency has been incorrectly set in the DTS file which results incorrect playback frequency on EVM-SK.

The SD card can not be used without the second patch on 3.13-rc5.

Can you take a look at these and if it is possible send it for 3.13?

Applying both into omap-for-v3.14/fixes thanks.

Tony