xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/amlogic/meson-a1.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*4882a593Smuzhiyun/*
3*4882a593Smuzhiyun * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
4*4882a593Smuzhiyun */
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/irq.h>
7*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/arm-gic.h>
8*4882a593Smuzhiyun#include <dt-bindings/gpio/meson-a1-gpio.h>
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun/ {
11*4882a593Smuzhiyun	compatible = "amlogic,a1";
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun	interrupt-parent = <&gic>;
14*4882a593Smuzhiyun	#address-cells = <2>;
15*4882a593Smuzhiyun	#size-cells = <2>;
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun	cpus {
18*4882a593Smuzhiyun		#address-cells = <2>;
19*4882a593Smuzhiyun		#size-cells = <0>;
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun		cpu0: cpu@0 {
22*4882a593Smuzhiyun			device_type = "cpu";
23*4882a593Smuzhiyun			compatible = "arm,cortex-a35";
24*4882a593Smuzhiyun			reg = <0x0 0x0>;
25*4882a593Smuzhiyun			enable-method = "psci";
26*4882a593Smuzhiyun			next-level-cache = <&l2>;
27*4882a593Smuzhiyun		};
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		cpu1: cpu@1 {
30*4882a593Smuzhiyun			device_type = "cpu";
31*4882a593Smuzhiyun			compatible = "arm,cortex-a35";
32*4882a593Smuzhiyun			reg = <0x0 0x1>;
33*4882a593Smuzhiyun			enable-method = "psci";
34*4882a593Smuzhiyun			next-level-cache = <&l2>;
35*4882a593Smuzhiyun		};
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun		l2: l2-cache0 {
38*4882a593Smuzhiyun			compatible = "cache";
39*4882a593Smuzhiyun		};
40*4882a593Smuzhiyun	};
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun	psci {
43*4882a593Smuzhiyun		compatible = "arm,psci-1.0";
44*4882a593Smuzhiyun		method = "smc";
45*4882a593Smuzhiyun	};
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun	reserved-memory {
48*4882a593Smuzhiyun		#address-cells = <2>;
49*4882a593Smuzhiyun		#size-cells = <2>;
50*4882a593Smuzhiyun		ranges;
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun		linux,cma {
53*4882a593Smuzhiyun			compatible = "shared-dma-pool";
54*4882a593Smuzhiyun			reusable;
55*4882a593Smuzhiyun			size = <0x0 0x800000>;
56*4882a593Smuzhiyun			alignment = <0x0 0x400000>;
57*4882a593Smuzhiyun			linux,cma-default;
58*4882a593Smuzhiyun		};
59*4882a593Smuzhiyun	};
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun	sm: secure-monitor {
62*4882a593Smuzhiyun		compatible = "amlogic,meson-gxbb-sm";
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun		pwrc: power-controller {
65*4882a593Smuzhiyun			compatible = "amlogic,meson-a1-pwrc";
66*4882a593Smuzhiyun			#power-domain-cells = <1>;
67*4882a593Smuzhiyun			status = "okay";
68*4882a593Smuzhiyun		};
69*4882a593Smuzhiyun	};
70*4882a593Smuzhiyun
71*4882a593Smuzhiyun	soc {
72*4882a593Smuzhiyun		compatible = "simple-bus";
73*4882a593Smuzhiyun		#address-cells = <2>;
74*4882a593Smuzhiyun		#size-cells = <2>;
75*4882a593Smuzhiyun		ranges;
76*4882a593Smuzhiyun
77*4882a593Smuzhiyun		apb: bus@fe000000 {
78*4882a593Smuzhiyun			compatible = "simple-bus";
79*4882a593Smuzhiyun			reg = <0x0 0xfe000000 0x0 0x1000000>;
80*4882a593Smuzhiyun			#address-cells = <2>;
81*4882a593Smuzhiyun			#size-cells = <2>;
82*4882a593Smuzhiyun			ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x1000000>;
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun
85*4882a593Smuzhiyun			reset: reset-controller@0 {
86*4882a593Smuzhiyun				compatible = "amlogic,meson-a1-reset";
87*4882a593Smuzhiyun				reg = <0x0 0x0 0x0 0x8c>;
88*4882a593Smuzhiyun				#reset-cells = <1>;
89*4882a593Smuzhiyun			};
90*4882a593Smuzhiyun
91*4882a593Smuzhiyun			periphs_pinctrl: pinctrl@0400 {
92*4882a593Smuzhiyun				compatible = "amlogic,meson-a1-periphs-pinctrl";
93*4882a593Smuzhiyun				#address-cells = <2>;
94*4882a593Smuzhiyun				#size-cells = <2>;
95*4882a593Smuzhiyun				ranges;
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun				gpio: bank@0400 {
98*4882a593Smuzhiyun					reg = <0x0 0x0400 0x0 0x003c>,
99*4882a593Smuzhiyun					      <0x0 0x0480 0x0 0x0118>;
100*4882a593Smuzhiyun					reg-names = "mux", "gpio";
101*4882a593Smuzhiyun					gpio-controller;
102*4882a593Smuzhiyun					#gpio-cells = <2>;
103*4882a593Smuzhiyun					gpio-ranges = <&periphs_pinctrl 0 0 62>;
104*4882a593Smuzhiyun				};
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun			};
107*4882a593Smuzhiyun
108*4882a593Smuzhiyun			uart_AO: serial@1c00 {
109*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-uart",
110*4882a593Smuzhiyun					     "amlogic,meson-ao-uart";
111*4882a593Smuzhiyun				reg = <0x0 0x1c00 0x0 0x18>;
112*4882a593Smuzhiyun				interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>;
113*4882a593Smuzhiyun				clocks = <&xtal>, <&xtal>, <&xtal>;
114*4882a593Smuzhiyun				clock-names = "xtal", "pclk", "baud";
115*4882a593Smuzhiyun				status = "disabled";
116*4882a593Smuzhiyun			};
117*4882a593Smuzhiyun
118*4882a593Smuzhiyun			uart_AO_B: serial@2000 {
119*4882a593Smuzhiyun				compatible = "amlogic,meson-gx-uart",
120*4882a593Smuzhiyun					     "amlogic,meson-ao-uart";
121*4882a593Smuzhiyun				reg = <0x0 0x2000 0x0 0x18>;
122*4882a593Smuzhiyun				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
123*4882a593Smuzhiyun				clocks = <&xtal>, <&xtal>, <&xtal>;
124*4882a593Smuzhiyun				clock-names = "xtal", "pclk", "baud";
125*4882a593Smuzhiyun				status = "disabled";
126*4882a593Smuzhiyun			};
127*4882a593Smuzhiyun		};
128*4882a593Smuzhiyun
129*4882a593Smuzhiyun		gic: interrupt-controller@ff901000 {
130*4882a593Smuzhiyun			compatible = "arm,gic-400";
131*4882a593Smuzhiyun			reg = <0x0 0xff901000 0x0 0x1000>,
132*4882a593Smuzhiyun			      <0x0 0xff902000 0x0 0x2000>,
133*4882a593Smuzhiyun			      <0x0 0xff904000 0x0 0x2000>,
134*4882a593Smuzhiyun			      <0x0 0xff906000 0x0 0x2000>;
135*4882a593Smuzhiyun			interrupt-controller;
136*4882a593Smuzhiyun			interrupts = <GIC_PPI 9
137*4882a593Smuzhiyun				(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
138*4882a593Smuzhiyun			#interrupt-cells = <3>;
139*4882a593Smuzhiyun			#address-cells = <0>;
140*4882a593Smuzhiyun		};
141*4882a593Smuzhiyun	};
142*4882a593Smuzhiyun
143*4882a593Smuzhiyun	timer {
144*4882a593Smuzhiyun		compatible = "arm,armv8-timer";
145*4882a593Smuzhiyun		interrupts = <GIC_PPI 13
146*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
147*4882a593Smuzhiyun			     <GIC_PPI 14
148*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
149*4882a593Smuzhiyun			     <GIC_PPI 11
150*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
151*4882a593Smuzhiyun			     <GIC_PPI 10
152*4882a593Smuzhiyun			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
153*4882a593Smuzhiyun	};
154*4882a593Smuzhiyun
155*4882a593Smuzhiyun	xtal: xtal-clk {
156*4882a593Smuzhiyun		compatible = "fixed-clock";
157*4882a593Smuzhiyun		clock-frequency = <24000000>;
158*4882a593Smuzhiyun		clock-output-names = "xtal";
159*4882a593Smuzhiyun		#clock-cells = <0>;
160*4882a593Smuzhiyun	};
161*4882a593Smuzhiyun};
162