Commit | Line | Data |
---|---|---|
082d33d0 SG |
1 | /* |
2 | * Copyright 2012 Freescale Semiconductor, Inc. | |
3 | * Copyright 2011 Linaro Ltd. | |
4 | * | |
5 | * The code contained herein is licensed under the GNU General Public | |
6 | * License. You may obtain a copy of the GNU General Public License | |
7 | * Version 2 or later at the following locations: | |
8 | * | |
9 | * http://www.opensource.org/licenses/gpl-license.html | |
10 | * http://www.gnu.org/copyleft/gpl.html | |
11 | */ | |
12 | ||
13 | / { | |
14 | memory { | |
15 | reg = <0x10000000 0x40000000>; | |
16 | }; | |
17 | ||
18 | regulators { | |
19 | compatible = "simple-bus"; | |
20 | ||
21 | reg_usb_otg_vbus: usb_otg_vbus { | |
22 | compatible = "regulator-fixed"; | |
23 | regulator-name = "usb_otg_vbus"; | |
24 | regulator-min-microvolt = <5000000>; | |
25 | regulator-max-microvolt = <5000000>; | |
26 | gpio = <&gpio3 22 0>; | |
27 | enable-active-high; | |
28 | }; | |
fdbfb43b | 29 | |
015fa46d PC |
30 | reg_usb_h1_vbus: usb_h1_vbus { |
31 | compatible = "regulator-fixed"; | |
32 | regulator-name = "usb_h1_vbus"; | |
33 | regulator-min-microvolt = <5000000>; | |
34 | regulator-max-microvolt = <5000000>; | |
35 | gpio = <&gpio1 29 0>; | |
36 | enable-active-high; | |
37 | }; | |
38 | ||
fdbfb43b NC |
39 | reg_audio: wm8962_supply { |
40 | compatible = "regulator-fixed"; | |
41 | regulator-name = "wm8962-supply"; | |
42 | gpio = <&gpio4 10 0>; | |
43 | enable-active-high; | |
44 | }; | |
082d33d0 SG |
45 | }; |
46 | ||
47 | gpio-keys { | |
48 | compatible = "gpio-keys"; | |
49 | ||
50 | volume-up { | |
51 | label = "Volume Up"; | |
52 | gpios = <&gpio1 4 0>; | |
6c30640d | 53 | gpio-key,wakeup; |
082d33d0 SG |
54 | linux,code = <115>; /* KEY_VOLUMEUP */ |
55 | }; | |
56 | ||
57 | volume-down { | |
58 | label = "Volume Down"; | |
59 | gpios = <&gpio1 5 0>; | |
6c30640d | 60 | gpio-key,wakeup; |
082d33d0 SG |
61 | linux,code = <114>; /* KEY_VOLUMEDOWN */ |
62 | }; | |
63 | }; | |
77b38fc3 NC |
64 | |
65 | sound { | |
66 | compatible = "fsl,imx6q-sabresd-wm8962", | |
67 | "fsl,imx-audio-wm8962"; | |
68 | model = "wm8962-audio"; | |
69 | ssi-controller = <&ssi2>; | |
70 | audio-codec = <&codec>; | |
71 | audio-routing = | |
72 | "Headphone Jack", "HPOUTL", | |
73 | "Headphone Jack", "HPOUTR", | |
74 | "Ext Spk", "SPKOUTL", | |
75 | "Ext Spk", "SPKOUTR", | |
76 | "MICBIAS", "AMIC", | |
77 | "IN3R", "MICBIAS", | |
78 | "DMIC", "MICBIAS", | |
79 | "DMICDAT", "DMIC"; | |
80 | mux-int-port = <2>; | |
81 | mux-ext-port = <3>; | |
82 | }; | |
082d33d0 SG |
83 | }; |
84 | ||
48828700 NC |
85 | &audmux { |
86 | pinctrl-names = "default"; | |
87 | pinctrl-0 = <&pinctrl_audmux_2>; | |
88 | status = "okay"; | |
89 | }; | |
90 | ||
9110ede4 HS |
91 | &ecspi1 { |
92 | fsl,spi-num-chipselects = <1>; | |
93 | cs-gpios = <&gpio4 9 0>; | |
94 | pinctrl-names = "default"; | |
95 | pinctrl-0 = <&pinctrl_ecspi1_2>; | |
96 | status = "okay"; | |
97 | ||
98 | flash: m25p80@0 { | |
99 | #address-cells = <1>; | |
100 | #size-cells = <1>; | |
101 | compatible = "st,m25p32"; | |
102 | spi-max-frequency = <20000000>; | |
103 | reg = <0>; | |
104 | }; | |
105 | }; | |
106 | ||
082d33d0 SG |
107 | &fec { |
108 | pinctrl-names = "default"; | |
109 | pinctrl-0 = <&pinctrl_enet_1>; | |
110 | phy-mode = "rgmii"; | |
c5f592d1 | 111 | phy-reset-gpios = <&gpio1 25 0>; |
082d33d0 SG |
112 | status = "okay"; |
113 | }; | |
114 | ||
20426feb NC |
115 | &i2c1 { |
116 | clock-frequency = <100000>; | |
117 | pinctrl-names = "default"; | |
118 | pinctrl-0 = <&pinctrl_i2c1_2>; | |
119 | status = "okay"; | |
120 | ||
121 | codec: wm8962@1a { | |
122 | compatible = "wlf,wm8962"; | |
123 | reg = <0x1a>; | |
a94f8ecb | 124 | clocks = <&clks 201>; |
20426feb NC |
125 | DCVDD-supply = <®_audio>; |
126 | DBVDD-supply = <®_audio>; | |
127 | AVDD-supply = <®_audio>; | |
128 | CPVDD-supply = <®_audio>; | |
129 | MICVDD-supply = <®_audio>; | |
130 | PLLVDD-supply = <®_audio>; | |
131 | SPKVDD1-supply = <®_audio>; | |
132 | SPKVDD2-supply = <®_audio>; | |
133 | gpio-cfg = < | |
134 | 0x0000 /* 0:Default */ | |
135 | 0x0000 /* 1:Default */ | |
136 | 0x0013 /* 2:FN_DMICCLK */ | |
137 | 0x0000 /* 3:Default */ | |
138 | 0x8014 /* 4:FN_DMICCDAT */ | |
139 | 0x0000 /* 5:Default */ | |
140 | >; | |
141 | }; | |
142 | }; | |
143 | ||
38501179 FE |
144 | &i2c3 { |
145 | clock-frequency = <100000>; | |
146 | pinctrl-names = "default"; | |
147 | pinctrl-0 = <&pinctrl_i2c3_2>; | |
148 | status = "okay"; | |
149 | ||
150 | egalax_ts@04 { | |
151 | compatible = "eeti,egalax_ts"; | |
152 | reg = <0x04>; | |
153 | interrupt-parent = <&gpio6>; | |
154 | interrupts = <7 2>; | |
155 | wakeup-gpios = <&gpio6 7 0>; | |
156 | }; | |
157 | }; | |
158 | ||
c56009b2 SG |
159 | &iomuxc { |
160 | pinctrl-names = "default"; | |
161 | pinctrl-0 = <&pinctrl_hog>; | |
162 | ||
163 | hog { | |
164 | pinctrl_hog: hoggrp { | |
165 | fsl,pins = < | |
166 | MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000 | |
167 | MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x80000000 | |
168 | MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000 | |
169 | MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000 | |
170 | MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000 | |
171 | MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000 | |
172 | MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 | |
38501179 | 173 | MX6QDL_PAD_NANDF_CLE__GPIO6_IO07 0x80000000 |
015fa46d | 174 | MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x80000000 |
e3c68c86 | 175 | MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x80000000 |
c5f592d1 | 176 | MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x80000000 |
c56009b2 SG |
177 | >; |
178 | }; | |
179 | }; | |
180 | }; | |
181 | ||
b7fb7105 SG |
182 | &ldb { |
183 | status = "okay"; | |
184 | ||
185 | lvds-channel@1 { | |
186 | fsl,data-mapping = "spwg"; | |
187 | fsl,data-width = <18>; | |
188 | status = "okay"; | |
189 | ||
190 | display-timings { | |
191 | native-mode = <&timing0>; | |
192 | timing0: hsd100pxn1 { | |
193 | clock-frequency = <65000000>; | |
194 | hactive = <1024>; | |
195 | vactive = <768>; | |
196 | hback-porch = <220>; | |
197 | hfront-porch = <40>; | |
198 | vback-porch = <21>; | |
199 | vfront-porch = <7>; | |
200 | hsync-len = <60>; | |
201 | vsync-len = <10>; | |
202 | }; | |
203 | }; | |
204 | }; | |
205 | }; | |
206 | ||
48828700 NC |
207 | &ssi2 { |
208 | fsl,mode = "i2s-slave"; | |
209 | status = "okay"; | |
210 | }; | |
211 | ||
082d33d0 SG |
212 | &uart1 { |
213 | pinctrl-names = "default"; | |
214 | pinctrl-0 = <&pinctrl_uart1_1>; | |
215 | status = "okay"; | |
216 | }; | |
217 | ||
218 | &usbh1 { | |
015fa46d | 219 | vbus-supply = <®_usb_h1_vbus>; |
082d33d0 SG |
220 | status = "okay"; |
221 | }; | |
222 | ||
223 | &usbotg { | |
224 | vbus-supply = <®_usb_otg_vbus>; | |
225 | pinctrl-names = "default"; | |
226 | pinctrl-0 = <&pinctrl_usbotg_2>; | |
227 | disable-over-current; | |
228 | status = "okay"; | |
229 | }; | |
230 | ||
231 | &usdhc2 { | |
232 | pinctrl-names = "default"; | |
233 | pinctrl-0 = <&pinctrl_usdhc2_1>; | |
e367817a | 234 | bus-width = <8>; |
082d33d0 SG |
235 | cd-gpios = <&gpio2 2 0>; |
236 | wp-gpios = <&gpio2 3 0>; | |
237 | status = "okay"; | |
238 | }; | |
239 | ||
240 | &usdhc3 { | |
241 | pinctrl-names = "default"; | |
242 | pinctrl-0 = <&pinctrl_usdhc3_1>; | |
e367817a | 243 | bus-width = <8>; |
082d33d0 SG |
244 | cd-gpios = <&gpio2 0 0>; |
245 | wp-gpios = <&gpio2 1 0>; | |
246 | status = "okay"; | |
247 | }; |