diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-07-04 15:55:06 -0300 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-08-22 23:29:00 +0800 |
commit | eda5fe8bd70fbb430873382914a80ddbeb693e24 (patch) | |
tree | 285c1539161cc06375a39e3f34206a2163bd45a4 /arch/arm/boot/dts/imx6dl-wandboard.dts | |
parent | be89e1a0bf3f092832d21f441d691fe5d8cd0d14 (diff) |
ARM: dts: imx6dl-wandboard: Add audio support
Wandboard has a sgtl5000 codec.
Add audio support.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6dl-wandboard.dts')
-rw-r--r-- | arch/arm/boot/dts/imx6dl-wandboard.dts | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6dl-wandboard.dts b/arch/arm/boot/dts/imx6dl-wandboard.dts index bfc59c3566a4..ab6a053dcb1f 100644 --- a/arch/arm/boot/dts/imx6dl-wandboard.dts +++ b/arch/arm/boot/dts/imx6dl-wandboard.dts @@ -18,6 +18,74 @@ memory { reg = <0x10000000 0x40000000>; }; + + regulators { + compatible = "simple-bus"; + + reg_2p5v: 2p5v { + compatible = "regulator-fixed"; + regulator-name = "2P5V"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-always-on; + }; + + reg_3p3v: 3p3v { + compatible = "regulator-fixed"; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + + sound { + compatible = "fsl,imx6dl-wandboard-sgtl5000", + "fsl,imx-audio-sgtl5000"; + model = "imx6dl-wandboard-sgtl5000"; + ssi-controller = <&ssi1>; + audio-codec = <&codec>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + mux-int-port = <1>; + mux-ext-port = <3>; + }; +}; + +&audmux { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_audmux_2>; + status = "okay"; +}; + +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2_2>; + status = "okay"; + + codec: sgtl5000@0a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&clks 169>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_3p3v>; + }; +}; + +&iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>; + + hog { + pinctrl_hog: hoggrp { + fsl,pins = < + MX6DL_PAD_GPIO_0__CCM_CLKO1 0x130b0 + >; + }; + }; }; &fec { @@ -27,6 +95,11 @@ status = "okay"; }; +&ssi1 { + fsl,mode = "i2s-slave"; + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1_1>; |