blob: 7890acc4161d14eeaeb27ae090e14bb7b2b69660 [file] [log] [blame]
Maxime Riparddb84c032012-08-31 16:00:41 +02001/*
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 {
Maxime Ripard223d1f92012-09-04 10:44:03 +020023 apbh@80000000 {
24 pinctrl@80018000 {
Maxime Ripard24196d52012-11-03 16:59:08 +010025 pinctrl-names = "default", "default";
Maxime Ripard5b615fb2012-11-20 15:33:35 +010026 pinctrl-1 = <&hog_pins_cfa10049
27 &hog_pins_cfa10049_pullup>;
Maxime Ripard24196d52012-11-03 16:59:08 +010028
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
Maxime Ripard5b615fb2012-11-20 15:33:35 +010042 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
Maxime Ripard223d1f92012-09-04 10:44:03 +020052 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 */
Maxime Ripard13b45692012-09-10 22:35:41 +020057 0x0111 /* MX28_PAD_GPMI_CE1N__SSP3_D3 */
58 0x01a2 /* MX28_PAD_GPMI_ALE__SSP3_D4 */
Maxime Riparddb7a8942012-10-31 11:30:10 +010059 0x01b2 /* MX28_PAD_GPMI_CLE__SSP3_D5 */
Maxime Ripard223d1f92012-09-04 10:44:03 +020060 >;
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";
Maxime Ripard13b45692012-09-10 22:35:41 +020072
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
Maxime Riparddb7a8942012-10-31 11:30:10 +010091 dac0: dh2228@2 {
92 compatible = "rohm,dh2228fv";
93 reg = <2>;
94 spi-max-frequency = <100000>;
95 };
Maxime Ripard223d1f92012-09-04 10:44:03 +020096 };
97 };
98
Maxime Riparddb84c032012-08-31 16:00:41 +020099 apbx@80040000 {
100 i2c1: i2c@8005a000 {
101 pinctrl-names = "default";
102 pinctrl-0 = <&i2c1_pins_a>;
103 status = "okay";
104 };
Maxime Ripard186e3d92012-09-03 16:15:25 +0200105
Maxime Ripard06e9eff2012-10-25 18:23:54 +0200106 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>;
Maxime Ripard5b615fb2012-11-20 15:33:35 +0100127 #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 };
Maxime Ripard06e9eff2012-10-25 18:23:54 +0200140 };
141 };
142
Maxime Ripard186e3d92012-09-03 16:15:25 +0200143 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>;
Maxime Riparddb84c032012-08-31 16:00:41 +0200167 };
168 };
Maxime Ripard8eec4b32012-10-07 10:36:28 +0800169
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 };
Maxime Riparddb84c032012-08-31 16:00:41 +0200180};