arm: dts: k3-j721e: Add DT nodes for USB
[oweals/u-boot.git] / arch / arm / dts / k3-j721e-r5-common-proc-board.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
4  */
5
6 /dts-v1/;
7
8 #include "k3-j721e-som-p0.dtsi"
9 #include "k3-j721e-ddr-evm-lp4-3733.dtsi"
10 #include "k3-j721e-ddr.dtsi"
11
12 / {
13         aliases {
14                 remoteproc0 = &sysctrler;
15                 remoteproc1 = &a72_0;
16         };
17
18         chosen {
19                 stdout-path = "serial2:115200n8";
20                 tick-timer = &timer1;
21         };
22
23         a72_0: a72@0 {
24                 compatible = "ti,am654-rproc";
25                 reg = <0x0 0x00a90000 0x0 0x10>;
26                 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
27                                 <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>;
28                 resets = <&k3_reset 202 0>;
29                 assigned-clocks = <&k3_clks 202 2>, <&k3_clks 61 1>;
30                 assigned-clock-rates = <2000000000>, <200000000>;
31                 ti,sci = <&dmsc>;
32                 ti,sci-proc-id = <32>;
33                 ti,sci-host-id = <10>;
34                 u-boot,dm-spl;
35         };
36
37         clk_200mhz: dummy_clock {
38                 compatible = "fixed-clock";
39                 #clock-cells = <0>;
40                 clock-frequency = <200000000>;
41                 u-boot,dm-spl;
42         };
43 };
44
45 &cbass_mcu_wakeup {
46         mcu_secproxy: secproxy@28380000 {
47                 u-boot,dm-spl;
48                 compatible = "ti,am654-secure-proxy";
49                 reg = <0x0 0x2a380000 0x0 0x80000>,
50                       <0x0 0x2a400000 0x0 0x80000>,
51                       <0x0 0x2a480000 0x0 0x80000>;
52                 reg-names = "rt", "scfg", "target_data";
53                 #mbox-cells = <1>;
54         };
55
56         sysctrler: sysctrler {
57                 u-boot,dm-spl;
58                 compatible = "ti,am654-system-controller";
59                 mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>;
60                 mbox-names = "tx", "rx";
61         };
62
63         wkup_vtm0: wkup_vtm@42040000 {
64                 compatible = "ti,am654-vtm", "ti,j721e-avs";
65                 reg = <0x0 0x42040000 0x0 0x330>;
66                 power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
67                 #thermal-sensor-cells = <1>;
68         };
69 };
70
71 &dmsc {
72         mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>;
73         mbox-names = "tx", "rx", "notify";
74         ti,host-id = <4>;
75         ti,secure-host;
76 };
77
78 &wkup_pmx0 {
79         wkup_uart0_pins_default: wkup_uart0_pins_default {
80                 u-boot,dm-spl;
81                 pinctrl-single,pins = <
82                         J721E_WKUP_IOPAD(0xa0, PIN_INPUT, 0) /* (J29) WKUP_UART0_RXD */
83                         J721E_WKUP_IOPAD(0xa4, PIN_OUTPUT, 0) /* (J28) WKUP_UART0_TXD */
84                 >;
85         };
86
87         mcu_uart0_pins_default: mcu_uart0_pins_default {
88                 u-boot,dm-spl;
89                 pinctrl-single,pins = <
90                         J721E_WKUP_IOPAD(0xe8, PIN_INPUT, 0) /* (H29) WKUP_GPIO0_14.MCU_UART0_CTSn */
91                         J721E_WKUP_IOPAD(0xec, PIN_OUTPUT, 0) /* (J27) WKUP_GPIO0_15.MCU_UART0_RTSn */
92                         J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */
93                         J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */
94                 >;
95         };
96
97         wkup_i2c0_pins_default: wkup-i2c0-pins-default {
98                 pinctrl-single,pins = <
99                         J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */
100                         J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */
101                 >;
102         };
103 };
104
105 &main_pmx0 {
106         main_uart0_pins_default: main_uart0_pins_default {
107                 u-boot,dm-spl;
108                 pinctrl-single,pins = <
109                         J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */
110                         J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */
111                         J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */
112                         J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */
113                 >;
114         };
115
116         main_usbss0_pins_default: main_usbss0_pins_default {
117                 pinctrl-single,pins = <
118                         J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
119                         J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
120                 >;
121         };
122 };
123
124 &wkup_uart0 {
125         u-boot,dm-spl;
126         pinctrl-names = "default";
127         pinctrl-0 = <&wkup_uart0_pins_default>;
128         status = "okay";
129 };
130
131 &mcu_uart0 {
132         pinctrl-names = "default";
133         pinctrl-0 = <&mcu_uart0_pins_default>;
134         status = "okay";
135 };
136
137 &main_uart0 {
138         pinctrl-names = "default";
139         pinctrl-0 = <&main_uart0_pins_default>;
140         status = "okay";
141         power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
142 };
143
144 &main_sdhci0 {
145         /delete-property/ power-domains;
146         /delete-property/ assigned-clocks;
147         /delete-property/ assigned-clock-parents;
148         clock-names = "clk_xin";
149         clocks = <&clk_200mhz>;
150         ti,driver-strength-ohm = <50>;
151         non-removable;
152         bus-width = <8>;
153 };
154
155 &main_sdhci1 {
156         /delete-property/ power-domains;
157         /delete-property/ assigned-clocks;
158         /delete-property/ assigned-clock-parents;
159         clock-names = "clk_xin";
160         clocks = <&clk_200mhz>;
161         ti,driver-strength-ohm = <50>;
162 };
163
164 &wkup_i2c0 {
165         u-boot,dm-spl;
166         tps659413a: tps659413a@48 {
167                 reg = <0x48>;
168                 compatible = "ti,tps659413";
169                 u-boot,dm-spl;
170                 pinctrl-names = "default";
171                 pinctrl-0 = <&wkup_i2c0_pins_default>;
172                 clock-frequency = <400000>;
173
174                 regulators: regulators {
175                         u-boot,dm-spl;
176                         buck12_reg: buck12 {
177                                 /*VDD_MPU*/
178                                 regulator-name = "buck12";
179                                 regulator-min-microvolt = <800000>;
180                                 regulator-max-microvolt = <1250000>;
181                                 regulator-always-on;
182                                 regulator-boot-on;
183                                 u-boot,dm-spl;
184                         };
185                 };
186         };
187 };
188
189 &wkup_vtm0 {
190         vdd-supply-2 = <&buck12_reg>;
191         u-boot,dm-spl;
192 };
193
194 #include "k3-j721e-common-proc-board-u-boot.dtsi"