xref: /freebsd/sys/contrib/device-tree/src/arm64/ti/k3-am65-wakeup.dtsi (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Device Tree Source for AM6 SoC Family Wakeup Domain peripherals
4c66ec88fSEmmanuel Vadot *
5c66ec88fSEmmanuel Vadot * Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
6c66ec88fSEmmanuel Vadot */
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadot&cbass_wakeup {
9c66ec88fSEmmanuel Vadot	dmsc: dmsc {
10c66ec88fSEmmanuel Vadot		compatible = "ti,am654-sci";
11c66ec88fSEmmanuel Vadot		ti,host-id = <12>;
12c66ec88fSEmmanuel Vadot		#address-cells = <1>;
13c66ec88fSEmmanuel Vadot		#size-cells = <1>;
14c66ec88fSEmmanuel Vadot		ranges;
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot		mbox-names = "rx", "tx";
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadot		mboxes= <&secure_proxy_main 11>,
19c66ec88fSEmmanuel Vadot			<&secure_proxy_main 13>;
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot		k3_pds: power-controller {
22c66ec88fSEmmanuel Vadot			compatible = "ti,sci-pm-domain";
23c66ec88fSEmmanuel Vadot			#power-domain-cells = <2>;
24c66ec88fSEmmanuel Vadot		};
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot		k3_clks: clocks {
27c66ec88fSEmmanuel Vadot			compatible = "ti,k2g-sci-clk";
28c66ec88fSEmmanuel Vadot			#clock-cells = <2>;
29c66ec88fSEmmanuel Vadot		};
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot		k3_reset: reset-controller {
32c66ec88fSEmmanuel Vadot			compatible = "ti,sci-reset";
33c66ec88fSEmmanuel Vadot			#reset-cells = <2>;
34c66ec88fSEmmanuel Vadot		};
35c66ec88fSEmmanuel Vadot	};
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot	chipid@43000014 {
38c66ec88fSEmmanuel Vadot		compatible = "ti,am654-chipid";
39c66ec88fSEmmanuel Vadot		reg = <0x43000014 0x4>;
40c66ec88fSEmmanuel Vadot	};
41c66ec88fSEmmanuel Vadot
42*6be33864SEmmanuel Vadot	wkup_pmx0: pinctrl@4301c000 {
43c66ec88fSEmmanuel Vadot		compatible = "pinctrl-single";
44c66ec88fSEmmanuel Vadot		reg = <0x4301c000 0x118>;
45c66ec88fSEmmanuel Vadot		#pinctrl-cells = <1>;
46c66ec88fSEmmanuel Vadot		pinctrl-single,register-width = <32>;
47c66ec88fSEmmanuel Vadot		pinctrl-single,function-mask = <0xffffffff>;
48c66ec88fSEmmanuel Vadot	};
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot	wkup_uart0: serial@42300000 {
51c66ec88fSEmmanuel Vadot		compatible = "ti,am654-uart";
52c66ec88fSEmmanuel Vadot		reg = <0x42300000 0x100>;
53c66ec88fSEmmanuel Vadot		reg-shift = <2>;
54c66ec88fSEmmanuel Vadot		reg-io-width = <4>;
55c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 697 IRQ_TYPE_LEVEL_HIGH>;
56c66ec88fSEmmanuel Vadot		clock-frequency = <48000000>;
57c66ec88fSEmmanuel Vadot		current-speed = <115200>;
58c66ec88fSEmmanuel Vadot		power-domains = <&k3_pds 150 TI_SCI_PD_EXCLUSIVE>;
59c66ec88fSEmmanuel Vadot	};
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot	wkup_i2c0: i2c@42120000 {
62c66ec88fSEmmanuel Vadot		compatible = "ti,am654-i2c", "ti,omap4-i2c";
63c66ec88fSEmmanuel Vadot		reg = <0x42120000 0x100>;
64c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 696 IRQ_TYPE_LEVEL_HIGH>;
65c66ec88fSEmmanuel Vadot		#address-cells = <1>;
66c66ec88fSEmmanuel Vadot		#size-cells = <0>;
67c66ec88fSEmmanuel Vadot		clock-names = "fck";
68c66ec88fSEmmanuel Vadot		clocks = <&k3_clks 115 1>;
69c66ec88fSEmmanuel Vadot		power-domains = <&k3_pds 115 TI_SCI_PD_EXCLUSIVE>;
70c66ec88fSEmmanuel Vadot	};
71c66ec88fSEmmanuel Vadot
72c66ec88fSEmmanuel Vadot	intr_wkup_gpio: interrupt-controller2 {
73c66ec88fSEmmanuel Vadot		compatible = "ti,sci-intr";
74c66ec88fSEmmanuel Vadot		ti,intr-trigger-type = <1>;
75c66ec88fSEmmanuel Vadot		interrupt-controller;
76c66ec88fSEmmanuel Vadot		interrupt-parent = <&gic500>;
77c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
78c66ec88fSEmmanuel Vadot		ti,sci = <&dmsc>;
79c66ec88fSEmmanuel Vadot		ti,sci-dev-id = <156>;
80c66ec88fSEmmanuel Vadot		ti,interrupt-ranges = <0 712 16>;
81c66ec88fSEmmanuel Vadot	};
82c66ec88fSEmmanuel Vadot
83*6be33864SEmmanuel Vadot	wkup_gpio0: gpio@42110000 {
84c66ec88fSEmmanuel Vadot		compatible = "ti,am654-gpio", "ti,keystone-gpio";
85c66ec88fSEmmanuel Vadot		reg = <0x42110000 0x100>;
86c66ec88fSEmmanuel Vadot		gpio-controller;
87c66ec88fSEmmanuel Vadot		#gpio-cells = <2>;
88c66ec88fSEmmanuel Vadot		interrupt-parent = <&intr_wkup_gpio>;
89c66ec88fSEmmanuel Vadot		interrupts = <60>, <61>, <62>, <63>;
90c66ec88fSEmmanuel Vadot		interrupt-controller;
91c66ec88fSEmmanuel Vadot		#interrupt-cells = <2>;
92c66ec88fSEmmanuel Vadot		ti,ngpio = <56>;
93c66ec88fSEmmanuel Vadot		ti,davinci-gpio-unbanked = <0>;
94c66ec88fSEmmanuel Vadot		clocks = <&k3_clks 59 0>;
95c66ec88fSEmmanuel Vadot		clock-names = "gpio";
96c66ec88fSEmmanuel Vadot	};
97c66ec88fSEmmanuel Vadot
98*6be33864SEmmanuel Vadot	wkup_vtm0: temperature-sensor@42050000 {
99c66ec88fSEmmanuel Vadot		compatible = "ti,am654-vtm";
100c66ec88fSEmmanuel Vadot		reg = <0x42050000 0x25c>;
101c66ec88fSEmmanuel Vadot		power-domains = <&k3_pds 80 TI_SCI_PD_EXCLUSIVE>;
102c66ec88fSEmmanuel Vadot		#thermal-sensor-cells = <1>;
103c66ec88fSEmmanuel Vadot	};
104c66ec88fSEmmanuel Vadot
105c66ec88fSEmmanuel Vadot	thermal_zones: thermal-zones {
106c66ec88fSEmmanuel Vadot		#include "k3-am654-industrial-thermal.dtsi"
107c66ec88fSEmmanuel Vadot	};
108c66ec88fSEmmanuel Vadot};
109