ARM: dts: enable the uart2 for imx6q-arm2
[linux-2.6-block.git] / arch / arm / boot / dts / imx6qdl-sabresd.dtsi
CommitLineData
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
NC
29
30 reg_audio: wm8962_supply {
31 compatible = "regulator-fixed";
32 regulator-name = "wm8962-supply";
33 gpio = <&gpio4 10 0>;
34 enable-active-high;
35 };
082d33d0
SG
36 };
37
38 gpio-keys {
39 compatible = "gpio-keys";
40
41 volume-up {
42 label = "Volume Up";
43 gpios = <&gpio1 4 0>;
44 linux,code = <115>; /* KEY_VOLUMEUP */
45 };
46
47 volume-down {
48 label = "Volume Down";
49 gpios = <&gpio1 5 0>;
50 linux,code = <114>; /* KEY_VOLUMEDOWN */
51 };
52 };
77b38fc3
NC
53
54 sound {
55 compatible = "fsl,imx6q-sabresd-wm8962",
56 "fsl,imx-audio-wm8962";
57 model = "wm8962-audio";
58 ssi-controller = <&ssi2>;
59 audio-codec = <&codec>;
60 audio-routing =
61 "Headphone Jack", "HPOUTL",
62 "Headphone Jack", "HPOUTR",
63 "Ext Spk", "SPKOUTL",
64 "Ext Spk", "SPKOUTR",
65 "MICBIAS", "AMIC",
66 "IN3R", "MICBIAS",
67 "DMIC", "MICBIAS",
68 "DMICDAT", "DMIC";
69 mux-int-port = <2>;
70 mux-ext-port = <3>;
71 };
082d33d0
SG
72};
73
48828700
NC
74&audmux {
75 pinctrl-names = "default";
76 pinctrl-0 = <&pinctrl_audmux_2>;
77 status = "okay";
78};
79
9110ede4
HS
80&ecspi1 {
81 fsl,spi-num-chipselects = <1>;
82 cs-gpios = <&gpio4 9 0>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_ecspi1_2>;
85 status = "okay";
86
87 flash: m25p80@0 {
88 #address-cells = <1>;
89 #size-cells = <1>;
90 compatible = "st,m25p32";
91 spi-max-frequency = <20000000>;
92 reg = <0>;
93 };
94};
95
082d33d0
SG
96&fec {
97 pinctrl-names = "default";
98 pinctrl-0 = <&pinctrl_enet_1>;
99 phy-mode = "rgmii";
100 status = "okay";
101};
102
20426feb
NC
103&i2c1 {
104 clock-frequency = <100000>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_i2c1_2>;
107 status = "okay";
108
109 codec: wm8962@1a {
110 compatible = "wlf,wm8962";
111 reg = <0x1a>;
112 clocks = <&clks 169>;
113 DCVDD-supply = <&reg_audio>;
114 DBVDD-supply = <&reg_audio>;
115 AVDD-supply = <&reg_audio>;
116 CPVDD-supply = <&reg_audio>;
117 MICVDD-supply = <&reg_audio>;
118 PLLVDD-supply = <&reg_audio>;
119 SPKVDD1-supply = <&reg_audio>;
120 SPKVDD2-supply = <&reg_audio>;
121 gpio-cfg = <
122 0x0000 /* 0:Default */
123 0x0000 /* 1:Default */
124 0x0013 /* 2:FN_DMICCLK */
125 0x0000 /* 3:Default */
126 0x8014 /* 4:FN_DMICCDAT */
127 0x0000 /* 5:Default */
128 >;
129 };
130};
131
48828700
NC
132&ssi2 {
133 fsl,mode = "i2s-slave";
134 status = "okay";
135};
136
082d33d0
SG
137&uart1 {
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_uart1_1>;
140 status = "okay";
141};
142
143&usbh1 {
144 status = "okay";
145};
146
147&usbotg {
148 vbus-supply = <&reg_usb_otg_vbus>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&pinctrl_usbotg_2>;
151 disable-over-current;
152 status = "okay";
153};
154
155&usdhc2 {
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_usdhc2_1>;
158 cd-gpios = <&gpio2 2 0>;
159 wp-gpios = <&gpio2 3 0>;
160 status = "okay";
161};
162
163&usdhc3 {
164 pinctrl-names = "default";
165 pinctrl-0 = <&pinctrl_usdhc3_1>;
166 cd-gpios = <&gpio2 0 0>;
167 wp-gpios = <&gpio2 1 0>;
168 status = "okay";
169};