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>; | |
75 | status = "okay"; | |
24acd6bf | 76 | }; |
414b4153 GGM |
77 | }; |
78 | ||
79 | apbx@80040000 { | |
80 | lradc@80050000 { | |
81 | status = "okay"; | |
82 | }; | |
83 | ||
ac8e44ce GGM |
84 | i2c0: i2c@80058000 { |
85 | pinctrl-names = "default"; | |
86 | pinctrl-0 = <&i2c0_pins_a>; | |
87 | status = "okay"; | |
88 | }; | |
89 | ||
414b4153 GGM |
90 | pwm: pwm@80064000 { |
91 | pinctrl-names = "default"; | |
92 | pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>; | |
93 | status = "okay"; | |
94 | }; | |
95 | ||
96 | usbphy0: usbphy@8007c000 { | |
97 | status = "okay"; | |
98 | }; | |
99 | ||
100 | usbphy1: usbphy@8007e000 { | |
101 | status = "okay"; | |
102 | }; | |
103 | }; | |
104 | }; | |
105 | ||
106 | ahb@80080000 { | |
107 | usb0: usb@80080000 { | |
108 | vbus-supply = <®_usb0_vbus>; | |
109 | status = "okay"; | |
110 | }; | |
111 | ||
112 | usb1: usb@80090000 { | |
113 | status = "okay"; | |
114 | }; | |
115 | ||
116 | mac1: ethernet@800f4000 { | |
117 | phy-mode = "rmii"; | |
118 | pinctrl-names = "default"; | |
119 | pinctrl-0 = <&mac1_pins_a>; | |
120 | phy-reset-gpios = <&gpio0 23 0>; | |
121 | status = "okay"; | |
122 | }; | |
123 | }; | |
124 | ||
125 | regulators { | |
126 | compatible = "simple-bus"; | |
127 | ||
128 | reg_usb0_vbus: usb0_vbus { | |
129 | compatible = "regulator-fixed"; | |
130 | regulator-name = "usb0_vbus"; | |
131 | regulator-min-microvolt = <5000000>; | |
132 | regulator-max-microvolt = <5000000>; | |
133 | gpio = <&gpio1 23 1>; | |
134 | }; | |
135 | }; | |
136 | ||
137 | leds { | |
138 | compatible = "gpio-leds"; | |
139 | ||
140 | user { | |
141 | label = "Heartbeat"; | |
142 | gpios = <&gpio0 21 0>; | |
143 | linux,default-trigger = "heartbeat"; | |
144 | }; | |
145 | }; | |
a4dabca8 GGM |
146 | |
147 | backlight { | |
148 | compatible = "pwm-backlight"; | |
149 | ||
150 | pwms = <&pwm 3 191000>; | |
151 | brightness-levels = <0 4 8 16 32 64 128 255>; | |
152 | default-brightness-level = <6>; | |
153 | }; | |
414b4153 | 154 | }; |