ARM: mxs: dt: Add Crystalfontz CFA-10037 device tree support
[linux-2.6-block.git] / arch / arm / boot / dts / imx28-cfa10049.dts
CommitLineData
db84c038
MR
1/*
2 * Copyright 2012 Free Electrons
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12/*
13 * The CFA-10049 is an expansion board for the CFA-10036 module, thus we
14 * need to include the CFA-10036 DTS.
15 */
16/include/ "imx28-cfa10036.dts"
17
18/ {
19 model = "Crystalfontz CFA-10049 Board";
20 compatible = "crystalfontz,cfa10049", "crystalfontz,cfa10036", "fsl,imx28";
21
22 apb@80000000 {
223d1f92
MR
23 apbh@80000000 {
24 pinctrl@80018000 {
24196d5c 25 pinctrl-names = "default", "default";
5b615fbf
MR
26 pinctrl-1 = <&hog_pins_cfa10049
27 &hog_pins_cfa10049_pullup>;
24196d5c
MR
28
29 hog_pins_cfa10049: hog-10049@0 {
30 reg = <0>;
31 fsl,pinmux-ids = <
32 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
33 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */
34 0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */
35 0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */
36 >;
37 fsl,drive-strength = <0>;
38 fsl,voltage = <1>;
39 fsl,pull-up = <0>;
40 };
41
5b615fbf
MR
42 hog_pins_cfa10049_pullup: hog-10049-pullup@0 {
43 reg = <0>;
44 fsl,pinmux-ids = <
45 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
46 >;
47 fsl,drive-strength = <0>;
48 fsl,voltage = <1>;
49 fsl,pull-up = <1>;
50 };
51
223d1f92
MR
52 spi3_pins_cfa10049: spi3-cfa10049@0 {
53 reg = <0>;
54 fsl,pinmux-ids = <
55 0x0181 /* MX28_PAD_GPMI_RDN__SSP3_SCK */
56 0x01c1 /* MX28_PAD_GPMI_RESETN__SSP3_CMD */
13b4569b
MR
57 0x0111 /* MX28_PAD_GPMI_CE1N__SSP3_D3 */
58 0x01a2 /* MX28_PAD_GPMI_ALE__SSP3_D4 */
db7a8946 59 0x01b2 /* MX28_PAD_GPMI_CLE__SSP3_D5 */
223d1f92
MR
60 >;
61 fsl,drive-strength = <1>;
62 fsl,voltage = <1>;
63 fsl,pull-up = <1>;
64 };
65 };
66
67 ssp3: ssp@80016000 {
68 compatible = "fsl,imx28-spi";
69 pinctrl-names = "default";
70 pinctrl-0 = <&spi3_pins_cfa10049>;
71 status = "okay";
13b4569b
MR
72
73 gpio5: gpio5@0 {
74 compatible = "fairchild,74hc595";
75 gpio-controller;
76 #gpio-cells = <2>;
77 reg = <0>;
78 registers-number = <2>;
79 spi-max-frequency = <100000>;
80 };
81
82 gpio6: gpio6@1 {
83 compatible = "fairchild,74hc595";
84 gpio-controller;
85 #gpio-cells = <2>;
86 reg = <1>;
87 registers-number = <4>;
88 spi-max-frequency = <100000>;
89 };
90
db7a8946
MR
91 dac0: dh2228@2 {
92 compatible = "rohm,dh2228fv";
93 reg = <2>;
94 spi-max-frequency = <100000>;
95 };
223d1f92
MR
96 };
97 };
98
db84c038
MR
99 apbx@80040000 {
100 i2c1: i2c@8005a000 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&i2c1_pins_a>;
103 status = "okay";
104 };
186e3d94 105
06e9eff1
MR
106 i2cmux {
107 compatible = "i2c-mux-gpio";
108 #address-cells = <1>;
109 #size-cells = <0>;
110 mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
111 i2c-parent = <&i2c1>;
112
113 i2c@0 {
114 reg = <0>;
115 };
116
117 i2c@1 {
118 reg = <1>;
119 };
120
121 i2c@2 {
122 reg = <2>;
123 };
124
125 i2c@3 {
126 reg = <3>;
5b615fbf
MR
127 #address-cells = <1>;
128 #size-cells = <0>;
129
130 pca9555: pca9555@20 {
131 compatible = "nxp,pca9555";
132 interrupt-parent = <&gpio2>;
133 interrupts = <19 0x2>;
134 gpio-controller;
135 #gpio-cells = <2>;
136 interrupt-controller;
137 #interrupt-cells = <2>;
138 reg = <0x20>;
139 };
06e9eff1
MR
140 };
141 };
142
186e3d94
MR
143 usbphy1: usbphy@8007e000 {
144 status = "okay";
145 };
146 };
147 };
148
149 ahb@80080000 {
150 usb1: usb@80090000 {
151 vbus-supply = <&reg_usb1_vbus>;
152 pinctrl-0 = <&usbphy1_pins_a>;
153 pinctrl-names = "default";
154 status = "okay";
155 };
156 };
157
158 regulators {
159 compatible = "simple-bus";
160
161 reg_usb1_vbus: usb1_vbus {
162 compatible = "regulator-fixed";
163 regulator-name = "usb1_vbus";
164 regulator-min-microvolt = <5000000>;
165 regulator-max-microvolt = <5000000>;
166 gpio = <&gpio0 7 1>;
db84c038
MR
167 };
168 };
8eec4b31
MR
169
170 ahb@80080000 {
171 mac0: ethernet@800f0000 {
172 phy-mode = "rmii";
173 pinctrl-names = "default";
174 pinctrl-0 = <&mac0_pins_a>;
175 phy-reset-gpios = <&gpio2 21 0>;
176 phy-reset-duration = <100>;
177 status = "okay";
178 };
179 };
db84c038 180};