blob: e2efd8d89c4fb82bca3602274380c7a81a515518 [file] [log] [blame]
Gwenhael Goavec-Merou414b4152012-10-31 18:39:26 +01001/*
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 */
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020013#include "imx28-apf28.dts"
Gwenhael Goavec-Merou414b4152012-10-31 18:39:26 +010014
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 };
Gwenhael Goavec-Merou24acd6b2012-11-02 19:01:47 +010029
Gwenhael Goavec-Merouac8e44c2012-11-09 13:42:41 +010030 ssp2: ssp@80014000 {
31 compatible = "fsl,imx28-spi";
32 pinctrl-names = "default";
33 pinctrl-0 = <&spi2_pins_a>;
34 status = "okay";
35 };
36
Gwenhael Goavec-Merou24acd6b2012-11-02 19:01:47 +010037 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 = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020044 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
Gwenhael Goavec-Merou24acd6b2012-11-02 19:01:47 +010051 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080052 fsl,drive-strength = <MXS_DRIVE_4mA>;
53 fsl,voltage = <MXS_VOLTAGE_HIGH>;
54 fsl,pull-up = <MXS_PULL_DISABLE>;
Gwenhael Goavec-Merou24acd6b2012-11-02 19:01:47 +010055 };
Gwenhael Goavec-Meroua4dabca2012-11-02 19:01:48 +010056
57 lcdif_pins_apf28dev: lcdif-apf28dev@0 {
58 reg = <0>;
59 fsl,pinmux-ids = <
Lothar Waßmannbc3875f2013-09-19 08:59:48 +020060 MX28_PAD_LCD_RD_E__LCD_VSYNC
61 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
62 MX28_PAD_LCD_RS__LCD_DOTCLK
63 MX28_PAD_LCD_CS__LCD_ENABLE
Gwenhael Goavec-Meroua4dabca2012-11-02 19:01:48 +010064 >;
Lothar Waßmann4191c342013-09-22 14:02:59 +080065 fsl,drive-strength = <MXS_DRIVE_4mA>;
66 fsl,voltage = <MXS_VOLTAGE_HIGH>;
67 fsl,pull-up = <MXS_PULL_DISABLE>;
Gwenhael Goavec-Meroua4dabca2012-11-02 19:01:48 +010068 };
69 };
70
71 lcdif@80030000 {
72 pinctrl-names = "default";
73 pinctrl-0 = <&lcdif_16bit_pins_a
74 &lcdif_pins_apf28dev>;
Shawn Guo0d9f8212013-03-14 11:37:15 +080075 display = <&display>;
Gwenhael Goavec-Meroua4dabca2012-11-02 19:01:48 +010076 status = "okay";
Shawn Guo0d9f8212013-03-14 11:37:15 +080077
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 };
Gwenhael Goavec-Merou24acd6b2012-11-02 19:01:47 +0100101 };
Gwenhael Goavec-Merou414b4152012-10-31 18:39:26 +0100102 };
103
104 apbx@80040000 {
105 lradc@80050000 {
Gwenhael Goavec-Merou25a73762013-05-17 07:13:41 +0200106 fsl,lradc-touchscreen-wires = <4>;
Gwenhael Goavec-Merou414b4152012-10-31 18:39:26 +0100107 status = "okay";
108 };
109
Gwenhael Goavec-Merouac8e44c2012-11-09 13:42:41 +0100110 i2c0: i2c@80058000 {
111 pinctrl-names = "default";
112 pinctrl-0 = <&i2c0_pins_a>;
113 status = "okay";
114 };
115
Gwenhael Goavec-Merou414b4152012-10-31 18:39:26 +0100116 pwm: pwm@80064000 {
117 pinctrl-names = "default";
118 pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>;
119 status = "okay";
120 };
121
122 usbphy0: usbphy@8007c000 {
123 status = "okay";
124 };
125
126 usbphy1: usbphy@8007e000 {
127 status = "okay";
128 };
129 };
130 };
131
132 ahb@80080000 {
133 usb0: usb@80080000 {
134 vbus-supply = <&reg_usb0_vbus>;
135 status = "okay";
136 };
137
138 usb1: usb@80090000 {
139 status = "okay";
140 };
141
142 mac1: ethernet@800f4000 {
143 phy-mode = "rmii";
144 pinctrl-names = "default";
145 pinctrl-0 = <&mac1_pins_a>;
146 phy-reset-gpios = <&gpio0 23 0>;
147 status = "okay";
148 };
149 };
150
151 regulators {
152 compatible = "simple-bus";
153
154 reg_usb0_vbus: usb0_vbus {
155 compatible = "regulator-fixed";
156 regulator-name = "usb0_vbus";
157 regulator-min-microvolt = <5000000>;
158 regulator-max-microvolt = <5000000>;
159 gpio = <&gpio1 23 1>;
160 };
161 };
162
163 leds {
164 compatible = "gpio-leds";
165
166 user {
167 label = "Heartbeat";
168 gpios = <&gpio0 21 0>;
169 linux,default-trigger = "heartbeat";
170 };
171 };
Gwenhael Goavec-Meroua4dabca2012-11-02 19:01:48 +0100172
173 backlight {
174 compatible = "pwm-backlight";
175
176 pwms = <&pwm 3 191000>;
177 brightness-levels = <0 4 8 16 32 64 128 255>;
178 default-brightness-level = <6>;
179 };
Gwenhael Goavec-Merou414b4152012-10-31 18:39:26 +0100180};