blob: 270e669f655ae46a4f1359130cc7038d67721791 [file] [log] [blame]
Bryan Brattlof0c64cee2022-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"
Neha Malcom Francise4824452023-07-22 00:14:40 +053013#include "k3-am62a-sk-binman.dtsi"
Bryan Brattlof0c64cee2022-11-03 19:13:51 -050014
15/ {
16 compatible = "ti,am62a7-sk", "ti,am62a7";
17 model = "Texas Instruments AM62A7 SK";
18
19 aliases {
20 serial2 = &main_uart0;
21 mmc1 = &sdhci1;
22 };
23
24 chosen {
25 stdout-path = "serial2:115200n8";
26 };
27
28 memory@80000000 {
29 device_type = "memory";
Devarsh Thakkar33d71d72023-02-06 17:04:51 +053030 /* 4G RAM */
31 reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
32 <0x00000008 0x80000000 0x00000000 0x80000000>;
Bryan Brattlof0c64cee2022-11-03 19:13:51 -050033 };
34
35 reserved-memory {
36 #address-cells = <2>;
37 #size-cells = <2>;
38 ranges;
39
40 secure_tfa_ddr: tfa@9e780000 {
41 reg = <0x00 0x9e780000 0x00 0x80000>;
42 alignment = <0x1000>;
43 no-map;
44 };
45
46 secure_ddr: optee@9e800000 {
47 reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
48 alignment = <0x1000>;
49 no-map;
50 };
51
52 wkup_r5fss0_core0_memory_region: r5f-dma-memory@9c900000 {
53 compatible = "shared-dma-pool";
54 reg = <0x00 0x9c900000 0x00 0x01e00000>;
55 no-map;
56 };
57 };
58
59 vmain_pd: regulator-0 {
60 /* TPS25750 PD CONTROLLER OUTPUT */
61 compatible = "regulator-fixed";
62 regulator-name = "vmain_pd";
63 regulator-min-microvolt = <5000000>;
64 regulator-max-microvolt = <5000000>;
65 regulator-always-on;
66 regulator-boot-on;
67 };
68
69 vcc_5v0: regulator-1 {
70 /* Output of TPS63070 */
71 compatible = "regulator-fixed";
72 regulator-name = "vcc_5v0";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
75 vin-supply = <&vmain_pd>;
76 regulator-always-on;
77 regulator-boot-on;
78 };
79
80 vcc_3v3_sys: regulator-2 {
81 /* output of LM5141-Q1 */
82 compatible = "regulator-fixed";
83 regulator-name = "vcc_3v3_sys";
84 regulator-min-microvolt = <3300000>;
85 regulator-max-microvolt = <3300000>;
86 vin-supply = <&vmain_pd>;
87 regulator-always-on;
88 regulator-boot-on;
89 };
90
91 vdd_mmc1: regulator-3 {
92 /* TPS22918DBVR */
93 compatible = "regulator-fixed";
94 regulator-name = "vdd_mmc1";
95 regulator-min-microvolt = <3300000>;
96 regulator-max-microvolt = <3300000>;
97 regulator-boot-on;
98 enable-active-high;
99 gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
100 };
101
102 leds {
103 compatible = "gpio-leds";
104 pinctrl-names = "default";
105 pinctrl-0 = <&usr_led_pins_default>;
106
107 led-0 {
108 label = "am62a-sk:green:heartbeat";
109 gpios = <&main_gpio1 49 GPIO_ACTIVE_HIGH>;
110 linux,default-trigger = "heartbeat";
111 function = LED_FUNCTION_HEARTBEAT;
112 default-state = "off";
113 };
114 };
115};
116
117&main_pmx0 {
118 main_uart0_pins_default: main-uart0-pins-default {
119 pinctrl-single,pins = <
120 AM62AX_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
121 AM62AX_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
122 >;
123 };
124
125 main_i2c0_pins_default: main-i2c0-pins-default {
126 pinctrl-single,pins = <
127 AM62AX_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
128 AM62AX_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
129 >;
130 };
131
132 main_i2c1_pins_default: main-i2c1-pins-default {
133 pinctrl-single,pins = <
134 AM62AX_IOPAD(0x1e8, PIN_INPUT_PULLUP, 0) /* (B17) I2C1_SCL */
135 AM62AX_IOPAD(0x1ec, PIN_INPUT_PULLUP, 0) /* (A17) I2C1_SDA */
136 >;
137 };
138
139 main_i2c2_pins_default: main-i2c2-pins-default {
140 pinctrl-single,pins = <
141 AM62AX_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) GPMC0_CSn2.I2C2_SCL */
142 AM62AX_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) GPMC0_CSn3.I2C2_SDA */
143 >;
144 };
145
146 main_mmc1_pins_default: main-mmc1-pins-default {
147 pinctrl-single,pins = <
148 AM62AX_IOPAD(0x23c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
149 AM62AX_IOPAD(0x234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
150 AM62AX_IOPAD(0x230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
151 AM62AX_IOPAD(0x22c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
152 AM62AX_IOPAD(0x228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
153 AM62AX_IOPAD(0x224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
154 AM62AX_IOPAD(0x240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
155 >;
156 };
157
158 usr_led_pins_default: usr-led-pins-default {
159 pinctrl-single,pins = <
160 AM62AX_IOPAD(0x244, PIN_OUTPUT, 7) /* (D18) MMC1_SDWP.GPIO1_49 */
161 >;
162 };
163};
164
165&main_i2c0 {
166 status = "okay";
167 pinctrl-names = "default";
168 pinctrl-0 = <&main_i2c0_pins_default>;
169 clock-frequency = <400000>;
170};
171
172&main_i2c1 {
173 status = "okay";
174 pinctrl-names = "default";
175 pinctrl-0 = <&main_i2c1_pins_default>;
176 clock-frequency = <400000>;
177
178 exp1: gpio@22 {
179 compatible = "ti,tca6424";
180 reg = <0x22>;
181 gpio-controller;
182 #gpio-cells = <2>;
183
184 gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
185 "BT_EN_SOC", "MMC1_SD_EN",
186 "VPP_EN", "EXP_PS_3V3_En",
187 "EXP_PS_5V0_En", "EXP_HAT_DETECT",
188 "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn",
189 "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC",
190 "GPIO_HDMI_RSTn", "CSI_GPIO0",
191 "CSI_GPIO1", "WLAN_ALERTn",
192 "HDMI_INTn", "TEST_GPIO2",
193 "MCASP1_FET_EN", "MCASP1_BUF_BT_EN",
194 "MCASP1_FET_SEL", "UART1_FET_SEL",
195 "PD_I2C_IRQ", "IO_EXP_TEST_LED";
196 };
197};
198
199&sdhci1 {
200 /* SD/MMC */
201 status = "okay";
202 vmmc-supply = <&vdd_mmc1>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&main_mmc1_pins_default>;
205 ti,driver-strength-ohm = <50>;
206 disable-wp;
207};
208
209&main_gpio0 {
210 status = "okay";
211};
212
213&main_gpio1 {
214 status = "okay";
215};
216
217&main_gpio_intr {
218 status = "okay";
219};
220
221&main_uart0 {
222 status = "okay";
223 pinctrl-names = "default";
224 pinctrl-0 = <&main_uart0_pins_default>;
225};