Linux-libre 5.7.3-gnu
[librecmc/linux-libre.git] / arch / arm64 / boot / dts / ti / k3-am65-wakeup.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for AM6 SoC Family Wakeup Domain peripherals
4  *
5  * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
6  */
7
8 &cbass_wakeup {
9         dmsc: dmsc {
10                 compatible = "ti,am654-sci";
11                 ti,host-id = <12>;
12                 #address-cells = <1>;
13                 #size-cells = <1>;
14                 ranges;
15
16                 mbox-names = "rx", "tx";
17
18                 mboxes= <&secure_proxy_main 11>,
19                         <&secure_proxy_main 13>;
20
21                 k3_pds: power-controller {
22                         compatible = "ti,sci-pm-domain";
23                         #power-domain-cells = <2>;
24                 };
25
26                 k3_clks: clocks {
27                         compatible = "ti,k2g-sci-clk";
28                         #clock-cells = <2>;
29                 };
30
31                 k3_reset: reset-controller {
32                         compatible = "ti,sci-reset";
33                         #reset-cells = <2>;
34                 };
35         };
36
37         wkup_pmx0: pinmux@4301c000 {
38                 compatible = "pinctrl-single";
39                 reg = <0x4301c000 0x118>;
40                 #pinctrl-cells = <1>;
41                 pinctrl-single,register-width = <32>;
42                 pinctrl-single,function-mask = <0xffffffff>;
43         };
44
45         wkup_uart0: serial@42300000 {
46                 compatible = "ti,am654-uart";
47                 reg = <0x42300000 0x100>;
48                 reg-shift = <2>;
49                 reg-io-width = <4>;
50                 interrupts = <GIC_SPI 697 IRQ_TYPE_LEVEL_HIGH>;
51                 clock-frequency = <48000000>;
52                 current-speed = <115200>;
53                 power-domains = <&k3_pds 150 TI_SCI_PD_EXCLUSIVE>;
54         };
55
56         wkup_i2c0: i2c@42120000 {
57                 compatible = "ti,am654-i2c", "ti,omap4-i2c";
58                 reg = <0x42120000 0x100>;
59                 interrupts = <GIC_SPI 696 IRQ_TYPE_LEVEL_HIGH>;
60                 #address-cells = <1>;
61                 #size-cells = <0>;
62                 clock-names = "fck";
63                 clocks = <&k3_clks 115 1>;
64                 power-domains = <&k3_pds 115 TI_SCI_PD_EXCLUSIVE>;
65         };
66
67         intr_wkup_gpio: interrupt-controller2 {
68                 compatible = "ti,sci-intr";
69                 ti,intr-trigger-type = <1>;
70                 interrupt-controller;
71                 interrupt-parent = <&gic500>;
72                 #interrupt-cells = <2>;
73                 ti,sci = <&dmsc>;
74                 ti,sci-dst-id = <56>;
75                 ti,sci-rm-range-girq = <0x4>;
76         };
77
78         wkup_gpio0: wkup_gpio0@42110000 {
79                 compatible = "ti,am654-gpio", "ti,keystone-gpio";
80                 reg = <0x42110000 0x100>;
81                 gpio-controller;
82                 #gpio-cells = <2>;
83                 interrupt-parent = <&intr_wkup_gpio>;
84                 interrupts = <59 128>, <59 129>, <59 130>, <59 131>;
85                 interrupt-controller;
86                 #interrupt-cells = <2>;
87                 ti,ngpio = <56>;
88                 ti,davinci-gpio-unbanked = <0>;
89                 clocks = <&k3_clks 59 0>;
90                 clock-names = "gpio";
91         };
92 };