3e580e34d7cb13fbe0c5507bf3174a99fcd21d7a
[platform/kernel/linux-stable.git] / arch / arm / boot / dts / imx6qdl-sabresd.dtsi
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                 };
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                 };
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         };
53 };
54
55 &audmux {
56         pinctrl-names = "default";
57         pinctrl-0 = <&pinctrl_audmux_2>;
58         status = "okay";
59 };
60
61 &fec {
62         pinctrl-names = "default";
63         pinctrl-0 = <&pinctrl_enet_1>;
64         phy-mode = "rgmii";
65         status = "okay";
66 };
67
68 &i2c1 {
69         clock-frequency = <100000>;
70         pinctrl-names = "default";
71         pinctrl-0 = <&pinctrl_i2c1_2>;
72         status = "okay";
73
74         codec: wm8962@1a {
75                 compatible = "wlf,wm8962";
76                 reg = <0x1a>;
77                 clocks = <&clks 169>;
78                 DCVDD-supply = <&reg_audio>;
79                 DBVDD-supply = <&reg_audio>;
80                 AVDD-supply = <&reg_audio>;
81                 CPVDD-supply = <&reg_audio>;
82                 MICVDD-supply = <&reg_audio>;
83                 PLLVDD-supply = <&reg_audio>;
84                 SPKVDD1-supply = <&reg_audio>;
85                 SPKVDD2-supply = <&reg_audio>;
86                 gpio-cfg = <
87                         0x0000 /* 0:Default */
88                         0x0000 /* 1:Default */
89                         0x0013 /* 2:FN_DMICCLK */
90                         0x0000 /* 3:Default */
91                         0x8014 /* 4:FN_DMICCDAT */
92                         0x0000 /* 5:Default */
93                 >;
94        };
95 };
96
97 &ssi2 {
98         fsl,mode = "i2s-slave";
99         status = "okay";
100 };
101
102 &uart1 {
103         pinctrl-names = "default";
104         pinctrl-0 = <&pinctrl_uart1_1>;
105         status = "okay";
106 };
107
108 &usbh1 {
109         status = "okay";
110 };
111
112 &usbotg {
113         vbus-supply = <&reg_usb_otg_vbus>;
114         pinctrl-names = "default";
115         pinctrl-0 = <&pinctrl_usbotg_2>;
116         disable-over-current;
117         status = "okay";
118 };
119
120 &usdhc2 {
121         pinctrl-names = "default";
122         pinctrl-0 = <&pinctrl_usdhc2_1>;
123         cd-gpios = <&gpio2 2 0>;
124         wp-gpios = <&gpio2 3 0>;
125         status = "okay";
126 };
127
128 &usdhc3 {
129         pinctrl-names = "default";
130         pinctrl-0 = <&pinctrl_usdhc3_1>;
131         cd-gpios = <&gpio2 0 0>;
132         wp-gpios = <&gpio2 1 0>;
133         status = "okay";
134 };