blob: 1d2dcef49edcf43fc6443501ae344960d8cfa903 [file] [log] [blame]
Shawn Guo082d33d2013-04-02 13:15:16 +08001/*
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 };
Nicolin Chenfdbfb432013-06-13 19:51:00 +080029
30 reg_audio: wm8962_supply {
31 compatible = "regulator-fixed";
32 regulator-name = "wm8962-supply";
33 gpio = <&gpio4 10 0>;
34 enable-active-high;
35 };
Shawn Guo082d33d2013-04-02 13:15:16 +080036 };
37
38 gpio-keys {
39 compatible = "gpio-keys";
40
41 volume-up {
42 label = "Volume Up";
43 gpios = <&gpio1 4 0>;
Fabio Estevam6c306402013-07-19 10:40:23 -030044 gpio-key,wakeup;
Shawn Guo082d33d2013-04-02 13:15:16 +080045 linux,code = <115>; /* KEY_VOLUMEUP */
46 };
47
48 volume-down {
49 label = "Volume Down";
50 gpios = <&gpio1 5 0>;
Fabio Estevam6c306402013-07-19 10:40:23 -030051 gpio-key,wakeup;
Shawn Guo082d33d2013-04-02 13:15:16 +080052 linux,code = <114>; /* KEY_VOLUMEDOWN */
53 };
54 };
Nicolin Chen77b38fc2013-06-14 13:22:46 +080055
56 sound {
57 compatible = "fsl,imx6q-sabresd-wm8962",
58 "fsl,imx-audio-wm8962";
59 model = "wm8962-audio";
60 ssi-controller = <&ssi2>;
61 audio-codec = <&codec>;
62 audio-routing =
63 "Headphone Jack", "HPOUTL",
64 "Headphone Jack", "HPOUTR",
65 "Ext Spk", "SPKOUTL",
66 "Ext Spk", "SPKOUTR",
67 "MICBIAS", "AMIC",
68 "IN3R", "MICBIAS",
69 "DMIC", "MICBIAS",
70 "DMICDAT", "DMIC";
71 mux-int-port = <2>;
72 mux-ext-port = <3>;
73 };
Shawn Guo082d33d2013-04-02 13:15:16 +080074};
75
Nicolin Chen48828702013-06-14 13:19:57 +080076&audmux {
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_audmux_2>;
79 status = "okay";
80};
81
Huang Shijie9110ede2013-06-21 10:19:11 +080082&ecspi1 {
83 fsl,spi-num-chipselects = <1>;
84 cs-gpios = <&gpio4 9 0>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_ecspi1_2>;
87 status = "okay";
88
89 flash: m25p80@0 {
90 #address-cells = <1>;
91 #size-cells = <1>;
92 compatible = "st,m25p32";
93 spi-max-frequency = <20000000>;
94 reg = <0>;
95 };
96};
97
Shawn Guo082d33d2013-04-02 13:15:16 +080098&fec {
99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_enet_1>;
101 phy-mode = "rgmii";
102 status = "okay";
103};
104
Nicolin Chen20426fe2013-06-13 19:51:01 +0800105&i2c1 {
106 clock-frequency = <100000>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_i2c1_2>;
109 status = "okay";
110
111 codec: wm8962@1a {
112 compatible = "wlf,wm8962";
113 reg = <0x1a>;
Shawn Guoa94f8ec2013-07-18 14:42:28 +0800114 clocks = <&clks 201>;
Nicolin Chen20426fe2013-06-13 19:51:01 +0800115 DCVDD-supply = <&reg_audio>;
116 DBVDD-supply = <&reg_audio>;
117 AVDD-supply = <&reg_audio>;
118 CPVDD-supply = <&reg_audio>;
119 MICVDD-supply = <&reg_audio>;
120 PLLVDD-supply = <&reg_audio>;
121 SPKVDD1-supply = <&reg_audio>;
122 SPKVDD2-supply = <&reg_audio>;
123 gpio-cfg = <
124 0x0000 /* 0:Default */
125 0x0000 /* 1:Default */
126 0x0013 /* 2:FN_DMICCLK */
127 0x0000 /* 3:Default */
128 0x8014 /* 4:FN_DMICCDAT */
129 0x0000 /* 5:Default */
130 >;
131 };
132};
133
Shawn Guoc56009b2f2013-07-11 13:58:36 +0800134&iomuxc {
135 pinctrl-names = "default";
136 pinctrl-0 = <&pinctrl_hog>;
137
138 hog {
139 pinctrl_hog: hoggrp {
140 fsl,pins = <
141 MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x80000000
142 MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x80000000
143 MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000
144 MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000
145 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000
146 MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000
147 MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0
148 >;
149 };
150 };
151};
152
Shawn Guob7fb7102013-07-16 22:15:18 +0800153&ldb {
154 status = "okay";
155
156 lvds-channel@1 {
157 fsl,data-mapping = "spwg";
158 fsl,data-width = <18>;
159 status = "okay";
160
161 display-timings {
162 native-mode = <&timing0>;
163 timing0: hsd100pxn1 {
164 clock-frequency = <65000000>;
165 hactive = <1024>;
166 vactive = <768>;
167 hback-porch = <220>;
168 hfront-porch = <40>;
169 vback-porch = <21>;
170 vfront-porch = <7>;
171 hsync-len = <60>;
172 vsync-len = <10>;
173 };
174 };
175 };
176};
177
Nicolin Chen48828702013-06-14 13:19:57 +0800178&ssi2 {
179 fsl,mode = "i2s-slave";
180 status = "okay";
181};
182
Shawn Guo082d33d2013-04-02 13:15:16 +0800183&uart1 {
184 pinctrl-names = "default";
185 pinctrl-0 = <&pinctrl_uart1_1>;
186 status = "okay";
187};
188
189&usbh1 {
190 status = "okay";
191};
192
193&usbotg {
194 vbus-supply = <&reg_usb_otg_vbus>;
195 pinctrl-names = "default";
196 pinctrl-0 = <&pinctrl_usbotg_2>;
197 disable-over-current;
198 status = "okay";
199};
200
201&usdhc2 {
202 pinctrl-names = "default";
203 pinctrl-0 = <&pinctrl_usdhc2_1>;
204 cd-gpios = <&gpio2 2 0>;
205 wp-gpios = <&gpio2 3 0>;
206 status = "okay";
207};
208
209&usdhc3 {
210 pinctrl-names = "default";
211 pinctrl-0 = <&pinctrl_usdhc3_1>;
212 cd-gpios = <&gpio2 0 0>;
213 wp-gpios = <&gpio2 1 0>;
214 status = "okay";
215};