1// SPDX-License-Identifier: GPL-2.0
2/*
3 * AM625 SK: https://www.ti.com/lit/zip/sprr448
4 *
5 * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/
6 */
7
8/dts-v1/;
9
10#include <dt-bindings/leds/common.h>
11#include <dt-bindings/gpio/gpio.h>
12#include "k3-am625.dtsi"
13
14/ {
15	compatible =  "ti,am625-sk", "ti,am625";
16	model = "Texas Instruments AM625 SK";
17
18	aliases {
19		serial2 = &main_uart0;
20	};
21
22	chosen {
23		stdout-path = "serial2:115200n8";
24		bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
25	};
26
27	memory@80000000 {
28		device_type = "memory";
29		/* 2G RAM */
30		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
31
32	};
33
34	reserved-memory {
35		#address-cells = <2>;
36		#size-cells = <2>;
37		ranges;
38
39		secure_tfa_ddr: tfa@9e780000 {
40			reg = <0x00 0x9e780000 0x00 0x80000>;
41			alignment = <0x1000>;
42			no-map;
43		};
44
45		secure_ddr: optee@9e800000 {
46			reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
47			alignment = <0x1000>;
48			no-map;
49		};
50
51		wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9db00000 {
52			compatible = "shared-dma-pool";
53			reg = <0x00 0x9db00000 0x00 0xc00000>;
54			no-map;
55		};
56	};
57
58	vmain_pd: regulator-0 {
59		/* TPS65988 PD CONTROLLER OUTPUT */
60		compatible = "regulator-fixed";
61		regulator-name = "vmain_pd";
62		regulator-min-microvolt = <5000000>;
63		regulator-max-microvolt = <5000000>;
64		regulator-always-on;
65		regulator-boot-on;
66	};
67
68	vcc_5v0: regulator-1 {
69		/* Output of LM34936 */
70		compatible = "regulator-fixed";
71		regulator-name = "vcc_5v0";
72		regulator-min-microvolt = <5000000>;
73		regulator-max-microvolt = <5000000>;
74		vin-supply = <&vmain_pd>;
75		regulator-always-on;
76		regulator-boot-on;
77	};
78
79	vcc_3v3_sys: regulator-2 {
80		/* output of LM61460-Q1 */
81		compatible = "regulator-fixed";
82		regulator-name = "vcc_3v3_sys";
83		regulator-min-microvolt = <3300000>;
84		regulator-max-microvolt = <3300000>;
85		vin-supply = <&vmain_pd>;
86		regulator-always-on;
87		regulator-boot-on;
88	};
89
90	leds {
91		compatible = "gpio-leds";
92		pinctrl-names = "default";
93		pinctrl-0 = <&usr_led_pins_default>;
94
95		led-0 {
96			label = "am62-sk:green:heartbeat";
97			gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
98			linux,default-trigger = "heartbeat";
99			function = LED_FUNCTION_HEARTBEAT;
100			default-state = "off";
101		};
102	};
103};
104
105&main_pmx0 {
106	main_uart0_pins_default: main-uart0-pins-default {
107		pinctrl-single,pins = <
108			AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
109			AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
110		>;
111	};
112
113	main_i2c0_pins_default: main-i2c0-pins-default {
114		pinctrl-single,pins = <
115			AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
116			AM62X_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
117		>;
118	};
119
120	main_i2c1_pins_default: main-i2c1-pins-default {
121		pinctrl-single,pins = <
122			AM62X_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
123			AM62X_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
124		>;
125	};
126
127	usr_led_pins_default: usr-led-pins-default {
128		pinctrl-single,pins = <
129			AM62X_IOPAD(0x244, PIN_OUTPUT, 7) /* (C17) MMC1_SDWP.GPIO1_49 */
130		>;
131	};
132};
133
134&wkup_uart0 {
135	/* WKUP UART0 is used by DM firmware */
136	status = "reserved";
137};
138
139&mcu_uart0 {
140	status = "disabled";
141};
142
143&main_uart0 {
144	pinctrl-names = "default";
145	pinctrl-0 = <&main_uart0_pins_default>;
146};
147
148&main_uart1 {
149	/* Main UART1 is used by TIFS firmware */
150	status = "reserved";
151};
152
153&main_uart2 {
154	status = "disabled";
155};
156
157&main_uart3 {
158	status = "disabled";
159};
160
161&main_uart4 {
162	status = "disabled";
163};
164
165&main_uart5 {
166	status = "disabled";
167};
168
169&main_uart6 {
170	status = "disabled";
171};
172
173&mcu_i2c0 {
174	status = "disabled";
175};
176
177&wkup_i2c0 {
178	status = "disabled";
179};
180
181&main_i2c0 {
182	pinctrl-names = "default";
183	pinctrl-0 = <&main_i2c0_pins_default>;
184	clock-frequency = <400000>;
185};
186
187&main_i2c1 {
188	pinctrl-names = "default";
189	pinctrl-0 = <&main_i2c1_pins_default>;
190	clock-frequency = <400000>;
191};
192
193&main_i2c2 {
194	status = "disabled";
195};
196
197&main_i2c3 {
198	status = "disabled";
199};
200
201&mailbox0_cluster0 {
202	mbox_m4_0: mbox-m4-0 {
203		ti,mbox-rx = <0 0 0>;
204		ti,mbox-tx = <1 0 0>;
205	};
206};
207