]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/arm/boot/dts/imx28-apx4devkit.dts
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / dts / imx28-apx4devkit.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3 #include "imx28.dtsi"
4
5 / {
6 model = "Bluegiga APX4 Development Kit";
7 compatible = "bluegiga,apx4devkit", "fsl,imx28";
8
9 memory {
10 reg = <0x40000000 0x04000000>;
11 };
12
13 apb@80000000 {
14 apbh@80000000 {
15 gpmi-nand@8000c000 {
16 pinctrl-names = "default";
17 pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
18 status = "okay";
19 };
20
21 ssp0: ssp@80010000 {
22 compatible = "fsl,imx28-mmc";
23 pinctrl-names = "default";
24 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>;
25 bus-width = <4>;
26 status = "okay";
27 };
28
29 ssp2: ssp@80014000 {
30 compatible = "fsl,imx28-mmc";
31 pinctrl-names = "default";
32 pinctrl-0 = <&mmc2_4bit_pins_apx4 &mmc2_sck_cfg_apx4>;
33 bus-width = <4>;
34 status = "okay";
35 };
36
37 pinctrl@80018000 {
38 pinctrl-names = "default";
39 pinctrl-0 = <&hog_pins_a>;
40
41 hog_pins_a: hog@0 {
42 reg = <0>;
43 fsl,pinmux-ids = <
44 MX28_PAD_GPMI_CE1N__GPIO_0_17
45 MX28_PAD_GPMI_RDY1__GPIO_0_21
46 MX28_PAD_SSP2_MISO__GPIO_2_18
47 MX28_PAD_SSP2_SS0__AUART3_TX /* was: 0x2131 - MX28_PAD_SSP2_SS0__GPIO_2_19 */
48 MX28_PAD_PWM3__GPIO_3_28
49 MX28_PAD_LCD_RESET__GPIO_3_30
50 MX28_PAD_JTAG_RTCK__GPIO_4_20
51 >;
52 fsl,drive-strength = <MXS_DRIVE_4mA>;
53 fsl,voltage = <MXS_VOLTAGE_HIGH>;
54 fsl,pull-up = <MXS_PULL_DISABLE>;
55 };
56
57 lcdif_pins_apx4: lcdif-apx4@0 {
58 reg = <0>;
59 fsl,pinmux-ids = <
60 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
64 >;
65 fsl,drive-strength = <MXS_DRIVE_4mA>;
66 fsl,voltage = <MXS_VOLTAGE_HIGH>;
67 fsl,pull-up = <MXS_PULL_DISABLE>;
68 };
69
70 mmc2_4bit_pins_apx4: mmc2-4bit-apx4@0 {
71 reg = <0>;
72 fsl,pinmux-ids = <
73 MX28_PAD_SSP0_DATA4__SSP2_D0
74 MX28_PAD_SSP0_DATA5__SSP2_D3
75 MX28_PAD_SSP0_DATA6__SSP2_CMD
76 MX28_PAD_SSP0_DATA7__SSP2_SCK
77 MX28_PAD_SSP2_SS1__SSP2_D1
78 MX28_PAD_SSP2_SS2__SSP2_D2
79 >;
80 fsl,drive-strength = <MXS_DRIVE_8mA>;
81 fsl,voltage = <MXS_VOLTAGE_HIGH>;
82 fsl,pull-up = <MXS_PULL_ENABLE>;
83 };
84
85 mmc2_sck_cfg_apx4: mmc2-sck-cfg-apx4 {
86 fsl,pinmux-ids = <
87 MX28_PAD_SSP0_DATA7__SSP2_SCK
88 >;
89 fsl,drive-strength = <MXS_DRIVE_12mA>;
90 fsl,pull-up = <MXS_PULL_DISABLE>;
91 };
92 };
93
94 lcdif@80030000 {
95 pinctrl-names = "default";
96 pinctrl-0 = <&lcdif_24bit_pins_a
97 &lcdif_pins_apx4>;
98 display = <&display0>;
99 status = "okay";
100
101 display0: display0 {
102 bits-per-pixel = <32>;
103 bus-width = <24>;
104
105 display-timings {
106 native-mode = <&timing0>;
107 timing0: timing0 {
108 clock-frequency = <30000000>;
109 hactive = <800>;
110 vactive = <480>;
111 hback-porch = <88>;
112 hfront-porch = <40>;
113 vback-porch = <32>;
114 vfront-porch = <13>;
115 hsync-len = <48>;
116 vsync-len = <3>;
117 hsync-active = <1>;
118 vsync-active = <1>;
119 de-active = <1>;
120 pixelclk-active = <0>;
121 };
122 };
123 };
124 };
125 };
126
127 apbx@80040000 {
128 saif0: saif@80042000 {
129 pinctrl-names = "default";
130 pinctrl-0 = <&saif0_pins_a>;
131 status = "okay";
132 };
133
134 saif1: saif@80046000 {
135 pinctrl-names = "default";
136 pinctrl-0 = <&saif1_pins_a>;
137 fsl,saif-master = <&saif0>;
138 status = "okay";
139 };
140
141 i2c0: i2c@80058000 {
142 pinctrl-names = "default";
143 pinctrl-0 = <&i2c0_pins_a>;
144 status = "okay";
145
146 sgtl5000: codec@0a {
147 compatible = "fsl,sgtl5000";
148 reg = <0x0a>;
149 VDDA-supply = <&reg_3p3v>;
150 VDDIO-supply = <&reg_3p3v>;
151 clocks = <&saif0>;
152 };
153
154 pcf8563: rtc@51 {
155 compatible = "phg,pcf8563";
156 reg = <0x51>;
157 };
158 };
159
160 duart: serial@80074000 {
161 pinctrl-names = "default";
162 pinctrl-0 = <&duart_pins_a>;
163 status = "okay";
164 };
165
166 auart0: serial@8006a000 {
167 pinctrl-names = "default";
168 pinctrl-0 = <&auart0_pins_a>;
169 status = "okay";
170 };
171
172 auart1: serial@8006c000 {
173 pinctrl-names = "default";
174 pinctrl-0 = <&auart1_2pins_a>;
175 status = "okay";
176 };
177
178 auart2: serial@8006e000 {
179 pinctrl-names = "default";
180 pinctrl-0 = <&auart2_2pins_a>;
181 status = "okay";
182 };
183 };
184 };
185
186 ahb@80080000 {
187 mac0: ethernet@800f0000 {
188 phy-mode = "rmii";
189 pinctrl-names = "default";
190 pinctrl-0 = <&mac0_pins_a>;
191 status = "okay";
192 };
193 };
194
195 regulators {
196 compatible = "simple-bus";
197 #address-cells = <1>;
198 #size-cells = <0>;
199
200 reg_3p3v: regulator@0 {
201 compatible = "regulator-fixed";
202 reg = <0>;
203 regulator-name = "3P3V";
204 regulator-min-microvolt = <3300000>;
205 regulator-max-microvolt = <3300000>;
206 regulator-always-on;
207 };
208 };
209
210 sound {
211 compatible = "bluegiga,apx4devkit-sgtl5000",
212 "fsl,mxs-audio-sgtl5000";
213 model = "apx4devkit-sgtl5000";
214 saif-controllers = <&saif0 &saif1>;
215 audio-codec = <&sgtl5000>;
216 };
217
218 leds {
219 compatible = "gpio-leds";
220
221 user {
222 label = "Heartbeat";
223 gpios = <&gpio3 28 0>;
224 linux,default-trigger = "heartbeat";
225 };
226 };
227 };