]>
Commit | Line | Data |
---|---|---|
414b4153 GGM |
1 | /* |
2 | * Copyright 2012 Armadeus Systems - <support@armadeus.com> | |
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 | /* APF28Dev is a docking board for the APF28 SOM */ | |
13 | /include/ "imx28-apf28.dts" | |
14 | ||
15 | / { | |
16 | model = "Armadeus Systems APF28Dev docking/development board"; | |
17 | compatible = "armadeus,imx28-apf28dev", "armadeus,imx28-apf28", "fsl,imx28"; | |
18 | ||
19 | apb@80000000 { | |
20 | apbh@80000000 { | |
21 | ssp0: ssp@80010000 { | |
22 | compatible = "fsl,imx28-mmc"; | |
23 | pinctrl-names = "default"; | |
24 | pinctrl-0 = <&mmc0_4bit_pins_a | |
25 | &mmc0_cd_cfg &mmc0_sck_cfg>; | |
26 | bus-width = <4>; | |
27 | status = "okay"; | |
28 | }; | |
24acd6bf | 29 | |
ac8e44ce GGM |
30 | ssp2: ssp@80014000 { |
31 | compatible = "fsl,imx28-spi"; | |
32 | pinctrl-names = "default"; | |
33 | pinctrl-0 = <&spi2_pins_a>; | |
34 | status = "okay"; | |
35 | }; | |
36 | ||
24acd6bf GGM |
37 | pinctrl@80018000 { |
38 | pinctrl-names = "default"; | |
39 | pinctrl-0 = <&hog_pins_apf28dev>; | |
40 | ||
41 | hog_pins_apf28dev: hog@0 { | |
42 | reg = <0>; | |
43 | fsl,pinmux-ids = < | |
44 | 0x1103 /* MX28_PAD_LCD_D16__GPIO_1_16 */ | |
45 | 0x1113 /* MX28_PAD_LCD_D17__GPIO_1_17 */ | |
46 | 0x1123 /* MX28_PAD_LCD_D18__GPIO_1_18 */ | |
47 | 0x1133 /* MX28_PAD_LCD_D19__GPIO_1_19 */ | |
48 | 0x1143 /* MX28_PAD_LCD_D20__GPIO_1_20 */ | |
49 | 0x1153 /* MX28_PAD_LCD_D21__GPIO_1_21 */ | |
50 | 0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */ | |
51 | >; | |
52 | fsl,drive-strength = <0>; | |
53 | fsl,voltage = <1>; | |
54 | fsl,pull-up = <0>; | |
55 | }; | |
a4dabca8 GGM |
56 | |
57 | lcdif_pins_apf28dev: lcdif-apf28dev@0 { | |
58 | reg = <0>; | |
59 | fsl,pinmux-ids = < | |
60 | 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */ | |
61 | 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */ | |
62 | 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */ | |
63 | 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */ | |
64 | >; | |
65 | fsl,drive-strength = <0>; | |
66 | fsl,voltage = <1>; | |
67 | fsl,pull-up = <0>; | |
68 | }; | |
69 | }; | |
70 | ||
71 | lcdif@80030000 { | |
72 | pinctrl-names = "default"; | |
73 | pinctrl-0 = <&lcdif_16bit_pins_a | |
74 | &lcdif_pins_apf28dev>; | |
0d9f8217 | 75 | display = <&display>; |
a4dabca8 | 76 | status = "okay"; |
0d9f8217 SG |
77 | |
78 | display: display { | |
79 | bits-per-pixel = <16>; | |
80 | bus-width = <16>; | |
81 | ||
82 | display-timings { | |
83 | native-mode = <&timing0>; | |
84 | timing0: timing0 { | |
85 | clock-frequency = <33000033>; | |
86 | hactive = <800>; | |
87 | vactive = <480>; | |
88 | hback-porch = <96>; | |
89 | hfront-porch = <96>; | |
90 | vback-porch = <20>; | |
91 | vfront-porch = <21>; | |
92 | hsync-len = <64>; | |
93 | vsync-len = <4>; | |
94 | hsync-active = <1>; | |
95 | vsync-active = <1>; | |
96 | de-active = <1>; | |
97 | pixelclk-active = <0>; | |
98 | }; | |
99 | }; | |
100 | }; | |
24acd6bf | 101 | }; |
414b4153 GGM |
102 | }; |
103 | ||
104 | apbx@80040000 { | |
105 | lradc@80050000 { | |
106 | status = "okay"; | |
107 | }; | |
108 | ||
ac8e44ce GGM |
109 | i2c0: i2c@80058000 { |
110 | pinctrl-names = "default"; | |
111 | pinctrl-0 = <&i2c0_pins_a>; | |
112 | status = "okay"; | |
113 | }; | |
114 | ||
414b4153 GGM |
115 | pwm: pwm@80064000 { |
116 | pinctrl-names = "default"; | |
117 | pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>; | |
118 | status = "okay"; | |
119 | }; | |
120 | ||
121 | usbphy0: usbphy@8007c000 { | |
122 | status = "okay"; | |
123 | }; | |
124 | ||
125 | usbphy1: usbphy@8007e000 { | |
126 | status = "okay"; | |
127 | }; | |
128 | }; | |
129 | }; | |
130 | ||
131 | ahb@80080000 { | |
132 | usb0: usb@80080000 { | |
133 | vbus-supply = <®_usb0_vbus>; | |
134 | status = "okay"; | |
135 | }; | |
136 | ||
137 | usb1: usb@80090000 { | |
138 | status = "okay"; | |
139 | }; | |
140 | ||
141 | mac1: ethernet@800f4000 { | |
142 | phy-mode = "rmii"; | |
143 | pinctrl-names = "default"; | |
144 | pinctrl-0 = <&mac1_pins_a>; | |
145 | phy-reset-gpios = <&gpio0 23 0>; | |
146 | status = "okay"; | |
147 | }; | |
148 | }; | |
149 | ||
150 | regulators { | |
151 | compatible = "simple-bus"; | |
152 | ||
153 | reg_usb0_vbus: usb0_vbus { | |
154 | compatible = "regulator-fixed"; | |
155 | regulator-name = "usb0_vbus"; | |
156 | regulator-min-microvolt = <5000000>; | |
157 | regulator-max-microvolt = <5000000>; | |
158 | gpio = <&gpio1 23 1>; | |
159 | }; | |
160 | }; | |
161 | ||
162 | leds { | |
163 | compatible = "gpio-leds"; | |
164 | ||
165 | user { | |
166 | label = "Heartbeat"; | |
167 | gpios = <&gpio0 21 0>; | |
168 | linux,default-trigger = "heartbeat"; | |
169 | }; | |
170 | }; | |
a4dabca8 GGM |
171 | |
172 | backlight { | |
173 | compatible = "pwm-backlight"; | |
174 | ||
175 | pwms = <&pwm 3 191000>; | |
176 | brightness-levels = <0 4 8 16 32 64 128 255>; | |
177 | default-brightness-level = <6>; | |
178 | }; | |
414b4153 | 179 | }; |