xref: /linux/scripts/dtc/include-prefixes/arm64/amlogic/amlogic-s7.dtsi (revision 115e74a29b530d121891238e9551c4bcdf7b04b5)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2025 Amlogic, Inc. All rights reserved.
4 */
5
6#include <dt-bindings/interrupt-controller/irq.h>
7#include <dt-bindings/interrupt-controller/arm-gic.h>
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/pinctrl/amlogic,pinctrl.h>
10
11/ {
12	cpus {
13		#address-cells = <2>;
14		#size-cells = <0>;
15
16		cpu0: cpu@0 {
17			device_type = "cpu";
18			compatible = "arm,cortex-a55";
19			reg = <0x0 0x0>;
20			enable-method = "psci";
21		};
22
23		cpu1: cpu@100 {
24			device_type = "cpu";
25			compatible = "arm,cortex-a55";
26			reg = <0x0 0x100>;
27			enable-method = "psci";
28		};
29
30		cpu2: cpu@200 {
31			device_type = "cpu";
32			compatible = "arm,cortex-a55";
33			reg = <0x0 0x200>;
34			enable-method = "psci";
35		};
36
37		cpu3: cpu@300 {
38			device_type = "cpu";
39			compatible = "arm,cortex-a55";
40			reg = <0x0 0x300>;
41			enable-method = "psci";
42		};
43
44	};
45
46	timer {
47		compatible = "arm,armv8-timer";
48		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
49			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
50			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
51			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
52	};
53
54	psci {
55		compatible = "arm,psci-1.0";
56		method = "smc";
57	};
58
59	xtal: xtal-clk {
60		compatible = "fixed-clock";
61		clock-frequency = <24000000>;
62		clock-output-names = "xtal";
63		#clock-cells = <0>;
64	};
65
66	soc {
67		compatible = "simple-bus";
68		#address-cells = <2>;
69		#size-cells = <2>;
70		ranges;
71
72		gic: interrupt-controller@fff01000 {
73			compatible = "arm,gic-400";
74			#interrupt-cells = <3>;
75			#address-cells = <0>;
76			interrupt-controller;
77			reg = <0x0 0xfff01000 0 0x1000>,
78			      <0x0 0xfff02000 0 0x0100>;
79			interrupts = <GIC_PPI 9 0xf04>;
80		};
81
82		apb: bus@fe000000 {
83			compatible = "simple-bus";
84			reg = <0x0 0xfe000000 0x0 0x480000>;
85			#address-cells = <2>;
86			#size-cells = <2>;
87			ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>;
88
89			uart_b: serial@7a000 {
90				compatible = "amlogic,s7-uart",
91					     "amlogic,meson-s4-uart";
92				reg = <0x0 0x7a000 0x0 0x18>;
93				interrupts = <GIC_SPI 169 IRQ_TYPE_EDGE_RISING>;
94				clocks = <&xtal>, <&xtal>, <&xtal>;
95				clock-names = "xtal", "pclk", "baud";
96				status = "disabled";
97			};
98
99			periphs_pinctrl: pinctrl@4000 {
100				compatible = "amlogic,pinctrl-s7";
101				#address-cells = <2>;
102				#size-cells = <2>;
103				ranges = <0x0 0x0 0x0 0x4000 0x0 0x340>;
104
105				gpioz: gpio@c0 {
106					reg = <0 0xc0 0 0x20>, <0 0x18 0 0x8>;
107					reg-names = "gpio", "mux";
108					gpio-controller;
109					#gpio-cells = <2>;
110					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_Z<<8) 13>;
111				};
112
113				gpiox: gpio@100 {
114					reg = <0 0x100 0 0x30>, <0 0xc 0 0x8>;
115					reg-names = "gpio", "mux";
116					gpio-controller;
117					#gpio-cells = <2>;
118					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_X<<8) 20>;
119				};
120
121				gpioh: gpio@140 {
122					reg = <0 0x140 0 0x20>, <0 0x2c 0 0x8>;
123					reg-names = "gpio", "mux";
124					gpio-controller;
125					#gpio-cells = <2>;
126					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_H<<8) 12>;
127				};
128
129				gpiod: gpio@180 {
130					reg = <0 0x180 0 0x20>, <0 0x40 0 0x8>;
131					reg-names = "gpio", "mux";
132					gpio-controller;
133					#gpio-cells = <2>;
134					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_D<<8) 12>;
135				};
136
137				gpioe: gpio@1c0 {
138					reg = <0 0x1c0 0 0x20>, <0 0x48 0 0x4>;
139					reg-names = "gpio", "mux";
140					gpio-controller;
141					#gpio-cells = <2>;
142					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_E<<8) 2>;
143				};
144
145				gpioc: gpio@200 {
146					reg = <0 0x200 0 0x20>, <0 0x24 0 0x4>;
147					reg-names = "gpio", "mux";
148					gpio-controller;
149					#gpio-cells = <2>;
150					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_C<<8) 8>;
151				};
152
153				gpiob: gpio@240 {
154					reg = <0 0x240 0 0x20>, <0 0x0 0 0x8>;
155					reg-names = "gpio", "mux";
156					gpio-controller;
157					#gpio-cells = <2>;
158					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_B<<8) 14>;
159				};
160
161				test_n: gpio@2c0 {
162					reg = <0 0x2c0 0 0x20>;
163					reg-names = "gpio";
164					gpio-controller;
165					#gpio-cells = <2>;
166					gpio-ranges =
167						<&periphs_pinctrl 0 (AMLOGIC_GPIO_TEST_N<<8) 1>;
168				};
169
170				gpiocc: gpio@300 {
171					reg = <0 0x300 0 0x20>, <0 0x14 0 0x4>;
172					reg-names = "gpio", "mux";
173					gpio-controller;
174					#gpio-cells = <2>;
175					gpio-ranges = <&periphs_pinctrl 0 (AMLOGIC_GPIO_CC<<8) 2>;
176				};
177			};
178		};
179	};
180};
181