aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-08-15 12:47:32 -0400
committerShawn Guo <shawnguo@kernel.org>2016-08-17 10:34:33 -0400
commit9a3bb943c26d6e16effa7cb828f35ed660538fee (patch)
tree5e494c92b8099c9ee4337132bc92973e161b6a0d
parent1c4e2a11bac4b5b04cd6588840341af28e137588 (diff)
ARM: dts: imx7s-warp: Add audio support
warp7 has a sgtl5000 audio codec. Add support for it. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r--arch/arm/boot/dts/imx7s-warp.dts51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts
index ae23781034fd..f819003f2d4a 100644
--- a/arch/arm/boot/dts/imx7s-warp.dts
+++ b/arch/arm/boot/dts/imx7s-warp.dts
@@ -53,6 +53,27 @@
53 memory { 53 memory {
54 reg = <0x80000000 0x20000000>; 54 reg = <0x80000000 0x20000000>;
55 }; 55 };
56
57 sound {
58 compatible = "simple-audio-card";
59 simple-audio-card,name = "imx7-sgtl5000";
60 simple-audio-card,format = "i2s";
61 simple-audio-card,bitclock-master = <&dailink_master>;
62 simple-audio-card,frame-master = <&dailink_master>;
63 simple-audio-card,cpu {
64 sound-dai = <&sai1>;
65 };
66
67 dailink_master: simple-audio-card,codec {
68 sound-dai = <&codec>;
69 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
70 };
71 };
72};
73
74&clks {
75 assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
76 assigned-clock-rates = <884736000>;
56}; 77};
57 78
58&cpu0 { 79&cpu0 {
@@ -161,12 +182,32 @@
161 pinctrl-0 = <&pinctrl_i2c4>; 182 pinctrl-0 = <&pinctrl_i2c4>;
162 status = "okay"; 183 status = "okay";
163 184
185 codec: sgtl5000@0a {
186 #sound-dai-cells = <0>;
187 reg = <0x0a>;
188 compatible = "fsl,sgtl5000";
189 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
190 VDDA-supply = <&vgen4_reg>;
191 VDDIO-supply = <&vgen4_reg>;
192 VDDD-supply = <&vgen2_reg>;
193 };
194
164 mpl3115@60 { 195 mpl3115@60 {
165 compatible = "fsl,mpl3115"; 196 compatible = "fsl,mpl3115";
166 reg = <0x60>; 197 reg = <0x60>;
167 }; 198 };
168}; 199};
169 200
201&sai1 {
202 pinctrl-names = "default";
203 pinctrl-0 = <&pinctrl_sai1>;
204 assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>,
205 <&clks IMX7D_SAI1_ROOT_CLK>;
206 assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
207 assigned-clock-rates = <0>, <36864000>;
208 status = "okay";
209};
210
170&uart1 { 211&uart1 {
171 pinctrl-names = "default"; 212 pinctrl-names = "default";
172 pinctrl-0 = <&pinctrl_uart1>; 213 pinctrl-0 = <&pinctrl_uart1>;
@@ -208,6 +249,16 @@
208 >; 249 >;
209 }; 250 };
210 251
252 pinctrl_sai1: sai1grp {
253 fsl,pins = <
254 MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1f
255 MX7D_PAD_SAI1_TX_BCLK__SAI1_TX_BCLK 0x1f
256 MX7D_PAD_SAI1_TX_SYNC__SAI1_TX_SYNC 0x1f
257 MX7D_PAD_SAI1_TX_DATA__SAI1_TX_DATA0 0x30
258 MX7D_PAD_SAI1_MCLK__SAI1_MCLK 0x1f
259 >;
260 };
261
211 pinctrl_uart1: uart1grp { 262 pinctrl_uart1: uart1grp {
212 fsl,pins = < 263 fsl,pins = <
213 MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79 264 MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79