Debian Codegraph @

scripts/dtc/include-prefixes/arm64/ti/k3-am67a-beagley-ai.dts

raw
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2 /*
3 * https://beagley-ai.org/
4 *
5 * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
6 * Copyright (C) 2024 Robert Nelson, BeagleBoard.org Foundation
7 */
8
9 /dts-v1/;
10
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/net/ti-dp83867.h>
13 #include "k3-j722s.dtsi"
14
15 / {
16 compatible = "beagle,am67a-beagley-ai", "ti,j722s";
17 model = "BeagleBoard.org BeagleY-AI";
18
19 aliases {
20 serial0 = &wkup_uart0;
21 serial2 = &main_uart0;
22 mmc1 = &sdhci1;
23 rtc0 = &rtc;
24 };
25
26 chosen {
27 stdout-path = &main_uart0;
28 };
29
30 memory@80000000 {
31 /* 4G RAM */
32 reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
33 <0x00000008 0x80000000 0x00000000 0x80000000>;
34 device_type = "memory";
35 bootph-pre-ram;
36 };
37
38 reserved_memory: reserved-memory {
39 #address-cells = <2>;
40 #size-cells = <2>;
41 ranges;
42
43 secure_tfa_ddr: tfa@9e780000 {
44 reg = <0x00 0x9e780000 0x00 0x80000>;
45 no-map;
46 };
47
48 secure_ddr: optee@9e800000 {
49 reg = <0x00 0x9e800000 0x00 0x01800000>;
50 no-map;
51 };
52
53 wkup_r5fss0_core0_dma_memory_region: memory@a0000000 {
54 compatible = "shared-dma-pool";
55 reg = <0x00 0xa0000000 0x00 0x100000>;
56 no-map;
57 };
58
59 wkup_r5fss0_core0_memory_region: memory@a0100000 {
60 compatible = "shared-dma-pool";
61 reg = <0x00 0xa0100000 0x00 0xf00000>;
62 no-map;
63 };
64 };
65
66 vsys_5v0: regulator-1 {
67 compatible = "regulator-fixed";
68 regulator-name = "vsys_5v0";
69 regulator-min-microvolt = <5000000>;
70 regulator-max-microvolt = <5000000>;
71 regulator-always-on;
72 regulator-boot-on;
73 bootph-all;
74 };
75
76 vdd_3v3: regulator-2 {
77 compatible = "regulator-fixed";
78 regulator-name = "vdd_3v3";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
81 vin-supply = <&vsys_5v0>;
82 regulator-always-on;
83 regulator-boot-on;
84 };
85
86 vdd_mmc1: regulator-3 {
87 compatible = "regulator-fixed";
88 regulator-name = "vdd_mmc1";
89 pinctrl-names = "default";
90 pinctrl-0 = <&vdd_3v3_sd_pins_default>;
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
93 regulator-boot-on;
94 enable-active-high;
95 gpio = <&main_gpio1 50 GPIO_ACTIVE_HIGH>;
96 bootph-all;
97 };
98
99 vdd_sd_dv: regulator-4 {
100 compatible = "regulator-gpio";
101 regulator-name = "tlv71033";
102 pinctrl-names = "default";
103 pinctrl-0 = <&vdd_sd_dv_pins_default>;
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <3300000>;
106 regulator-boot-on;
107 vin-supply = <&vsys_5v0>;
108 gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
109 states = <1800000 0x0>,
110 <3300000 0x1>;
111 bootph-all;
112 };
113
114 vsys_io_1v8: regulator-5 {
115 compatible = "regulator-fixed";
116 regulator-name = "vsys_io_1v8";
117 regulator-min-microvolt = <1800000>;
118 regulator-max-microvolt = <1800000>;
119 regulator-always-on;
120 regulator-boot-on;
121 };
122
123 vsys_io_1v2: regulator-6 {
124 compatible = "regulator-fixed";
125 regulator-name = "vsys_io_1v2";
126 regulator-min-microvolt = <1200000>;
127 regulator-max-microvolt = <1200000>;
128 regulator-always-on;
129 regulator-boot-on;
130 };
131
132 leds {
133 compatible = "gpio-leds";
134 pinctrl-names = "default";
135 pinctrl-0 = <&led_pins_default>;
136
137 led-0 {
138 gpios = <&main_gpio0 11 GPIO_ACTIVE_LOW>;
139 default-state = "off";
140 };
141
142 led-1 {
143 gpios = <&main_gpio0 12 GPIO_ACTIVE_HIGH>;
144 linux,default-trigger = "heartbeat";
145 function = LED_FUNCTION_HEARTBEAT;
146 default-state = "on";
147 };
148 };
149 };
150
151 &main_pmx0 {
152 main_i2c0_pins_default: main-i2c0-default-pins {
153 pinctrl-single,pins = <
154 J722S_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D23) I2C0_SCL */
155 J722S_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (B22) I2C0_SDA */
156 >;
157 bootph-all;
158 };
159
160 main_uart0_pins_default: main-uart0-default-pins {
161 pinctrl-single,pins = <
162 J722S_IOPAD(0x01c8, PIN_INPUT, 0) /* (A22) UART0_RXD */
163 J722S_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (B22) UART0_TXD */
164 >;
165 bootph-all;
166 };
167
168 vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
169 pinctrl-single,pins = <
170 J722S_IOPAD(0x0244, PIN_OUTPUT, 7) /* (A24) MMC1_SDWP.GPIO1_49 */
171 >;
172 bootph-all;
173 };
174
175 main_mmc1_pins_default: main-mmc1-default-pins {
176 pinctrl-single,pins = <
177 J722S_IOPAD(0x023c, PIN_INPUT, 0) /* (H22) MMC1_CMD */
178 J722S_IOPAD(0x0234, PIN_OUTPUT, 0) /* (H24) MMC1_CLK */
179 J722S_IOPAD(0x0230, PIN_INPUT, 0) /* (H23) MMC1_DAT0 */
180 J722S_IOPAD(0x022c, PIN_INPUT_PULLUP, 0) /* (H20) MMC1_DAT1 */
181 J722S_IOPAD(0x0228, PIN_INPUT_PULLUP, 0) /* (J23) MMC1_DAT2 */
182 J722S_IOPAD(0x0224, PIN_INPUT_PULLUP, 0) /* (H25) MMC1_DAT3 */
183 J722S_IOPAD(0x0240, PIN_INPUT, 7) /* (B24) MMC1_SDCD.GPIO1_48 */
184 >;
185 bootph-all;
186 };
187
188 mdio_pins_default: mdio-default-pins {
189 pinctrl-single,pins = <
190 J722S_IOPAD(0x0160, PIN_OUTPUT, 0) /* (AC24) MDIO0_MDC */
191 J722S_IOPAD(0x015c, PIN_INPUT, 0) /* (AD25) MDIO0_MDIO */
192 >;
193 };
194
195 rgmii1_pins_default: rgmii1-default-pins {
196 pinctrl-single,pins = <
197 J722S_IOPAD(0x014c, PIN_INPUT, 0) /* (AC25) RGMII1_RD0 */
198 J722S_IOPAD(0x0150, PIN_INPUT, 0) /* (AD27) RGMII1_RD1 */
199 J722S_IOPAD(0x0154, PIN_INPUT, 0) /* (AE24) RGMII1_RD2 */
200 J722S_IOPAD(0x0158, PIN_INPUT, 0) /* (AE26) RGMII1_RD3 */
201 J722S_IOPAD(0x0148, PIN_INPUT, 0) /* (AE27) RGMII1_RXC */
202 J722S_IOPAD(0x0144, PIN_INPUT, 0) /* (AD23) RGMII1_RX_CTL */
203 J722S_IOPAD(0x0134, PIN_OUTPUT, 0) /* (AF27) RGMII1_TD0 */
204 J722S_IOPAD(0x0138, PIN_OUTPUT, 0) /* (AE23) RGMII1_TD1 */
205 J722S_IOPAD(0x013c, PIN_OUTPUT, 0) /* (AG25) RGMII1_TD2 */
206 J722S_IOPAD(0x0140, PIN_OUTPUT, 0) /* (AF24) RGMII1_TD3 */
207 J722S_IOPAD(0x0130, PIN_OUTPUT, 0) /* (AG26) RGMII1_TXC */
208 J722S_IOPAD(0x012c, PIN_OUTPUT, 0) /* (AF25) RGMII1_TX_CTL */
209 >;
210 };
211
212 led_pins_default: led-default-pins {
213 pinctrl-single,pins = <
214 J722S_IOPAD(0x002c, PIN_OUTPUT, 7) /* (K26) OSPI0_CSn0.GPIO0_11 */
215 J722S_IOPAD(0x0030, PIN_OUTPUT, 7) /* (K23) OSPI0_CSn1.GPIO0_12 */
216 >;
217 };
218
219 pmic_irq_pins_default: pmic-irq-default-pins {
220 pinctrl-single,pins = <
221 J722S_IOPAD(0x01f4, PIN_INPUT_PULLUP, 0) /* (B23) EXTINTn */
222 >;
223 };
224
225 vdd_3v3_sd_pins_default: vdd-3v3-sd-default-pins {
226 pinctrl-single,pins = <
227 J722S_IOPAD(0x0254, PIN_OUTPUT, 7) /* (E25) USB0_DRVVBUS.GPIO1_50 */
228 >;
229 };
230 };
231
232 &cpsw3g {
233 pinctrl-names = "default";
234 pinctrl-0 = <&rgmii1_pins_default>;
235 status = "okay";
236 };
237
238 &cpsw3g_mdio {
239 pinctrl-names = "default";
240 pinctrl-0 = <&mdio_pins_default>;
241 status = "okay";
242
243 cpsw3g_phy0: ethernet-phy@0 {
244 reg = <0>;
245 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
246 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
247 ti,min-output-impedance;
248 };
249 };
250
251 &cpsw_port1 {
252 phy-mode = "rgmii-id";
253 phy-handle = <&cpsw3g_phy0>;
254 status = "okay";
255 };
256
257 &main_gpio1 {
258 bootph-all;
259 status = "okay";
260 };
261
262 &main_uart0 {
263 pinctrl-names = "default";
264 pinctrl-0 = <&main_uart0_pins_default>;
265 bootph-all;
266 status = "okay";
267 };
268
269 &mcu_pmx0 {
270 wkup_uart0_pins_default: wkup-uart0-default-pins {
271 pinctrl-single,pins = <
272 J722S_MCU_IOPAD(0x02c, PIN_INPUT, 0) /* (C7) WKUP_UART0_CTSn */
273 J722S_MCU_IOPAD(0x030, PIN_OUTPUT, 0) /* (C6) WKUP_UART0_RTSn */
274 J722S_MCU_IOPAD(0x024, PIN_INPUT, 0) /* (D8) WKUP_UART0_RXD */
275 J722S_MCU_IOPAD(0x028, PIN_OUTPUT, 0) /* (D7) WKUP_UART0_TXD */
276 >;
277 bootph-all;
278 };
279
280 wkup_i2c0_pins_default: wkup-i2c0-default-pins {
281 pinctrl-single,pins = <
282 J722S_MCU_IOPAD(0x04c, PIN_INPUT_PULLUP, 0) /* (C7) WKUP_I2C0_SCL */
283 J722S_MCU_IOPAD(0x050, PIN_INPUT_PULLUP, 0) /* (C6) WKUP_I2C1_SDA */
284 >;
285 bootph-all;
286 };
287 };
288
289 &wkup_uart0 {
290 /* WKUP UART0 is used by Device Manager firmware */
291 pinctrl-names = "default";
292 pinctrl-0 = <&wkup_uart0_pins_default>;
293 bootph-all;
294 status = "reserved";
295 };
296
297 &wkup_i2c0 {
298 pinctrl-names = "default";
299 pinctrl-0 = <&wkup_i2c0_pins_default>;
300 clock-frequency = <100000>;
301 bootph-all;
302 status = "okay";
303
304 tps65219: pmic@30 {
305 compatible = "ti,tps65219";
306 reg = <0x30>;
307 buck1-supply = <&vsys_5v0>;
308 buck2-supply = <&vsys_5v0>;
309 buck3-supply = <&vsys_5v0>;
310 ldo1-supply = <&vdd_3v3>;
311 ldo3-supply = <&vdd_3v3>;
312 ldo4-supply = <&vdd_3v3>;
313
314 pinctrl-names = "default";
315 pinctrl-0 = <&pmic_irq_pins_default>;
316 interrupt-parent = <&gic500>;
317 interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
318 interrupt-controller;
319 #interrupt-cells = <1>;
320
321 bootph-all;
322 system-power-controller;
323 ti,power-button;
324
325 regulators {
326 buck1_reg: buck1 {
327 regulator-name = "VDD_3V3";
328 regulator-min-microvolt = <3300000>;
329 regulator-max-microvolt = <3300000>;
330 regulator-boot-on;
331 regulator-always-on;
332 };
333
334 buck2_reg: buck2 {
335 regulator-name = "VDD_1V8";
336 regulator-min-microvolt = <1800000>;
337 regulator-max-microvolt = <1800000>;
338 regulator-boot-on;
339 regulator-always-on;
340 };
341
342 ldo1_reg: ldo1 {
343 regulator-name = "VDDSHV5_SDIO";
344 regulator-min-microvolt = <3300000>;
345 regulator-max-microvolt = <3300000>;
346 regulator-allow-bypass;
347 regulator-boot-on;
348 regulator-always-on;
349 };
350
351 ldo2_reg: ldo2 {
352 regulator-name = "VDD_1V2";
353 regulator-min-microvolt = <1200000>;
354 regulator-max-microvolt = <1200000>;
355 regulator-boot-on;
356 regulator-always-on;
357 };
358
359 ldo3_reg: ldo3 {
360 regulator-name = "VDDA_PHY_1V8";
361 regulator-min-microvolt = <1800000>;
362 regulator-max-microvolt = <1800000>;
363 regulator-boot-on;
364 regulator-always-on;
365 };
366
367 ldo4_reg: ldo4 {
368 regulator-name = "VDDA_PLL_1V8";
369 regulator-min-microvolt = <1800000>;
370 regulator-max-microvolt = <1800000>;
371 regulator-boot-on;
372 regulator-always-on;
373 };
374 };
375 };
376
377 eeprom@50 {
378 compatible = "atmel,24c32";
379 reg = <0x50>;
380 };
381
382 rtc: rtc@68 {
383 compatible = "dallas,ds1340";
384 reg = <0x68>;
385 };
386 };
387
388 &sdhci1 {
389 /* SD/MMC */
390 vmmc-supply = <&vdd_mmc1>;
391 vqmmc-supply = <&vdd_sd_dv>;
392 pinctrl-names = "default";
393 pinctrl-0 = <&main_mmc1_pins_default>;
394 disable-wp;
395 cd-gpios = <&main_gpio1 48 GPIO_ACTIVE_LOW>;
396 cd-debounce-delay-ms = <100>;
397 bootph-all;
398 ti,fails-without-test-cd;
399 status = "okay";
400 };
401
402 #include "k3-j722s-ti-ipc-firmware.dtsi"