blob: b08a083d722d41d13d20cb2f652b16d0a6f2eb8c [file] [log] [blame]
Bryan Brattlof25380292022-11-03 19:13:51 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * AM62A SK: https://www.ti.com/lit/zip/sprr459
4 *
5 * Copyright (C) 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-am62a7.dtsi"
13
14/ {
15 compatible = "ti,am62a7-sk", "ti,am62a7";
16 model = "Texas Instruments AM62A7 SK";
17
18 aliases {
19 serial2 = &main_uart0;
20 mmc1 = &sdhci1;
21 };
22
23 chosen {
24 stdout-path = "serial2:115200n8";
25 };
26
27 memory@80000000 {
28 device_type = "memory";
Devarsh Thakkar88519852023-02-06 17:04:51 +053029 /* 4G RAM */
30 reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
31 <0x00000008 0x80000000 0x00000000 0x80000000>;
Bryan Brattlof25380292022-11-03 19:13:51 -050032 };
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_memory_region: r5f-dma-memory@9c900000 {
52 compatible = "shared-dma-pool";
53 reg = <0x00 0x9c900000 0x00 0x01e00000>;
54 no-map;
55 };
56 };
57
58 vmain_pd: regulator-0 {
59 /* TPS25750 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 TPS63070 */
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 LM5141-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 vdd_mmc1: regulator-3 {
91 /* TPS22918DBVR */
92 compatible = "regulator-fixed";
93 regulator-name = "vdd_mmc1";
94 regulator-min-microvolt = <3300000>;
95 regulator-max-microvolt = <3300000>;
96 regulator-boot-on;
97 enable-active-high;
98 gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
99 };
100
101 leds {
102 compatible = "gpio-leds";
103 pinctrl-names = "default";
104 pinctrl-0 = <&usr_led_pins_default>;
105
106 led-0 {
107 label = "am62a-sk:green:heartbeat";
108 gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
109 linux,default-trigger = "heartbeat";
110 function = LED_FUNCTION_HEARTBEAT;
111 default-state = "off";
112 };
113 };
114};
115
116&main_pmx0 {
117 main_uart0_pins_default: main-uart0-pins-default {
118 pinctrl-single,pins = <
119 AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
120 AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
121 >;
122 };
123
124 main_i2c0_pins_default: main-i2c0-pins-default {
125 pinctrl-single,pins = <
126 AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
127 AM62AX_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
128 >;
129 };
130
131 main_i2c1_pins_default: main-i2c1-pins-default {
132 pinctrl-single,pins = <
133 AM62AX_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
134 AM62AX_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
135 >;
136 };
137
138 main_i2c2_pins_default: main-i2c2-pins-default {
139 pinctrl-single,pins = <
140 AM62AX_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */
141 AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */
142 >;
143 };
144
145 main_mmc1_pins_default: main-mmc1-pins-default {
146 pinctrl-single,pins = <
147 AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
148 AM62AX_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
149 AM62AX_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
150 AM62AX_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
151 AM62AX_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
152 AM62AX_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
153 AM62AX_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
154 >;
155 };
156
157 usr_led_pins_default: usr-led-pins-default {
158 pinctrl-single,pins = <
159 AM62AX_IOPAD(0x244, PIN_OUTPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
160 >;
161 };
162};
163
164&main_i2c0 {
165 status = "okay";
166 pinctrl-names = "default";
167 pinctrl-0 = <&main_i2c0_pins_default>;
168 clock-frequency = <400000>;
169};
170
171&main_i2c1 {
172 status = "okay";
173 pinctrl-names = "default";
174 pinctrl-0 = <&main_i2c1_pins_default>;
175 clock-frequency = <400000>;
176
177 exp1: gpio@22 {
178 compatible = "ti,tca6424";
179 reg = <0x22>;
180 gpio-controller;
181 #gpio-cells = <2>;
182
183 gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
184 "BT_EN_SOC", "MMC1_SD_EN",
185 "VPP_EN", "EXP_PS_3V3_En",
186 "EXP_PS_5V0_En", "EXP_HAT_DETECT",
187 "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
188 "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC",
189 "GPIO_HDMI_RSTn", "CSI_GPIO0",
190 "CSI_GPIO1", "WLAN_ALERTn",
191 "HDMI_INTn", "TEST_GPIO2",
192 "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
193 "MCASP1_FET_SEL", "UART1_FET_SEL",
194 "PD_I2C_IRQ", "IO_EXP_TEST_LED";
195 };
196};
197
198&sdhci1 {
199 /* SD/MMC */
200 status = "okay";
201 vmmc-supply = <&vdd_mmc1>;
202 pinctrl-names = "default";
203 pinctrl-0 = <&main_mmc1_pins_default>;
204 ti,driver-strength-ohm = <50>;
205 disable-wp;
206};
207
208&main_gpio0 {
209 status = "okay";
210};
211
212&main_gpio1 {
213 status = "okay";
214};
215
216&main_gpio_intr {
217 status = "okay";
218};
219
220&main_uart0 {
221 status = "okay";
222 pinctrl-names = "default";
223 pinctrl-0 = <&main_uart0_pins_default>;
224};