Commit | Line | Data |
---|---|---|
2688a32f FE |
1 | /* |
2 | * Copyright 2013 Freescale Semiconductor, Inc. | |
3 | * | |
4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | * | |
10 | */ | |
11 | ||
12 | / { | |
13 | regulators { | |
14 | compatible = "simple-bus"; | |
15 | ||
16 | reg_2p5v: 2p5v { | |
17 | compatible = "regulator-fixed"; | |
18 | regulator-name = "2P5V"; | |
19 | regulator-min-microvolt = <2500000>; | |
20 | regulator-max-microvolt = <2500000>; | |
21 | regulator-always-on; | |
22 | }; | |
23 | ||
24 | reg_3p3v: 3p3v { | |
25 | compatible = "regulator-fixed"; | |
26 | regulator-name = "3P3V"; | |
27 | regulator-min-microvolt = <3300000>; | |
28 | regulator-max-microvolt = <3300000>; | |
29 | regulator-always-on; | |
30 | }; | |
31 | }; | |
32 | ||
33 | sound { | |
34 | compatible = "fsl,imx6-wandboard-sgtl5000", | |
35 | "fsl,imx-audio-sgtl5000"; | |
36 | model = "imx6-wandboard-sgtl5000"; | |
37 | ssi-controller = <&ssi1>; | |
38 | audio-codec = <&codec>; | |
39 | audio-routing = | |
40 | "MIC_IN", "Mic Jack", | |
41 | "Mic Jack", "Mic Bias", | |
42 | "Headphone Jack", "HP_OUT"; | |
43 | mux-int-port = <1>; | |
44 | mux-ext-port = <3>; | |
45 | }; | |
46 | }; | |
47 | ||
48 | &audmux { | |
49 | pinctrl-names = "default"; | |
50 | pinctrl-0 = <&pinctrl_audmux_2>; | |
51 | status = "okay"; | |
52 | }; | |
53 | ||
54 | &i2c2 { | |
55 | clock-frequency = <100000>; | |
56 | pinctrl-names = "default"; | |
57 | pinctrl-0 = <&pinctrl_i2c2_2>; | |
58 | status = "okay"; | |
59 | ||
60 | codec: sgtl5000@0a { | |
61 | compatible = "fsl,sgtl5000"; | |
62 | reg = <0x0a>; | |
a94f8ecb | 63 | clocks = <&clks 201>; |
2688a32f FE |
64 | VDDA-supply = <®_2p5v>; |
65 | VDDIO-supply = <®_3p3v>; | |
66 | }; | |
67 | }; | |
68 | ||
69 | &iomuxc { | |
70 | pinctrl-names = "default"; | |
71 | pinctrl-0 = <&pinctrl_hog>; | |
72 | ||
73 | hog { | |
74 | pinctrl_hog: hoggrp { | |
75 | fsl,pins = < | |
a338be9a TP |
76 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 |
77 | MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 | |
78 | MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0x80000000 | |
79 | MX6QDL_PAD_EIM_EB1__GPIO2_IO29 0x80000000 /* WL_REF_ON */ | |
80 | MX6QDL_PAD_EIM_A25__GPIO5_IO02 0x80000000 /* WL_RST_N */ | |
81 | MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x80000000 /* WL_REG_ON */ | |
82 | MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000 /* WL_HOST_WAKE */ | |
83 | MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* WL_WAKE */ | |
2688a32f FE |
84 | >; |
85 | }; | |
86 | }; | |
87 | }; | |
88 | ||
89 | &fec { | |
90 | pinctrl-names = "default"; | |
91 | pinctrl-0 = <&pinctrl_enet_1>; | |
92 | phy-mode = "rgmii"; | |
93 | status = "okay"; | |
94 | }; | |
95 | ||
96 | &ssi1 { | |
97 | fsl,mode = "i2s-slave"; | |
98 | status = "okay"; | |
99 | }; | |
100 | ||
101 | &uart1 { | |
102 | pinctrl-names = "default"; | |
103 | pinctrl-0 = <&pinctrl_uart1_1>; | |
104 | status = "okay"; | |
105 | }; | |
106 | ||
107 | &uart3 { | |
108 | pinctrl-names = "default"; | |
109 | pinctrl-0 = <&pinctrl_uart3_2>; | |
110 | fsl,uart-has-rtscts; | |
111 | status = "okay"; | |
112 | }; | |
113 | ||
114 | &usbh1 { | |
115 | status = "okay"; | |
116 | }; | |
117 | ||
118 | &usdhc1 { | |
119 | pinctrl-names = "default"; | |
120 | pinctrl-0 = <&pinctrl_usdhc1_2>; | |
121 | cd-gpios = <&gpio1 2 0>; | |
122 | status = "okay"; | |
123 | }; | |
124 | ||
125 | &usdhc2 { | |
126 | pinctrl-names = "default"; | |
127 | pinctrl-0 = <&pinctrl_usdhc2_2>; | |
128 | non-removable; | |
129 | status = "okay"; | |
130 | }; | |
131 | ||
132 | &usdhc3 { | |
133 | pinctrl-names = "default"; | |
134 | pinctrl-0 = <&pinctrl_usdhc3_2>; | |
135 | cd-gpios = <&gpio3 9 0>; | |
136 | status = "okay"; | |
137 | }; |