diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-07-04 14:55:06 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-08-22 11:29:00 -0400 |
commit | eda5fe8bd70fbb430873382914a80ddbeb693e24 (patch) | |
tree | 285c1539161cc06375a39e3f34206a2163bd45a4 /arch | |
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')
-rw-r--r-- | arch/arm/boot/dts/imx6dl-wandboard.dts | 73 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx6dl.dtsi | 7 |
2 files changed, 80 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 @@ | |||
18 | memory { | 18 | memory { |
19 | reg = <0x10000000 0x40000000>; | 19 | reg = <0x10000000 0x40000000>; |
20 | }; | 20 | }; |
21 | |||
22 | regulators { | ||
23 | compatible = "simple-bus"; | ||
24 | |||
25 | reg_2p5v: 2p5v { | ||
26 | compatible = "regulator-fixed"; | ||
27 | regulator-name = "2P5V"; | ||
28 | regulator-min-microvolt = <2500000>; | ||
29 | regulator-max-microvolt = <2500000>; | ||
30 | regulator-always-on; | ||
31 | }; | ||
32 | |||
33 | reg_3p3v: 3p3v { | ||
34 | compatible = "regulator-fixed"; | ||
35 | regulator-name = "3P3V"; | ||
36 | regulator-min-microvolt = <3300000>; | ||
37 | regulator-max-microvolt = <3300000>; | ||
38 | regulator-always-on; | ||
39 | }; | ||
40 | }; | ||
41 | |||
42 | sound { | ||
43 | compatible = "fsl,imx6dl-wandboard-sgtl5000", | ||
44 | "fsl,imx-audio-sgtl5000"; | ||
45 | model = "imx6dl-wandboard-sgtl5000"; | ||
46 | ssi-controller = <&ssi1>; | ||
47 | audio-codec = <&codec>; | ||
48 | audio-routing = | ||
49 | "MIC_IN", "Mic Jack", | ||
50 | "Mic Jack", "Mic Bias", | ||
51 | "Headphone Jack", "HP_OUT"; | ||
52 | mux-int-port = <1>; | ||
53 | mux-ext-port = <3>; | ||
54 | }; | ||
55 | }; | ||
56 | |||
57 | &audmux { | ||
58 | pinctrl-names = "default"; | ||
59 | pinctrl-0 = <&pinctrl_audmux_2>; | ||
60 | status = "okay"; | ||
61 | }; | ||
62 | |||
63 | &i2c2 { | ||
64 | clock-frequency = <100000>; | ||
65 | pinctrl-names = "default"; | ||
66 | pinctrl-0 = <&pinctrl_i2c2_2>; | ||
67 | status = "okay"; | ||
68 | |||
69 | codec: sgtl5000@0a { | ||
70 | compatible = "fsl,sgtl5000"; | ||
71 | reg = <0x0a>; | ||
72 | clocks = <&clks 169>; | ||
73 | VDDA-supply = <®_2p5v>; | ||
74 | VDDIO-supply = <®_3p3v>; | ||
75 | }; | ||
76 | }; | ||
77 | |||
78 | &iomuxc { | ||
79 | pinctrl-names = "default"; | ||
80 | pinctrl-0 = <&pinctrl_hog>; | ||
81 | |||
82 | hog { | ||
83 | pinctrl_hog: hoggrp { | ||
84 | fsl,pins = < | ||
85 | MX6DL_PAD_GPIO_0__CCM_CLKO1 0x130b0 | ||
86 | >; | ||
87 | }; | ||
88 | }; | ||
21 | }; | 89 | }; |
22 | 90 | ||
23 | &fec { | 91 | &fec { |
@@ -27,6 +95,11 @@ | |||
27 | status = "okay"; | 95 | status = "okay"; |
28 | }; | 96 | }; |
29 | 97 | ||
98 | &ssi1 { | ||
99 | fsl,mode = "i2s-slave"; | ||
100 | status = "okay"; | ||
101 | }; | ||
102 | |||
30 | &uart1 { | 103 | &uart1 { |
31 | pinctrl-names = "default"; | 104 | pinctrl-names = "default"; |
32 | pinctrl-0 = <&pinctrl_uart1_1>; | 105 | pinctrl-0 = <&pinctrl_uart1_1>; |
diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi index 2b5628d23299..4505109de7d6 100644 --- a/arch/arm/boot/dts/imx6dl.dtsi +++ b/arch/arm/boot/dts/imx6dl.dtsi | |||
@@ -196,6 +196,13 @@ | |||
196 | MX6DL_PAD_EIM_D16__I2C2_SDA 0x4001b8b1 | 196 | MX6DL_PAD_EIM_D16__I2C2_SDA 0x4001b8b1 |
197 | >; | 197 | >; |
198 | }; | 198 | }; |
199 | |||
200 | pinctrl_i2c2_2: i2c2grp-2 { | ||
201 | fsl,pins = < | ||
202 | MX6DL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 | ||
203 | MX6DL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 | ||
204 | >; | ||
205 | }; | ||
199 | }; | 206 | }; |
200 | 207 | ||
201 | i2c3 { | 208 | i2c3 { |