xref: /linux/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi (revision 223d9ac45efb9311e7b2b0494c3ed25c701c6a5d)
1b8545f9dSAswath Govindraju// SPDX-License-Identifier: GPL-2.0
2b8545f9dSAswath Govindraju/*
3b8545f9dSAswath Govindraju * Device Tree Source for J721S2 SoC Family MCU/WAKEUP Domain peripherals
4b8545f9dSAswath Govindraju *
5b8545f9dSAswath Govindraju * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
6b8545f9dSAswath Govindraju */
7b8545f9dSAswath Govindraju
8b8545f9dSAswath Govindraju&cbass_mcu_wakeup {
9b8545f9dSAswath Govindraju	sms: system-controller@44083000 {
10b8545f9dSAswath Govindraju		compatible = "ti,k2g-sci";
11b8545f9dSAswath Govindraju		ti,host-id = <12>;
12b8545f9dSAswath Govindraju
13b8545f9dSAswath Govindraju		mbox-names = "rx", "tx";
14b8545f9dSAswath Govindraju
15b8545f9dSAswath Govindraju		mboxes= <&secure_proxy_main 11>,
16b8545f9dSAswath Govindraju			<&secure_proxy_main 13>;
17b8545f9dSAswath Govindraju
18b8545f9dSAswath Govindraju		reg-names = "debug_messages";
19b8545f9dSAswath Govindraju		reg = <0x00 0x44083000 0x00 0x1000>;
20b8545f9dSAswath Govindraju
21b8545f9dSAswath Govindraju		k3_pds: power-controller {
22b8545f9dSAswath Govindraju			compatible = "ti,sci-pm-domain";
23b8545f9dSAswath Govindraju			#power-domain-cells = <2>;
24b8545f9dSAswath Govindraju		};
25b8545f9dSAswath Govindraju
26b8545f9dSAswath Govindraju		k3_clks: clock-controller {
27b8545f9dSAswath Govindraju			compatible = "ti,k2g-sci-clk";
28b8545f9dSAswath Govindraju			#clock-cells = <2>;
29b8545f9dSAswath Govindraju		};
30b8545f9dSAswath Govindraju
31b8545f9dSAswath Govindraju		k3_reset: reset-controller {
32b8545f9dSAswath Govindraju			compatible = "ti,sci-reset";
33b8545f9dSAswath Govindraju			#reset-cells = <2>;
34b8545f9dSAswath Govindraju		};
35b8545f9dSAswath Govindraju	};
36b8545f9dSAswath Govindraju
37b8545f9dSAswath Govindraju	chipid@43000014 {
38b8545f9dSAswath Govindraju		compatible = "ti,am654-chipid";
39b8545f9dSAswath Govindraju		reg = <0x00 0x43000014 0x00 0x4>;
40b8545f9dSAswath Govindraju	};
41b8545f9dSAswath Govindraju
42b8545f9dSAswath Govindraju	mcu_ram: sram@41c00000 {
43b8545f9dSAswath Govindraju		compatible = "mmio-sram";
44b8545f9dSAswath Govindraju		reg = <0x00 0x41c00000 0x00 0x100000>;
45b8545f9dSAswath Govindraju		ranges = <0x00 0x00 0x41c00000 0x100000>;
46b8545f9dSAswath Govindraju		#address-cells = <1>;
47b8545f9dSAswath Govindraju		#size-cells = <1>;
48b8545f9dSAswath Govindraju	};
49b8545f9dSAswath Govindraju
50b8545f9dSAswath Govindraju	wkup_pmx0: pinctrl@4301c000 {
51b8545f9dSAswath Govindraju		compatible = "pinctrl-single";
52b8545f9dSAswath Govindraju		/* Proxy 0 addressing */
53b8545f9dSAswath Govindraju		reg = <0x00 0x4301c000 0x00 0x178>;
54b8545f9dSAswath Govindraju		#pinctrl-cells = <1>;
55b8545f9dSAswath Govindraju		pinctrl-single,register-width = <32>;
56b8545f9dSAswath Govindraju		pinctrl-single,function-mask = <0xffffffff>;
57b8545f9dSAswath Govindraju	};
58b8545f9dSAswath Govindraju
59b8545f9dSAswath Govindraju	wkup_gpio_intr: interrupt-controller@42200000 {
60b8545f9dSAswath Govindraju		compatible = "ti,sci-intr";
61b8545f9dSAswath Govindraju		reg = <0x00 0x42200000 0x00 0x400>;
62b8545f9dSAswath Govindraju		ti,intr-trigger-type = <1>;
63b8545f9dSAswath Govindraju		interrupt-controller;
64b8545f9dSAswath Govindraju		interrupt-parent = <&gic500>;
65b8545f9dSAswath Govindraju		#interrupt-cells = <1>;
66b8545f9dSAswath Govindraju		ti,sci = <&sms>;
67b8545f9dSAswath Govindraju		ti,sci-dev-id = <125>;
68b8545f9dSAswath Govindraju		ti,interrupt-ranges = <16 928 16>;
69b8545f9dSAswath Govindraju	};
70b8545f9dSAswath Govindraju
71b8545f9dSAswath Govindraju	mcu_conf: syscon@40f00000 {
72b8545f9dSAswath Govindraju		compatible = "syscon", "simple-mfd";
73b8545f9dSAswath Govindraju		reg = <0x0 0x40f00000 0x0 0x20000>;
74b8545f9dSAswath Govindraju		#address-cells = <1>;
75b8545f9dSAswath Govindraju		#size-cells = <1>;
76b8545f9dSAswath Govindraju		ranges = <0x0 0x0 0x40f00000 0x20000>;
77b8545f9dSAswath Govindraju
78b8545f9dSAswath Govindraju		phy_gmii_sel: phy@4040 {
79b8545f9dSAswath Govindraju			compatible = "ti,am654-phy-gmii-sel";
80b8545f9dSAswath Govindraju			reg = <0x4040 0x4>;
81b8545f9dSAswath Govindraju			#phy-cells = <1>;
82b8545f9dSAswath Govindraju		};
83b8545f9dSAswath Govindraju
84b8545f9dSAswath Govindraju	};
85b8545f9dSAswath Govindraju
86b8545f9dSAswath Govindraju	wkup_uart0: serial@42300000 {
87b8545f9dSAswath Govindraju		compatible = "ti,j721e-uart", "ti,am654-uart";
88b8545f9dSAswath Govindraju		reg = <0x00 0x42300000 0x00 0x200>;
89b8545f9dSAswath Govindraju		interrupts = <GIC_SPI 897 IRQ_TYPE_LEVEL_HIGH>;
90b8545f9dSAswath Govindraju		current-speed = <115200>;
91b8545f9dSAswath Govindraju		clocks = <&k3_clks 359 3>;
92b8545f9dSAswath Govindraju		clock-names = "fclk";
93b8545f9dSAswath Govindraju		power-domains = <&k3_pds 359 TI_SCI_PD_EXCLUSIVE>;
94b8545f9dSAswath Govindraju	};
95b8545f9dSAswath Govindraju
96b8545f9dSAswath Govindraju	mcu_uart0: serial@40a00000 {
97b8545f9dSAswath Govindraju		compatible = "ti,j721e-uart", "ti,am654-uart";
98b8545f9dSAswath Govindraju		reg = <0x00 0x40a00000 0x00 0x200>;
99b8545f9dSAswath Govindraju		interrupts = <GIC_SPI 846 IRQ_TYPE_LEVEL_HIGH>;
100b8545f9dSAswath Govindraju		current-speed = <115200>;
101b8545f9dSAswath Govindraju		clocks = <&k3_clks 149 3>;
102b8545f9dSAswath Govindraju		clock-names = "fclk";
103b8545f9dSAswath Govindraju		power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>;
104b8545f9dSAswath Govindraju	};
105b8545f9dSAswath Govindraju
106b8545f9dSAswath Govindraju	wkup_gpio0: gpio@42110000 {
107b8545f9dSAswath Govindraju		compatible = "ti,j721e-gpio", "ti,keystone-gpio";
108b8545f9dSAswath Govindraju		reg = <0x00 0x42110000 0x00 0x100>;
109b8545f9dSAswath Govindraju		gpio-controller;
110b8545f9dSAswath Govindraju		#gpio-cells = <2>;
111*223d9ac4SKeerthy		interrupt-parent = <&wkup_gpio_intr>;
112b8545f9dSAswath Govindraju		interrupts = <103>, <104>, <105>, <106>, <107>, <108>;
113b8545f9dSAswath Govindraju		interrupt-controller;
114b8545f9dSAswath Govindraju		#interrupt-cells = <2>;
115b8545f9dSAswath Govindraju		ti,ngpio = <89>;
116b8545f9dSAswath Govindraju		ti,davinci-gpio-unbanked = <0>;
117b8545f9dSAswath Govindraju		power-domains = <&k3_pds 115 TI_SCI_PD_EXCLUSIVE>;
118b8545f9dSAswath Govindraju		clocks = <&k3_clks 115 0>;
119b8545f9dSAswath Govindraju		clock-names = "gpio";
120b8545f9dSAswath Govindraju	};
121b8545f9dSAswath Govindraju
122b8545f9dSAswath Govindraju	wkup_gpio1: gpio@42100000 {
123b8545f9dSAswath Govindraju		compatible = "ti,j721e-gpio", "ti,keystone-gpio";
124b8545f9dSAswath Govindraju		reg = <0x00 0x42100000 0x00 0x100>;
125b8545f9dSAswath Govindraju		gpio-controller;
126b8545f9dSAswath Govindraju		#gpio-cells = <2>;
127*223d9ac4SKeerthy		interrupt-parent = <&wkup_gpio_intr>;
128b8545f9dSAswath Govindraju		interrupts = <112>, <113>, <114>, <115>, <116>, <117>;
129b8545f9dSAswath Govindraju		interrupt-controller;
130b8545f9dSAswath Govindraju		#interrupt-cells = <2>;
131b8545f9dSAswath Govindraju		ti,ngpio = <89>;
132b8545f9dSAswath Govindraju		ti,davinci-gpio-unbanked = <0>;
133b8545f9dSAswath Govindraju		power-domains = <&k3_pds 116 TI_SCI_PD_EXCLUSIVE>;
134b8545f9dSAswath Govindraju		clocks = <&k3_clks 116 0>;
135b8545f9dSAswath Govindraju		clock-names = "gpio";
136b8545f9dSAswath Govindraju	};
137b8545f9dSAswath Govindraju
138b8545f9dSAswath Govindraju	wkup_i2c0: i2c@42120000 {
139b8545f9dSAswath Govindraju		compatible = "ti,j721e-i2c", "ti,omap4-i2c";
140b8545f9dSAswath Govindraju		reg = <0x00 0x42120000 0x00 0x100>;
141b8545f9dSAswath Govindraju		interrupts = <GIC_SPI 896 IRQ_TYPE_LEVEL_HIGH>;
142b8545f9dSAswath Govindraju		#address-cells = <1>;
143b8545f9dSAswath Govindraju		#size-cells = <0>;
144b8545f9dSAswath Govindraju		clocks = <&k3_clks 223 1>;
145b8545f9dSAswath Govindraju		clock-names = "fck";
146b8545f9dSAswath Govindraju		power-domains = <&k3_pds 223 TI_SCI_PD_EXCLUSIVE>;
147b8545f9dSAswath Govindraju	};
148b8545f9dSAswath Govindraju
149b8545f9dSAswath Govindraju	mcu_i2c0: i2c@40b00000 {
150b8545f9dSAswath Govindraju		compatible = "ti,j721e-i2c", "ti,omap4-i2c";
151b8545f9dSAswath Govindraju		reg = <0x00 0x40b00000 0x00 0x100>;
152b8545f9dSAswath Govindraju		interrupts = <GIC_SPI 852 IRQ_TYPE_LEVEL_HIGH>;
153b8545f9dSAswath Govindraju		#address-cells = <1>;
154b8545f9dSAswath Govindraju		#size-cells = <0>;
155b8545f9dSAswath Govindraju		clocks = <&k3_clks 221 1>;
156b8545f9dSAswath Govindraju		clock-names = "fck";
157b8545f9dSAswath Govindraju		power-domains = <&k3_pds 221 TI_SCI_PD_EXCLUSIVE>;
158b8545f9dSAswath Govindraju	};
159b8545f9dSAswath Govindraju
160b8545f9dSAswath Govindraju	mcu_i2c1: i2c@40b10000 {
161b8545f9dSAswath Govindraju		compatible = "ti,j721e-i2c", "ti,omap4-i2c";
162b8545f9dSAswath Govindraju		reg = <0x00 0x40b10000 0x00 0x100>;
163b8545f9dSAswath Govindraju		interrupts = <GIC_SPI 853 IRQ_TYPE_LEVEL_HIGH>;
164b8545f9dSAswath Govindraju		#address-cells = <1>;
165b8545f9dSAswath Govindraju		#size-cells = <0>;
166b8545f9dSAswath Govindraju		clocks = <&k3_clks 222 1>;
167b8545f9dSAswath Govindraju		clock-names = "fck";
168b8545f9dSAswath Govindraju		power-domains = <&k3_pds 222 TI_SCI_PD_EXCLUSIVE>;
169b8545f9dSAswath Govindraju	};
170b8545f9dSAswath Govindraju
171b8545f9dSAswath Govindraju	mcu_mcan0: can@40528000 {
172b8545f9dSAswath Govindraju		compatible = "bosch,m_can";
173b8545f9dSAswath Govindraju		reg = <0x00 0x40528000 0x00 0x200>,
174b8545f9dSAswath Govindraju		      <0x00 0x40500000 0x00 0x8000>;
175b8545f9dSAswath Govindraju		reg-names = "m_can", "message_ram";
176b8545f9dSAswath Govindraju		power-domains = <&k3_pds 207 TI_SCI_PD_EXCLUSIVE>;
177b8545f9dSAswath Govindraju		clocks = <&k3_clks 207 0>, <&k3_clks 207 1>;
178b8545f9dSAswath Govindraju		clock-names = "hclk", "cclk";
179b8545f9dSAswath Govindraju		interrupts = <GIC_SPI 832 IRQ_TYPE_LEVEL_HIGH>,
180b8545f9dSAswath Govindraju			     <GIC_SPI 833 IRQ_TYPE_LEVEL_HIGH>;
181b8545f9dSAswath Govindraju		interrupt-names = "int0", "int1";
182b8545f9dSAswath Govindraju		bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
183b8545f9dSAswath Govindraju	};
184b8545f9dSAswath Govindraju
185b8545f9dSAswath Govindraju	mcu_mcan1: can@40568000 {
186b8545f9dSAswath Govindraju		compatible = "bosch,m_can";
187b8545f9dSAswath Govindraju		reg = <0x00 0x40568000 0x00 0x200>,
188b8545f9dSAswath Govindraju		      <0x00 0x40540000 0x00 0x8000>;
189b8545f9dSAswath Govindraju		reg-names = "m_can", "message_ram";
190b8545f9dSAswath Govindraju		power-domains = <&k3_pds 208 TI_SCI_PD_EXCLUSIVE>;
191b8545f9dSAswath Govindraju		clocks = <&k3_clks 208 0>, <&k3_clks 208 1>;
192b8545f9dSAswath Govindraju		clock-names = "hclk", "cclk";
193b8545f9dSAswath Govindraju		interrupts = <GIC_SPI 835 IRQ_TYPE_LEVEL_HIGH>,
194b8545f9dSAswath Govindraju			     <GIC_SPI 836 IRQ_TYPE_LEVEL_HIGH>;
195b8545f9dSAswath Govindraju		interrupt-names = "int0", "int1";
196b8545f9dSAswath Govindraju		bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
197b8545f9dSAswath Govindraju	};
198b8545f9dSAswath Govindraju
199b8545f9dSAswath Govindraju	mcu_navss: bus@28380000{
200b8545f9dSAswath Govindraju		compatible = "simple-mfd";
201b8545f9dSAswath Govindraju		#address-cells = <2>;
202b8545f9dSAswath Govindraju		#size-cells = <2>;
203b8545f9dSAswath Govindraju		ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>;
204b8545f9dSAswath Govindraju		dma-coherent;
205b8545f9dSAswath Govindraju		dma-ranges;
206b8545f9dSAswath Govindraju
207b8545f9dSAswath Govindraju		ti,sci-dev-id = <267>;
208b8545f9dSAswath Govindraju
209b8545f9dSAswath Govindraju		mcu_ringacc: ringacc@2b800000 {
210b8545f9dSAswath Govindraju			compatible = "ti,am654-navss-ringacc";
211b8545f9dSAswath Govindraju			reg = <0x0 0x2b800000 0x0 0x400000>,
212b8545f9dSAswath Govindraju			      <0x0 0x2b000000 0x0 0x400000>,
213b8545f9dSAswath Govindraju			      <0x0 0x28590000 0x0 0x100>,
214b8545f9dSAswath Govindraju			      <0x0 0x2a500000 0x0 0x40000>;
215b8545f9dSAswath Govindraju			reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
216b8545f9dSAswath Govindraju			ti,num-rings = <286>;
217b8545f9dSAswath Govindraju			ti,sci-rm-range-gp-rings = <0x1>;
218b8545f9dSAswath Govindraju			ti,sci = <&sms>;
219b8545f9dSAswath Govindraju			ti,sci-dev-id = <272>;
220b8545f9dSAswath Govindraju			msi-parent = <&main_udmass_inta>;
221b8545f9dSAswath Govindraju		};
222b8545f9dSAswath Govindraju
223b8545f9dSAswath Govindraju		mcu_udmap: dma-controller@285c0000 {
224b8545f9dSAswath Govindraju			compatible = "ti,j721e-navss-mcu-udmap";
225b8545f9dSAswath Govindraju			reg = <0x0 0x285c0000 0x0 0x100>,
226b8545f9dSAswath Govindraju			      <0x0 0x2a800000 0x0 0x40000>,
227b8545f9dSAswath Govindraju			      <0x0 0x2aa00000 0x0 0x40000>;
228b8545f9dSAswath Govindraju			reg-names = "gcfg", "rchanrt", "tchanrt";
229b8545f9dSAswath Govindraju			msi-parent = <&main_udmass_inta>;
230b8545f9dSAswath Govindraju			#dma-cells = <1>;
231b8545f9dSAswath Govindraju
232b8545f9dSAswath Govindraju			ti,sci = <&sms>;
233b8545f9dSAswath Govindraju			ti,sci-dev-id = <273>;
234b8545f9dSAswath Govindraju			ti,ringacc = <&mcu_ringacc>;
235b8545f9dSAswath Govindraju			ti,sci-rm-range-tchan = <0x0d>, /* TX_CHAN */
236b8545f9dSAswath Govindraju						<0x0f>; /* TX_HCHAN */
237b8545f9dSAswath Govindraju			ti,sci-rm-range-rchan = <0x0a>, /* RX_CHAN */
238b8545f9dSAswath Govindraju						<0x0b>; /* RX_HCHAN */
239b8545f9dSAswath Govindraju			ti,sci-rm-range-rflow = <0x00>; /* GP RFLOW */
240b8545f9dSAswath Govindraju		};
241b8545f9dSAswath Govindraju	};
242b8545f9dSAswath Govindraju
243b8545f9dSAswath Govindraju	mcu_cpsw: ethernet@46000000 {
244b8545f9dSAswath Govindraju		compatible = "ti,j721e-cpsw-nuss";
245b8545f9dSAswath Govindraju		#address-cells = <2>;
246b8545f9dSAswath Govindraju		#size-cells = <2>;
247b8545f9dSAswath Govindraju		reg = <0x0 0x46000000 0x0 0x200000>;
248b8545f9dSAswath Govindraju		reg-names = "cpsw_nuss";
249b8545f9dSAswath Govindraju		ranges = <0x0 0x0 0x0 0x46000000 0x0 0x200000>;
250b8545f9dSAswath Govindraju		dma-coherent;
251b8545f9dSAswath Govindraju		clocks = <&k3_clks 29 28>;
252b8545f9dSAswath Govindraju		clock-names = "fck";
253b8545f9dSAswath Govindraju		power-domains = <&k3_pds 29 TI_SCI_PD_EXCLUSIVE>;
254b8545f9dSAswath Govindraju
255b8545f9dSAswath Govindraju		dmas = <&mcu_udmap 0xf000>,
256b8545f9dSAswath Govindraju		       <&mcu_udmap 0xf001>,
257b8545f9dSAswath Govindraju		       <&mcu_udmap 0xf002>,
258b8545f9dSAswath Govindraju		       <&mcu_udmap 0xf003>,
259b8545f9dSAswath Govindraju		       <&mcu_udmap 0xf004>,
260b8545f9dSAswath Govindraju		       <&mcu_udmap 0xf005>,
261b8545f9dSAswath Govindraju		       <&mcu_udmap 0xf006>,
262b8545f9dSAswath Govindraju		       <&mcu_udmap 0xf007>,
263b8545f9dSAswath Govindraju		       <&mcu_udmap 0x7000>;
264b8545f9dSAswath Govindraju		dma-names = "tx0", "tx1", "tx2", "tx3",
265b8545f9dSAswath Govindraju			    "tx4", "tx5", "tx6", "tx7",
266b8545f9dSAswath Govindraju			    "rx";
267b8545f9dSAswath Govindraju
268b8545f9dSAswath Govindraju		ethernet-ports {
269b8545f9dSAswath Govindraju			#address-cells = <1>;
270b8545f9dSAswath Govindraju			#size-cells = <0>;
271b8545f9dSAswath Govindraju
272b8545f9dSAswath Govindraju			cpsw_port1: port@1 {
273b8545f9dSAswath Govindraju				reg = <1>;
274b8545f9dSAswath Govindraju				ti,mac-only;
275b8545f9dSAswath Govindraju				label = "port1";
276b8545f9dSAswath Govindraju				ti,syscon-efuse = <&mcu_conf 0x200>;
277b8545f9dSAswath Govindraju				phys = <&phy_gmii_sel 1>;
278b8545f9dSAswath Govindraju			};
279b8545f9dSAswath Govindraju		};
280b8545f9dSAswath Govindraju
281b8545f9dSAswath Govindraju		davinci_mdio: mdio@f00 {
282b8545f9dSAswath Govindraju			compatible = "ti,cpsw-mdio","ti,davinci_mdio";
283b8545f9dSAswath Govindraju			reg = <0x0 0xf00 0x0 0x100>;
284b8545f9dSAswath Govindraju			#address-cells = <1>;
285b8545f9dSAswath Govindraju			#size-cells = <0>;
286b8545f9dSAswath Govindraju			clocks = <&k3_clks 29 28>;
287b8545f9dSAswath Govindraju			clock-names = "fck";
288b8545f9dSAswath Govindraju			bus_freq = <1000000>;
289b8545f9dSAswath Govindraju		};
290b8545f9dSAswath Govindraju
291b8545f9dSAswath Govindraju		cpts@3d000 {
292b8545f9dSAswath Govindraju			compatible = "ti,am65-cpts";
293b8545f9dSAswath Govindraju			reg = <0x0 0x3d000 0x0 0x400>;
294b8545f9dSAswath Govindraju			clocks = <&k3_clks 29 3>;
295b8545f9dSAswath Govindraju			clock-names = "cpts";
296b8545f9dSAswath Govindraju			interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>;
297b8545f9dSAswath Govindraju			interrupt-names = "cpts";
298b8545f9dSAswath Govindraju			ti,cpts-ext-ts-inputs = <4>;
299b8545f9dSAswath Govindraju			ti,cpts-periodic-outputs = <2>;
300b8545f9dSAswath Govindraju		};
301b8545f9dSAswath Govindraju	};
302b8545f9dSAswath Govindraju};
303