blob: bbd61f833dc312d426c618ac929df670fc78e30c [file] [log] [blame]
Andrew Davis4a337952023-04-11 13:24:55 -05001// SPDX-License-Identifier: GPL-2.0-only
Mugunthan V Nf77f9e72015-09-28 16:17:51 +05302/*
Andrew Davis4a337952023-04-11 13:24:55 -05003 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
Mugunthan V Nf77f9e72015-09-28 16:17:51 +05304 */
5
6/* AM437x GP EVM */
7
8/dts-v1/;
9
10#include "am4372.dtsi"
11#include <dt-bindings/pinctrl/am43xx.h>
12#include <dt-bindings/pwm/pwm.h>
13#include <dt-bindings/gpio/gpio.h>
14
15/ {
16 model = "TI AM437x GP EVM";
17 compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43";
18
19 aliases {
20 display0 = &lcd0;
21 serial3 = &uart3;
22 };
23
24 chosen {
25 stdout-path = &uart0;
Mugunthan V Nf8494d42015-12-24 16:08:11 +053026 tick-timer = &timer2;
Mugunthan V Nf77f9e72015-09-28 16:17:51 +053027 };
28
29 vmmcsd_fixed: fixedregulator-sd {
30 compatible = "regulator-fixed";
31 regulator-name = "vmmcsd_fixed";
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
34 enable-active-high;
35 };
36
37 vtt_fixed: fixedregulator-vtt {
38 compatible = "regulator-fixed";
39 regulator-name = "vtt_fixed";
40 regulator-min-microvolt = <1500000>;
41 regulator-max-microvolt = <1500000>;
42 regulator-always-on;
43 regulator-boot-on;
44 enable-active-high;
45 gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
46 };
47
48 vmmcwl_fixed: fixedregulator-mmcwl {
49 compatible = "regulator-fixed";
50 regulator-name = "vmmcwl_fixed";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <1800000>;
53 gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>;
54 enable-active-high;
55 };
56
57 backlight {
58 compatible = "pwm-backlight";
59 pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
60 brightness-levels = <0 51 53 56 62 75 101 152 255>;
61 default-brightness-level = <8>;
62 };
63
64 matrix_keypad: matrix_keypad@0 {
65 compatible = "gpio-matrix-keypad";
66 debounce-delay-ms = <5>;
67 col-scan-delay-us = <2>;
68
69 row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */
70 &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */
71 &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */
72
73 col-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH /* Bank3, pin19 */
74 &gpio3 20 GPIO_ACTIVE_HIGH>; /* Bank3, pin20 */
75
76 linux,keymap = <0x00000201 /* P1 */
77 0x00010202 /* P2 */
78 0x01000067 /* UP */
79 0x0101006a /* RIGHT */
80 0x02000069 /* LEFT */
81 0x0201006c>; /* DOWN */
82 };
83
84 lcd0: display {
85 compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
86 label = "lcd";
87
88 pinctrl-names = "default";
89 pinctrl-0 = <&lcd_pins>;
90
91 /*
92 * SelLCDorHDMI, LOW to select HDMI. This is not really the
93 * panel's enable GPIO, but we don't have HDMI driver support nor
94 * support to switch between two displays, so using this gpio as
95 * panel's enable should be safe.
96 */
97 enable-gpios = <&gpio5 8 GPIO_ACTIVE_HIGH>;
98
99 panel-timing {
100 clock-frequency = <33000000>;
101 hactive = <800>;
102 vactive = <480>;
103 hfront-porch = <210>;
104 hback-porch = <16>;
105 hsync-len = <30>;
106 vback-porch = <10>;
107 vfront-porch = <22>;
108 vsync-len = <13>;
109 hsync-active = <0>;
110 vsync-active = <0>;
111 de-active = <1>;
112 pixelclk-active = <1>;
113 };
114
115 port {
116 lcd_in: endpoint {
117 remote-endpoint = <&dpi_out>;
118 };
119 };
120 };
121
122 /* fixed 12MHz oscillator */
123 refclk: oscillator {
124 #clock-cells = <0>;
125 compatible = "fixed-clock";
126 clock-frequency = <12000000>;
127 };
128
129};
130
131&am43xx_pinmux {
132 pinctrl-names = "default", "sleep";
133 pinctrl-0 = <&wlan_pins_default>;
134 pinctrl-1 = <&wlan_pins_sleep>;
135
136 i2c0_pins: i2c0_pins {
137 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500138 AM4372_IOPAD(0x988, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
139 AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530140 >;
141 };
142
143 i2c1_pins: i2c1_pins {
144 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500145 AM4372_IOPAD(0x95c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */
146 AM4372_IOPAD(0x958, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530147 >;
148 };
149
150 mmc1_pins: pinmux_mmc1_pins {
151 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500152 AM4372_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530153 >;
154 };
155
156 ecap0_pins: backlight_pins {
157 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500158 AM4372_IOPAD(0x964, MUX_MODE0) /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530159 >;
160 };
161
162 pixcir_ts_pins: pixcir_ts_pins {
163 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500164 AM4372_IOPAD(0xa64, PIN_INPUT_PULLUP | MUX_MODE7) /* spi2_d0.gpio3_22 */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530165 >;
166 };
167
168 cpsw_default: cpsw_default {
169 pinctrl-single,pins = <
170 /* Slave 1 */
Andrew Davis017ff3c2023-04-11 13:25:04 -0500171 AM4372_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_txen */
172 AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rxctl */
173 AM4372_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd3 */
174 AM4372_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd2 */
175 AM4372_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_txd1 */
176 AM4372_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_txd0 */
177 AM4372_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rmii1_tclk */
178 AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rmii1_rclk */
179 AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd3 */
180 AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd2 */
181 AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */
182 AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530183 >;
184 };
185
186 cpsw_sleep: cpsw_sleep {
187 pinctrl-single,pins = <
188 /* Slave 1 reset value */
Andrew Davis017ff3c2023-04-11 13:25:04 -0500189 AM4372_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
190 AM4372_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
191 AM4372_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
192 AM4372_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
193 AM4372_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
194 AM4372_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
195 AM4372_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
196 AM4372_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
197 AM4372_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
198 AM4372_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
199 AM4372_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
200 AM4372_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530201 >;
202 };
203
204 davinci_mdio_default: davinci_mdio_default {
205 pinctrl-single,pins = <
206 /* MDIO */
Andrew Davis017ff3c2023-04-11 13:25:04 -0500207 AM4372_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */
208 AM4372_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530209 >;
210 };
211
212 davinci_mdio_sleep: davinci_mdio_sleep {
213 pinctrl-single,pins = <
214 /* MDIO reset value */
Andrew Davis017ff3c2023-04-11 13:25:04 -0500215 AM4372_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
216 AM4372_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530217 >;
218 };
219
220 nand_flash_x8: nand_flash_x8 {
221 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500222 AM4372_IOPAD(0x800, PIN_INPUT | MUX_MODE0) /* gpmc_ad0.gpmc_ad0 */
223 AM4372_IOPAD(0x804, PIN_INPUT | MUX_MODE0) /* gpmc_ad1.gpmc_ad1 */
224 AM4372_IOPAD(0x808, PIN_INPUT | MUX_MODE0) /* gpmc_ad2.gpmc_ad2 */
225 AM4372_IOPAD(0x80c, PIN_INPUT | MUX_MODE0) /* gpmc_ad3.gpmc_ad3 */
226 AM4372_IOPAD(0x810, PIN_INPUT | MUX_MODE0) /* gpmc_ad4.gpmc_ad4 */
227 AM4372_IOPAD(0x814, PIN_INPUT | MUX_MODE0) /* gpmc_ad5.gpmc_ad5 */
228 AM4372_IOPAD(0x818, PIN_INPUT | MUX_MODE0) /* gpmc_ad6.gpmc_ad6 */
229 AM4372_IOPAD(0x81c, PIN_INPUT | MUX_MODE0) /* gpmc_ad7.gpmc_ad7 */
230 AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) /* gpmc_wait0.gpmc_wait0 */
231 AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpmc_wpn */
232 AM4372_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0) /* gpmc_csn0.gpmc_csn0 */
233 AM4372_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale.gpmc_advn_ale */
234 AM4372_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren.gpmc_oen_ren */
235 AM4372_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0) /* gpmc_wen.gpmc_wen */
236 AM4372_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0) /* gpmc_be0n_cle.gpmc_be0n_cle */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530237 >;
238 };
239
240 dss_pins: dss_pins {
241 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500242 AM4372_IOPAD(0x820, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 8 -> DSS DATA 23 */
243 AM4372_IOPAD(0x824, PIN_OUTPUT_PULLUP | MUX_MODE1)
244 AM4372_IOPAD(0x828, PIN_OUTPUT_PULLUP | MUX_MODE1)
245 AM4372_IOPAD(0x82c, PIN_OUTPUT_PULLUP | MUX_MODE1)
246 AM4372_IOPAD(0x830, PIN_OUTPUT_PULLUP | MUX_MODE1)
247 AM4372_IOPAD(0x834, PIN_OUTPUT_PULLUP | MUX_MODE1)
248 AM4372_IOPAD(0x838, PIN_OUTPUT_PULLUP | MUX_MODE1)
249 AM4372_IOPAD(0x83c, PIN_OUTPUT_PULLUP | MUX_MODE1) /*gpmc ad 15 -> DSS DATA 16 */
250 AM4372_IOPAD(0x8a0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 0 */
251 AM4372_IOPAD(0x8a4, PIN_OUTPUT_PULLUP | MUX_MODE0)
252 AM4372_IOPAD(0x8a8, PIN_OUTPUT_PULLUP | MUX_MODE0)
253 AM4372_IOPAD(0x8ac, PIN_OUTPUT_PULLUP | MUX_MODE0)
254 AM4372_IOPAD(0x8b0, PIN_OUTPUT_PULLUP | MUX_MODE0)
255 AM4372_IOPAD(0x8b4, PIN_OUTPUT_PULLUP | MUX_MODE0)
256 AM4372_IOPAD(0x8b8, PIN_OUTPUT_PULLUP | MUX_MODE0)
257 AM4372_IOPAD(0x8bc, PIN_OUTPUT_PULLUP | MUX_MODE0)
258 AM4372_IOPAD(0x8c0, PIN_OUTPUT_PULLUP | MUX_MODE0)
259 AM4372_IOPAD(0x8c4, PIN_OUTPUT_PULLUP | MUX_MODE0)
260 AM4372_IOPAD(0x8c8, PIN_OUTPUT_PULLUP | MUX_MODE0)
261 AM4372_IOPAD(0x8cc, PIN_OUTPUT_PULLUP | MUX_MODE0)
262 AM4372_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE0)
263 AM4372_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE0)
264 AM4372_IOPAD(0x8d8, PIN_OUTPUT_PULLUP | MUX_MODE0)
265 AM4372_IOPAD(0x8dc, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS DATA 15 */
266 AM4372_IOPAD(0x8e0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS VSYNC */
267 AM4372_IOPAD(0x8e4, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS HSYNC */
268 AM4372_IOPAD(0x8e8, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS PCLK */
269 AM4372_IOPAD(0x8ec, PIN_OUTPUT_PULLUP | MUX_MODE0) /* DSS AC BIAS EN */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530270
271 >;
272 };
273
274 lcd_pins: lcd_pins {
275 pinctrl-single,pins = <
276 /* GPIO 5_8 to select LCD / HDMI */
Andrew Davis017ff3c2023-04-11 13:25:04 -0500277 AM4372_IOPAD(0xa38, PIN_OUTPUT_PULLUP | MUX_MODE7)
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530278 >;
279 };
280
281 dcan0_default: dcan0_default_pins {
282 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500283 AM4372_IOPAD(0x978, PIN_OUTPUT | MUX_MODE2) /* uart1_ctsn.d_can0_tx */
284 AM4372_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_rtsn.d_can0_rx */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530285 >;
286 };
287
288 dcan1_default: dcan1_default_pins {
289 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500290 AM4372_IOPAD(0x980, PIN_OUTPUT | MUX_MODE2) /* uart1_rxd.d_can1_tx */
291 AM4372_IOPAD(0x984, PIN_INPUT_PULLUP | MUX_MODE2) /* uart1_txd.d_can1_rx */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530292 >;
293 };
294
295 vpfe0_pins_default: vpfe0_pins_default {
296 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500297 AM4372_IOPAD(0x9b0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_hd mode 0*/
298 AM4372_IOPAD(0x9b4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_vd mode 0*/
299 AM4372_IOPAD(0x9c0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_pclk mode 0*/
300 AM4372_IOPAD(0x9c4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data8 mode 0*/
301 AM4372_IOPAD(0x9c8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data9 mode 0*/
302 AM4372_IOPAD(0xa08, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data0 mode 0*/
303 AM4372_IOPAD(0xa0c, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data1 mode 0*/
304 AM4372_IOPAD(0xa10, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data2 mode 0*/
305 AM4372_IOPAD(0xa14, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data3 mode 0*/
306 AM4372_IOPAD(0xa18, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data4 mode 0*/
307 AM4372_IOPAD(0xa1c, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data5 mode 0*/
308 AM4372_IOPAD(0xa20, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data6 mode 0*/
309 AM4372_IOPAD(0xa24, PIN_INPUT_PULLUP | MUX_MODE0) /* cam0_data7 mode 0*/
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530310 >;
311 };
312
313 vpfe0_pins_sleep: vpfe0_pins_sleep {
314 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500315 AM4372_IOPAD(0x9b0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_hd mode 0*/
316 AM4372_IOPAD(0x9b4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_vd mode 0*/
317 AM4372_IOPAD(0x9c0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_pclk mode 0*/
318 AM4372_IOPAD(0x9c4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data8 mode 0*/
319 AM4372_IOPAD(0x9c8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data9 mode 0*/
320 AM4372_IOPAD(0xa08, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data0 mode 0*/
321 AM4372_IOPAD(0xa0c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data1 mode 0*/
322 AM4372_IOPAD(0xa10, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data2 mode 0*/
323 AM4372_IOPAD(0xa14, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data3 mode 0*/
324 AM4372_IOPAD(0xa18, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data4 mode 0*/
325 AM4372_IOPAD(0xa1c, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data5 mode 0*/
326 AM4372_IOPAD(0xa20, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data6 mode 0*/
327 AM4372_IOPAD(0xa24, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam0_data7 mode 0*/
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530328 >;
329 };
330
331 vpfe1_pins_default: vpfe1_pins_default {
332 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500333 AM4372_IOPAD(0x9cc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data9 mode 0*/
334 AM4372_IOPAD(0x9d0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data8 mode 0*/
335 AM4372_IOPAD(0x9d4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_hd mode 0*/
336 AM4372_IOPAD(0x9d8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_vd mode 0*/
337 AM4372_IOPAD(0x9dC, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_pclk mode 0*/
338 AM4372_IOPAD(0x9e8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data0 mode 0*/
339 AM4372_IOPAD(0x9ec, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data1 mode 0*/
340 AM4372_IOPAD(0x9f0, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data2 mode 0*/
341 AM4372_IOPAD(0x9f4, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data3 mode 0*/
342 AM4372_IOPAD(0x9f8, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data4 mode 0*/
343 AM4372_IOPAD(0x9fc, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data5 mode 0*/
344 AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data6 mode 0*/
345 AM4372_IOPAD(0xa04, PIN_INPUT_PULLUP | MUX_MODE0) /* cam1_data7 mode 0*/
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530346 >;
347 };
348
349 vpfe1_pins_sleep: vpfe1_pins_sleep {
350 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500351 AM4372_IOPAD(0x9cc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data9 mode 0*/
352 AM4372_IOPAD(0x9d0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data8 mode 0*/
353 AM4372_IOPAD(0x9d4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_hd mode 0*/
354 AM4372_IOPAD(0x9d8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_vd mode 0*/
355 AM4372_IOPAD(0x9dc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_pclk mode 0*/
356 AM4372_IOPAD(0x9e8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data0 mode 0*/
357 AM4372_IOPAD(0x9ec, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data1 mode 0*/
358 AM4372_IOPAD(0x9f0, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data2 mode 0*/
359 AM4372_IOPAD(0x9f4, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data3 mode 0*/
360 AM4372_IOPAD(0x9f8, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data4 mode 0*/
361 AM4372_IOPAD(0x9fc, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data5 mode 0*/
362 AM4372_IOPAD(0xa00, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data6 mode 0*/
363 AM4372_IOPAD(0xa04, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data7 mode 0*/
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530364 >;
365 };
366
367 mmc3_pins_default: pinmux_mmc3_pins_default {
368 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500369 AM4372_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc2_clk */
370 AM4372_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
371 AM4372_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
372 AM4372_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */
373 AM4372_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
374 AM4372_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_be1n.mmc2_dat3 */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530375 >;
376 };
377
378 mmc3_pins_sleep: pinmux_mmc3_pins_sleep {
379 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500380 AM4372_IOPAD(0x88c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_clk.mmc2_clk */
381 AM4372_IOPAD(0x888, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn3.mmc2_cmd */
382 AM4372_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.mmc2_dat0 */
383 AM4372_IOPAD(0x848, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a2.mmc2_dat1 */
384 AM4372_IOPAD(0x84c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.mmc2_dat2 */
385 AM4372_IOPAD(0x878, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_be1n.mmc2_dat3 */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530386 >;
387 };
388
389 wlan_pins_default: pinmux_wlan_pins_default {
390 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500391 AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */
392 AM4372_IOPAD(0x85c, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/
393 AM4372_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530394 >;
395 };
396
397 wlan_pins_sleep: pinmux_wlan_pins_sleep {
398 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500399 AM4372_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */
400 AM4372_IOPAD(0x85c, PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/
401 AM4372_IOPAD(0x840, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530402 >;
403 };
404
405 uart3_pins: uart3_pins {
406 pinctrl-single,pins = <
Andrew Davis017ff3c2023-04-11 13:25:04 -0500407 AM4372_IOPAD(0xa28, PIN_INPUT | MUX_MODE0) /* uart3_rxd.uart3_rxd */
408 AM4372_IOPAD(0xa2c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_txd.uart3_txd */
409 AM4372_IOPAD(0xa30, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_ctsn.uart3_ctsn */
410 AM4372_IOPAD(0xa34, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530411 >;
412 };
413};
414
415&i2c0 {
416 status = "okay";
417 pinctrl-names = "default";
418 pinctrl-0 = <&i2c0_pins>;
419 clock-frequency = <100000>;
420
421 tps65218: tps65218@24 {
422 reg = <0x24>;
423 compatible = "ti,tps65218";
424 interrupts = <GIC_SPI 7 IRQ_TYPE_NONE>; /* NMIn */
425 interrupt-controller;
426 #interrupt-cells = <2>;
427
428 dcdc1: regulator-dcdc1 {
429 compatible = "ti,tps65218-dcdc1";
430 regulator-name = "vdd_core";
431 regulator-min-microvolt = <912000>;
432 regulator-max-microvolt = <1144000>;
433 regulator-boot-on;
434 regulator-always-on;
435 };
436
437 dcdc2: regulator-dcdc2 {
438 compatible = "ti,tps65218-dcdc2";
439 regulator-name = "vdd_mpu";
440 regulator-min-microvolt = <912000>;
441 regulator-max-microvolt = <1378000>;
442 regulator-boot-on;
443 regulator-always-on;
444 };
445
446 dcdc3: regulator-dcdc3 {
447 compatible = "ti,tps65218-dcdc3";
448 regulator-name = "vdcdc3";
449 regulator-min-microvolt = <1500000>;
450 regulator-max-microvolt = <1500000>;
451 regulator-boot-on;
452 regulator-always-on;
453 };
454 dcdc5: regulator-dcdc5 {
455 compatible = "ti,tps65218-dcdc5";
456 regulator-name = "v1_0bat";
457 regulator-min-microvolt = <1000000>;
458 regulator-max-microvolt = <1000000>;
459 };
460
461 dcdc6: regulator-dcdc6 {
462 compatible = "ti,tps65218-dcdc6";
463 regulator-name = "v1_8bat";
464 regulator-min-microvolt = <1800000>;
465 regulator-max-microvolt = <1800000>;
466 };
467
468 ldo1: regulator-ldo1 {
469 compatible = "ti,tps65218-ldo1";
470 regulator-min-microvolt = <1800000>;
471 regulator-max-microvolt = <1800000>;
472 regulator-boot-on;
473 regulator-always-on;
474 };
475 };
476
477 ov2659@30 {
478 compatible = "ovti,ov2659";
479 reg = <0x30>;
480
481 clocks = <&refclk 0>;
482 clock-names = "xvclk";
483
484 port {
485 ov2659_0: endpoint {
486 remote-endpoint = <&vpfe1_ep>;
487 link-frequencies = /bits/ 64 <70000000>;
488 };
489 };
490 };
491};
492
493&i2c1 {
494 status = "okay";
495 pinctrl-names = "default";
496 pinctrl-0 = <&i2c1_pins>;
497 pixcir_ts@5c {
498 compatible = "pixcir,pixcir_tangoc";
499 pinctrl-names = "default";
500 pinctrl-0 = <&pixcir_ts_pins>;
501 reg = <0x5c>;
502 interrupt-parent = <&gpio3>;
503 interrupts = <22 0>;
504
505 attb-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
506
507 touchscreen-size-x = <1024>;
508 touchscreen-size-y = <600>;
509 };
510
511 ov2659@30 {
512 compatible = "ovti,ov2659";
513 reg = <0x30>;
514
515 clocks = <&refclk 0>;
516 clock-names = "xvclk";
517
518 port {
519 ov2659_1: endpoint {
520 remote-endpoint = <&vpfe0_ep>;
521 link-frequencies = /bits/ 64 <70000000>;
522 };
523 };
524 };
525};
526
527&epwmss0 {
528 status = "okay";
529};
530
531&tscadc {
532 status = "okay";
533
534 adc {
535 ti,adc-channels = <0 1 2 3 4 5 6 7>;
536 };
537};
538
539&ecap0 {
540 status = "okay";
541 pinctrl-names = "default";
542 pinctrl-0 = <&ecap0_pins>;
543};
544
545&gpio0 {
546 status = "okay";
547};
548
549&gpio1 {
550 status = "okay";
551};
552
553&gpio3 {
554 status = "okay";
555};
556
557&gpio4 {
558 status = "okay";
559};
560
561&gpio5 {
562 status = "okay";
563 ti,no-reset-on-init;
564};
565
566&mmc1 {
567 status = "okay";
568 vmmc-supply = <&vmmcsd_fixed>;
569 bus-width = <4>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&mmc1_pins>;
Mugunthan V N0aa768f2016-04-04 17:28:02 +0530572 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530573};
574
575&mmc3 {
576 /* disable MMC3 as SDIO is not supported in U-Boot */
577 status = "disabled";
578 /* these are on the crossbar and are outlined in the
579 xbar-event-map element */
580 dmas = <&edma 30
581 &edma 31>;
582 dma-names = "tx", "rx";
583 vmmc-supply = <&vmmcwl_fixed>;
584 bus-width = <4>;
585 pinctrl-names = "default", "sleep";
586 pinctrl-0 = <&mmc3_pins_default>;
587 pinctrl-1 = <&mmc3_pins_sleep>;
588 cap-power-off-card;
589 keep-power-in-suspend;
590 ti,non-removable;
591
592 #address-cells = <1>;
593 #size-cells = <0>;
594 wlcore: wlcore@0 {
595 compatible = "ti,wl1835";
596 reg = <2>;
597 interrupt-parent = <&gpio1>;
598 interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
599 };
600};
601
602&edma {
603 ti,edma-xbar-event-map = /bits/ 16 <1 30
604 2 31>;
605};
606
607&uart3 {
608 status = "okay";
609 pinctrl-names = "default";
610 pinctrl-0 = <&uart3_pins>;
611};
612
613&usb2_phy1 {
614 status = "okay";
615};
616
617&usb1 {
618 dr_mode = "peripheral";
619 status = "okay";
620};
621
622&usb2_phy2 {
623 status = "okay";
624};
625
626&usb2 {
627 dr_mode = "host";
628 status = "okay";
629};
630
631&mac {
632 slaves = <1>;
633 pinctrl-names = "default", "sleep";
634 pinctrl-0 = <&cpsw_default>;
635 pinctrl-1 = <&cpsw_sleep>;
636 status = "okay";
637};
638
639&davinci_mdio {
640 pinctrl-names = "default", "sleep";
641 pinctrl-0 = <&davinci_mdio_default>;
642 pinctrl-1 = <&davinci_mdio_sleep>;
643 status = "okay";
Grygorii Strashko59934e22019-08-31 10:30:33 +0300644
645 ethphy0: ethernet-phy@0 {
646 reg = <0>;
647 };
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530648};
649
650&cpsw_emac0 {
Grygorii Strashko59934e22019-08-31 10:30:33 +0300651 phy-handle = <&ethphy0>;
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530652 phy-mode = "rgmii";
653};
654
655&elm {
656 status = "okay";
657};
658
659&gpmc {
660 status = "okay";
661 pinctrl-names = "default";
662 pinctrl-0 = <&nand_flash_x8>;
663 ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
664 nand@0,0 {
665 reg = <0 0 4>; /* device IO registers */
666 ti,nand-ecc-opt = "bch16";
667 ti,elm-id = <&elm>;
668 nand-bus-width = <8>;
669 gpmc,device-width = <1>;
670 gpmc,sync-clk-ps = <0>;
671 gpmc,cs-on-ns = <0>;
672 gpmc,cs-rd-off-ns = <40>;
673 gpmc,cs-wr-off-ns = <40>;
674 gpmc,adv-on-ns = <0>;
675 gpmc,adv-rd-off-ns = <25>;
676 gpmc,adv-wr-off-ns = <25>;
677 gpmc,we-on-ns = <0>;
678 gpmc,we-off-ns = <20>;
679 gpmc,oe-on-ns = <3>;
680 gpmc,oe-off-ns = <30>;
681 gpmc,access-ns = <30>;
682 gpmc,rd-cycle-ns = <40>;
683 gpmc,wr-cycle-ns = <40>;
684 gpmc,wait-pin = <0>;
685 gpmc,bus-turnaround-ns = <0>;
686 gpmc,cycle2cycle-delay-ns = <0>;
687 gpmc,clk-activation-ns = <0>;
688 gpmc,wait-monitoring-ns = <0>;
689 gpmc,wr-access-ns = <40>;
690 gpmc,wr-data-mux-bus-ns = <0>;
691 /* MTD partition table */
692 /* All SPL-* partitions are sized to minimal length
693 * which can be independently programmable. For
694 * NAND flash this is equal to size of erase-block */
695 #address-cells = <1>;
696 #size-cells = <1>;
697 partition@0 {
698 label = "NAND.SPL";
699 reg = <0x00000000 0x00040000>;
700 };
701 partition@1 {
702 label = "NAND.SPL.backup1";
703 reg = <0x00040000 0x00040000>;
704 };
705 partition@2 {
706 label = "NAND.SPL.backup2";
707 reg = <0x00080000 0x00040000>;
708 };
709 partition@3 {
710 label = "NAND.SPL.backup3";
711 reg = <0x000c0000 0x00040000>;
712 };
713 partition@4 {
714 label = "NAND.u-boot-spl-os";
715 reg = <0x00100000 0x00080000>;
716 };
717 partition@5 {
718 label = "NAND.u-boot";
719 reg = <0x00180000 0x00100000>;
720 };
721 partition@6 {
722 label = "NAND.u-boot-env";
723 reg = <0x00280000 0x00040000>;
724 };
725 partition@7 {
726 label = "NAND.u-boot-env.backup1";
727 reg = <0x002c0000 0x00040000>;
728 };
729 partition@8 {
730 label = "NAND.kernel";
731 reg = <0x00300000 0x00700000>;
732 };
733 partition@9 {
734 label = "NAND.file-system";
735 reg = <0x00a00000 0x1f600000>;
736 };
737 };
738};
739
740&dss {
Roger Quadros0ffbc742021-08-24 14:07:27 +0300741 status = "okay";
Mugunthan V Nf77f9e72015-09-28 16:17:51 +0530742
743 pinctrl-names = "default";
744 pinctrl-0 = <&dss_pins>;
745
746 port {
747 dpi_out: endpoint@0 {
748 remote-endpoint = <&lcd_in>;
749 data-lines = <24>;
750 };
751 };
752};
753
754&dcan0 {
755 pinctrl-names = "default";
756 pinctrl-0 = <&dcan0_default>;
757 status = "okay";
758};
759
760&dcan1 {
761 pinctrl-names = "default";
762 pinctrl-0 = <&dcan1_default>;
763 status = "okay";
764};
765
766&vpfe0 {
767 status = "okay";
768 pinctrl-names = "default", "sleep";
769 pinctrl-0 = <&vpfe0_pins_default>;
770 pinctrl-1 = <&vpfe0_pins_sleep>;
771
772 port {
773 vpfe0_ep: endpoint {
774 remote-endpoint = <&ov2659_1>;
775 ti,am437x-vpfe-interface = <0>;
776 bus-width = <8>;
777 hsync-active = <0>;
778 vsync-active = <0>;
779 };
780 };
781};
782
783&vpfe1 {
784 status = "okay";
785 pinctrl-names = "default", "sleep";
786 pinctrl-0 = <&vpfe1_pins_default>;
787 pinctrl-1 = <&vpfe1_pins_sleep>;
788
789 port {
790 vpfe1_ep: endpoint {
791 remote-endpoint = <&ov2659_0>;
792 ti,am437x-vpfe-interface = <0>;
793 bus-width = <8>;
794 hsync-active = <0>;
795 vsync-active = <0>;
796 };
797 };
798};