1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Linaro Ltd.
4 * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
7 #include <dt-bindings/clock/bm1880-clock.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/reset/bitmain,bm1880-reset.h>
12 compatible = "bitmain,bm1880";
13 interrupt-parent = <&gic>;
23 compatible = "arm,cortex-a53";
25 enable-method = "psci";
30 compatible = "arm,cortex-a53";
32 enable-method = "psci";
42 reg = <0x1 0x00000000 0x0 0x20000>;
47 reg = <0x1 0x30000000 0x0 0x08000000>; // 128M
52 reg = <0x1 0x38000000 0x0 0x08000000>; // 128M
58 compatible = "arm,psci-0.2";
63 compatible = "arm,armv8-timer";
64 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
65 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
66 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
67 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
71 compatible = "fixed-clock";
72 clock-frequency = <25000000>;
77 compatible = "simple-bus";
82 gic: interrupt-controller@50001000 {
83 compatible = "arm,gic-400";
84 reg = <0x0 0x50001000 0x0 0x1000>,
85 <0x0 0x50002000 0x0 0x2000>;
86 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>;
88 #interrupt-cells = <3>;
91 sctrl: system-controller@50010000 {
92 compatible = "bitmain,bm1880-sctrl", "syscon",
94 reg = <0x0 0x50010000 0x0 0x1000>;
97 ranges = <0x0 0x0 0x50010000 0x1000>;
99 pinctrl: pinctrl@400 {
100 compatible = "bitmain,bm1880-pinctrl";
104 clk: clock-controller@e8 {
105 compatible = "bitmain,bm1880-clk";
106 reg = <0xe8 0x0c>, <0x800 0xb0>;
107 reg-names = "pll", "sys";
113 rst: reset-controller@c00 {
114 compatible = "bitmain,bm1880-reset";
120 gpio0: gpio@50027000 {
121 #address-cells = <1>;
123 compatible = "snps,dw-apb-gpio";
124 reg = <0x0 0x50027000 0x0 0x400>;
126 porta: gpio-controller@0 {
127 compatible = "snps,dw-apb-gpio-port";
130 snps,nr-gpios = <32>;
132 interrupt-controller;
133 #interrupt-cells = <2>;
134 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
138 gpio1: gpio@50027400 {
139 #address-cells = <1>;
141 compatible = "snps,dw-apb-gpio";
142 reg = <0x0 0x50027400 0x0 0x400>;
144 portb: gpio-controller@0 {
145 compatible = "snps,dw-apb-gpio-port";
148 snps,nr-gpios = <32>;
150 interrupt-controller;
151 #interrupt-cells = <2>;
152 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
156 gpio2: gpio@50027800 {
157 #address-cells = <1>;
159 compatible = "snps,dw-apb-gpio";
160 reg = <0x0 0x50027800 0x0 0x400>;
162 portc: gpio-controller@0 {
163 compatible = "snps,dw-apb-gpio-port";
168 interrupt-controller;
169 #interrupt-cells = <2>;
170 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
174 uart0: serial@58018000 {
175 compatible = "snps,dw-apb-uart";
176 reg = <0x0 0x58018000 0x0 0x2000>;
177 clocks = <&clk BM1880_CLK_UART_500M>,
178 <&clk BM1880_CLK_APB_UART>;
179 clock-names = "baudclk", "apb_pclk";
180 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
183 resets = <&rst BM1880_RST_UART0_1_CLK>;
187 uart1: serial@5801A000 {
188 compatible = "snps,dw-apb-uart";
189 reg = <0x0 0x5801a000 0x0 0x2000>;
190 clocks = <&clk BM1880_CLK_UART_500M>,
191 <&clk BM1880_CLK_APB_UART>;
192 clock-names = "baudclk", "apb_pclk";
193 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
196 resets = <&rst BM1880_RST_UART0_1_ACLK>;
200 uart2: serial@5801C000 {
201 compatible = "snps,dw-apb-uart";
202 reg = <0x0 0x5801c000 0x0 0x2000>;
203 clocks = <&clk BM1880_CLK_UART_500M>,
204 <&clk BM1880_CLK_APB_UART>;
205 clock-names = "baudclk", "apb_pclk";
206 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
209 resets = <&rst BM1880_RST_UART2_3_CLK>;
213 uart3: serial@5801E000 {
214 compatible = "snps,dw-apb-uart";
215 reg = <0x0 0x5801e000 0x0 0x2000>;
216 clocks = <&clk BM1880_CLK_UART_500M>,
217 <&clk BM1880_CLK_APB_UART>;
218 clock-names = "baudclk", "apb_pclk";
219 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
222 resets = <&rst BM1880_RST_UART2_3_ACLK>;