Loading...
1/*
2 * Hisilicon Ltd. HiP01 SoC
3 *
4 * Copyright (c) 2014 Hisilicon Ltd.
5 * Copyright (c) 2014 Huawei Ltd.
6 *
7 * Author: Wang Long <long.wanglong@huawei.com>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13
14/ {
15 interrupt-parent = <&gic>;
16 #address-cells = <1>;
17 #size-cells = <1>;
18
19 gic: interrupt-controller@1e001000 {
20 compatible = "arm,cortex-a9-gic";
21 #interrupt-cells = <3>;
22 #address-cells = <0>;
23 interrupt-controller;
24 reg = <0x1a001000 0x1000>, <0x1a000100 0x1000>;
25 };
26
27 hisi_refclk144mhz: refclk144mkhz {
28 compatible = "fixed-clock";
29 #clock-cells = <0>;
30 clock-frequency = <144000000>;
31 clock-output-names = "hisi:refclk144khz";
32 };
33
34 soc {
35 #address-cells = <1>;
36 #size-cells = <1>;
37 compatible = "simple-bus";
38 interrupt-parent = <&gic>;
39 ranges = <0 0x10000000 0x20000000>;
40
41 amba {
42 #address-cells = <1>;
43 #size-cells = <1>;
44 compatible = "simple-bus";
45 ranges;
46
47 uart0: uart@10001000 {
48 compatible = "snps,dw-apb-uart";
49 reg = <0x10001000 0x1000>;
50 clocks = <&hisi_refclk144mhz>;
51 clock-names = "apb_pclk";
52 reg-shift = <2>;
53 interrupts = <0 32 4>;
54 status = "disabled";
55 };
56
57 uart1: uart@10002000 {
58 compatible = "snps,dw-apb-uart";
59 reg = <0x10002000 0x1000>;
60 clocks = <&hisi_refclk144mhz>;
61 clock-names = "apb_pclk";
62 reg-shift = <2>;
63 interrupts = <0 33 4>;
64 status = "disabled";
65 };
66
67 uart2: uart@10003000 {
68 compatible = "snps,dw-apb-uart";
69 reg = <0x10003000 0x1000>;
70 clocks = <&hisi_refclk144mhz>;
71 clock-names = "apb_pclk";
72 reg-shift = <2>;
73 interrupts = <0 34 4>;
74 status = "disabled";
75 };
76
77 uart3: uart@10006000 {
78 compatible = "snps,dw-apb-uart";
79 reg = <0x10006000 0x1000>;
80 clocks = <&hisi_refclk144mhz>;
81 clock-names = "apb_pclk";
82 reg-shift = <2>;
83 interrupts = <0 4 4>;
84 status = "disabled";
85 };
86 };
87
88 system-controller@10000000 {
89 compatible = "hisilicon,hip01-sysctrl", "hisilicon,sysctrl";
90 reg = <0x10000000 0x1000>;
91 reboot-offset = <0x4>;
92 };
93
94 global_timer@a000200 {
95 compatible = "arm,cortex-a9-global-timer";
96 reg = <0x0a000200 0x100>;
97 interrupts = <1 11 0xf04>;
98 clocks = <&hisi_refclk144mhz>;
99 };
100
101 local_timer@a000600 {
102 compatible = "arm,cortex-a9-twd-timer";
103 reg = <0x0a000600 0x100>;
104 interrupts = <1 13 0xf04>;
105 clocks = <&hisi_refclk144mhz>;
106 };
107 };
108};
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * HiSilicon Ltd. HiP01 SoC
4 *
5 * Copyright (c) 2014 HiSilicon Ltd.
6 * Copyright (c) 2014 Huawei Ltd.
7 *
8 * Author: Wang Long <long.wanglong@huawei.com>
9 */
10
11/ {
12 interrupt-parent = <&gic>;
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 gic: interrupt-controller@1e001000 {
17 compatible = "arm,cortex-a9-gic";
18 #interrupt-cells = <3>;
19 #address-cells = <0>;
20 interrupt-controller;
21 reg = <0x1a001000 0x1000>, <0x1a000100 0x1000>;
22 };
23
24 hisi_refclk144mhz: refclk144mkhz {
25 compatible = "fixed-clock";
26 #clock-cells = <0>;
27 clock-frequency = <144000000>;
28 clock-output-names = "hisi:refclk144khz";
29 };
30
31 soc {
32 #address-cells = <1>;
33 #size-cells = <1>;
34 compatible = "simple-bus";
35 interrupt-parent = <&gic>;
36 ranges = <0 0x10000000 0x20000000>;
37
38 amba-bus {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 compatible = "simple-bus";
42 ranges;
43
44 uart0: serial@10001000 {
45 compatible = "snps,dw-apb-uart";
46 reg = <0x10001000 0x1000>;
47 clocks = <&hisi_refclk144mhz>, <&hisi_refclk144mhz>;
48 clock-names = "baudclk", "apb_pclk";
49 reg-shift = <2>;
50 interrupts = <0 32 4>;
51 status = "disabled";
52 };
53
54 uart1: serial@10002000 {
55 compatible = "snps,dw-apb-uart";
56 reg = <0x10002000 0x1000>;
57 clocks = <&hisi_refclk144mhz>, <&hisi_refclk144mhz>;
58 clock-names = "baudclk", "apb_pclk";
59 reg-shift = <2>;
60 interrupts = <0 33 4>;
61 status = "disabled";
62 };
63
64 uart2: serial@10003000 {
65 compatible = "snps,dw-apb-uart";
66 reg = <0x10003000 0x1000>;
67 clocks = <&hisi_refclk144mhz>, <&hisi_refclk144mhz>;
68 clock-names = "baudclk", "apb_pclk";
69 reg-shift = <2>;
70 interrupts = <0 34 4>;
71 status = "disabled";
72 };
73
74 uart3: serial@10006000 {
75 compatible = "snps,dw-apb-uart";
76 reg = <0x10006000 0x1000>;
77 clocks = <&hisi_refclk144mhz>, <&hisi_refclk144mhz>;
78 clock-names = "baudclk", "apb_pclk";
79 reg-shift = <2>;
80 interrupts = <0 4 4>;
81 status = "disabled";
82 };
83 };
84
85 system-controller@10000000 {
86 compatible = "hisilicon,hip01-sysctrl", "hisilicon,sysctrl";
87 reg = <0x10000000 0x1000>;
88 reboot-offset = <0x4>;
89 };
90
91 global_timer@a000200 {
92 compatible = "arm,cortex-a9-global-timer";
93 reg = <0x0a000200 0x100>;
94 interrupts = <1 11 0xf04>;
95 clocks = <&hisi_refclk144mhz>;
96 };
97
98 local_timer@a000600 {
99 compatible = "arm,cortex-a9-twd-timer";
100 reg = <0x0a000600 0x100>;
101 interrupts = <1 13 0xf04>;
102 clocks = <&hisi_refclk144mhz>;
103 };
104 };
105};