ARM: dts: imx28-amarula-rmm: add I2S audio
Subsystems (3)
PATCH v2 1/2 ARM: dts: imx28-amarula-rmm: add I2S audio
Add support for I2S audio on Amarula rmm board. Audio codec TLV320AIC3X is connected as slave to SAIF0, which provides bitclock, frame and MCLK.
Co-developed-by Michael Trimarchi <[email protected]>
Signed-off-by Michael Trimarchi <[email protected]>
Signed-off-by Dario Binacchi <[email protected]>
---
Changes in v2:
- Rename the codec node to audio-codec@18
- Drop an unnecessary newline
.../boot/dts/nxp/mxs/imx28-amarula-rmm.dts | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)
arch/arm/boot/dts/nxp/mxs/imx28-amarula-rmm.dts +50 -0
@@ -112,6 +112,29 @@ reg_usb1_vbus: regulator-usb1-vbus { enable-active-high; regulator-always-on; }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "imx28-mrmmi-tlv320aic3x-audio"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&cpu_dai>; + simple-audio-card,frame-master = <&cpu_dai>; + simple-audio-card,widgets = + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPROUT", + "Headphone Jack", "HPRCOM"; + simple-audio-card,mclk-fs = <512>; + + cpu_dai: simple-audio-card,cpu { + sound-dai = <&saif0>; + clocks = <&saif0>; + }; + + codec_dai: simple-audio-card,codec { + sound-dai = <&tlv320aic3x>; + }; + }; }; &auart0 {
@@ -154,6 +177,19 @@ &i2c0 { pinctrl-0 = <&i2c0_pins_a>; status = "okay"; + tlv320aic3x: audio-codec@18 { + compatible = "ti,tlv320aic3x"; + pinctrl-names = "default"; + pinctrl-0 = <&tlv320aic3x_pins>; + reg = <0x18>; + reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; + #sound-dai-cells = <0>; + DVDD-supply = <®_1v8>; + IOVDD-supply = <®_3v3>; + AVDD-supply = <®_3v3>; + DRVDD-supply = <®_3v3>; + }; + touchscreen: touchscreen@38 { compatible = "edt,edt-ft5306"; reg = <0x38>;
@@ -246,6 +282,14 @@ MX28_PAD_PWM1__GPIO_3_17 fsl,voltage = <MXS_VOLTAGE_HIGH>; }; + tlv320aic3x_pins: tlv320aic3x-pins@0 { + reg = <0>; + fsl,pinmux-ids = <MX28_PAD_SSP0_DATA4__GPIO_2_4>; + fsl,drive-strength = <MXS_DRIVE_4mA>; + fsl,pull-up = <MXS_PULL_ENABLE>; + fsl,voltage = <MXS_VOLTAGE_HIGH>; + }; + usb0_vbus_enable_pin: usb0-vbus-enable@0 { reg = <0>; fsl,pinmux-ids = <MX28_PAD_SSP0_DATA5__GPIO_2_5>;
@@ -269,6 +313,12 @@ &pwm { status = "okay"; }; +&saif0 { + pinctrl-names = "default"; + pinctrl-0 = <&saif0_pins_a>; + status = "okay"; +}; + /* microSD */ &ssp0 { compatible = "fsl,imx28-mmc";
Signature · 4 lines
2.43.0 base-commit: dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa branch: imx28-amarula-rmm-audio
PATCH v2 2/2 ARM: mxs_defconfig: enable sound drivers for imx28-amarula-rmm
Enable TLV320AIC3X I2C codec and simple-card support used on Amarula rmm board.
Signed-off-by Dario Binacchi <[email protected]>
---
Changes in v2:
- Drop 1/3 patch "ASoC: mxs-saif: support usage with simple-audio-card" because merged in linux-next.
arch/arm/configs/mxs_defconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/configs/mxs_defconfig +2 -0
@@ -100,6 +100,8 @@ CONFIG_SND=y CONFIG_SND_SOC=y CONFIG_SND_MXS_SOC=y CONFIG_SND_SOC_MXS_SGTL5000=y +CONFIG_SND_SOC_TLV320AIC3X_I2C=y +CONFIG_SND_SIMPLE_CARD=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_STORAGE=y
Signature · 4 lines
2.43.0 base-commit: dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa branch: imx28-amarula-rmm-audio
Shawn Guo
AppliedQuoted 7 lines · Dario Binacchi
Add support for I2S audio on Amarula rmm board. Audio codec TLV320AIC3X is connected as slave to SAIF0, which provides bitclock, frame and MCLK.
Co-developed-by Michael Trimarchi <[email protected]>Signed-off-by Michael Trimarchi <[email protected]>Signed-off-by Dario Binacchi <[email protected]>
Applied both, thanks!