]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/imx28-apf28dev.dts
ARM: dts: imx28-apf28dev: add support for can0
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / imx28-apf28dev.dts
CommitLineData
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 */
bc3875f1 13#include "imx28-apf28.dts"
414b4153
GGM
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 = <
bc3875f1
LW
44 MX28_PAD_LCD_D16__GPIO_1_16
45 MX28_PAD_LCD_D17__GPIO_1_17
46 MX28_PAD_LCD_D18__GPIO_1_18
47 MX28_PAD_LCD_D19__GPIO_1_19
48 MX28_PAD_LCD_D20__GPIO_1_20
49 MX28_PAD_LCD_D21__GPIO_1_21
50 MX28_PAD_LCD_D22__GPIO_1_22
625df5bd 51 MX28_PAD_GPMI_CE1N__GPIO_0_17
24acd6bf 52 >;
4191c340
LW
53 fsl,drive-strength = <MXS_DRIVE_4mA>;
54 fsl,voltage = <MXS_VOLTAGE_HIGH>;
55 fsl,pull-up = <MXS_PULL_DISABLE>;
24acd6bf 56 };
a4dabca8
GGM
57
58 lcdif_pins_apf28dev: lcdif-apf28dev@0 {
59 reg = <0>;
60 fsl,pinmux-ids = <
bc3875f1
LW
61 MX28_PAD_LCD_RD_E__LCD_VSYNC
62 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
63 MX28_PAD_LCD_RS__LCD_DOTCLK
64 MX28_PAD_LCD_CS__LCD_ENABLE
a4dabca8 65 >;
4191c340
LW
66 fsl,drive-strength = <MXS_DRIVE_4mA>;
67 fsl,voltage = <MXS_VOLTAGE_HIGH>;
68 fsl,pull-up = <MXS_PULL_DISABLE>;
a4dabca8 69 };
2ba4d1ca
GGM
70
71 usb0_otg_apf28dev: otg-apf28dev@0 {
72 reg = <0>;
73 fsl,pinmux-ids = <
74 MX28_PAD_LCD_D23__GPIO_1_23
75 >;
76 fsl,drive-strength = <MXS_DRIVE_4mA>;
77 fsl,voltage = <MXS_VOLTAGE_HIGH>;
78 fsl,pull-up = <MXS_PULL_DISABLE>;
79 };
a4dabca8
GGM
80 };
81
82 lcdif@80030000 {
83 pinctrl-names = "default";
84 pinctrl-0 = <&lcdif_16bit_pins_a
85 &lcdif_pins_apf28dev>;
ee99b463 86 display = <&display0>;
a4dabca8 87 status = "okay";
0d9f8217 88
ee99b463 89 display0: display0 {
0d9f8217
SG
90 bits-per-pixel = <16>;
91 bus-width = <16>;
92
93 display-timings {
94 native-mode = <&timing0>;
95 timing0: timing0 {
96 clock-frequency = <33000033>;
97 hactive = <800>;
98 vactive = <480>;
99 hback-porch = <96>;
100 hfront-porch = <96>;
101 vback-porch = <20>;
102 vfront-porch = <21>;
103 hsync-len = <64>;
104 vsync-len = <4>;
105 hsync-active = <1>;
106 vsync-active = <1>;
107 de-active = <1>;
108 pixelclk-active = <0>;
109 };
110 };
111 };
24acd6bf 112 };
d5ee087a
GGM
113
114 can0: can@80032000 {
115 pinctrl-names = "default";
116 pinctrl-0 = <&can0_pins_a>;
117 xceiver-supply = <&reg_can0_vcc>;
118 status = "okay";
119 };
414b4153
GGM
120 };
121
122 apbx@80040000 {
123 lradc@80050000 {
25a7376a 124 fsl,lradc-touchscreen-wires = <4>;
414b4153
GGM
125 status = "okay";
126 };
127
ac8e44ce
GGM
128 i2c0: i2c@80058000 {
129 pinctrl-names = "default";
130 pinctrl-0 = <&i2c0_pins_a>;
131 status = "okay";
132 };
133
414b4153
GGM
134 pwm: pwm@80064000 {
135 pinctrl-names = "default";
136 pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>;
137 status = "okay";
138 };
139
140 usbphy0: usbphy@8007c000 {
141 status = "okay";
142 };
143
144 usbphy1: usbphy@8007e000 {
145 status = "okay";
146 };
147 };
148 };
149
150 ahb@80080000 {
151 usb0: usb@80080000 {
2ba4d1ca 152 pinctrl-names = "default";
94d5f33c
GGM
153 pinctrl-0 = <&usb0_otg_apf28dev
154 &usb0_id_pins_b>;
414b4153
GGM
155 vbus-supply = <&reg_usb0_vbus>;
156 status = "okay";
157 };
158
159 usb1: usb@80090000 {
160 status = "okay";
161 };
162
163 mac1: ethernet@800f4000 {
164 phy-mode = "rmii";
165 pinctrl-names = "default";
166 pinctrl-0 = <&mac1_pins_a>;
9648bb48 167 phy-reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
414b4153
GGM
168 status = "okay";
169 };
170 };
171
172 regulators {
173 compatible = "simple-bus";
352d318c
SG
174 #address-cells = <1>;
175 #size-cells = <0>;
414b4153 176
352d318c 177 reg_usb0_vbus: regulator@0 {
414b4153 178 compatible = "regulator-fixed";
352d318c 179 reg = <0>;
414b4153
GGM
180 regulator-name = "usb0_vbus";
181 regulator-min-microvolt = <5000000>;
182 regulator-max-microvolt = <5000000>;
183 gpio = <&gpio1 23 1>;
2ba4d1ca 184 enable-active-high;
414b4153 185 };
d5ee087a
GGM
186
187 reg_can0_vcc: regulator@1 {
188 compatible = "regulator-fixed";
189 reg = <1>;
190 regulator-name = "can0_vcc";
191 regulator-min-microvolt = <5000000>;
192 regulator-max-microvolt = <5000000>;
193 };
414b4153
GGM
194 };
195
196 leds {
197 compatible = "gpio-leds";
198
199 user {
200 label = "Heartbeat";
201 gpios = <&gpio0 21 0>;
202 linux,default-trigger = "heartbeat";
203 };
204 };
a4dabca8
GGM
205
206 backlight {
207 compatible = "pwm-backlight";
208
209 pwms = <&pwm 3 191000>;
210 brightness-levels = <0 4 8 16 32 64 128 255>;
211 default-brightness-level = <6>;
212 };
625df5bd
SS
213
214 gpio-keys {
215 compatible = "gpio-keys";
216
217 user-button {
218 label = "User button";
219 gpios = <&gpio0 17 0>;
220 linux,code = <0x100>;
221 };
222 };
414b4153 223};