blob: 85fb14b13bd837c13e41f354a6ff18e235dab696 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Wills Wang6a7b52b2016-03-16 16:59:59 +08002/*
3 * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
Wills Wang6a7b52b2016-03-16 16:59:59 +08004 */
5
6#include <dt-bindings/interrupt-controller/irq.h>
7#include "skeleton.dtsi"
8
9/ {
10 compatible = "qca,ar933x";
11
12 #address-cells = <1>;
13 #size-cells = <1>;
14
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "mips,mips24Kc";
22 reg = <0>;
23 };
24 };
25
26 clocks {
27 #address-cells = <1>;
28 #size-cells = <1>;
29 ranges;
30
31 xtal: xtal {
32 #clock-cells = <0>;
33 compatible = "fixed-clock";
34 clock-output-names = "xtal";
35 };
36 };
37
38 pinctrl {
39 u-boot,dm-pre-reloc;
40 compatible = "qca,ar933x-pinctrl";
41 ranges;
42 #address-cells = <1>;
43 #size-cells = <1>;
44 reg = <0x18040000 0x100>;
45 };
46
47 ahb {
48 compatible = "simple-bus";
49 ranges;
50
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 apb {
55 compatible = "simple-bus";
56 ranges;
57
58 #address-cells = <1>;
59 #size-cells = <1>;
60
Marek Vasutc31558782016-05-06 20:10:36 +020061 ehci0: ehci@1b000100 {
62 compatible = "generic-ehci";
63 reg = <0x1b000100 0x100>;
64
65 status = "disabled";
66 };
67
Wills Wang6a7b52b2016-03-16 16:59:59 +080068 uart0: uart@18020000 {
69 compatible = "qca,ar9330-uart";
70 reg = <0x18020000 0x20>;
71 interrupts = <128 IRQ_TYPE_LEVEL_HIGH>;
72
73 status = "disabled";
74 };
Marek Vasut2986a9d2016-05-06 20:10:38 +020075
76 gmac0: eth@0x19000000 {
Wills Wang04583c62016-05-30 22:54:51 +080077 compatible = "qca,ag933x-mac";
Marek Vasut2986a9d2016-05-06 20:10:38 +020078 reg = <0x19000000 0x200>;
79 phy = <&phy0>;
80 phy-mode = "rmii";
81
82 status = "disabled";
83
84 mdio {
85 #address-cells = <1>;
86 #size-cells = <0>;
87 phy0: ethernet-phy@0 {
88 reg = <0>;
89 };
90 };
91 };
92
93 gmac1: eth@0x1a000000 {
Wills Wang04583c62016-05-30 22:54:51 +080094 compatible = "qca,ag933x-mac";
Marek Vasut2986a9d2016-05-06 20:10:38 +020095 reg = <0x1a000000 0x200>;
96 phy = <&phy0>;
97 phy-mode = "rgmii";
98
99 status = "disabled";
100 };
Wills Wang6a7b52b2016-03-16 16:59:59 +0800101 };
102
103 spi0: spi@1f000000 {
104 compatible = "qca,ar7100-spi";
105 reg = <0x1f000000 0x10>;
106 interrupts = <129 IRQ_TYPE_LEVEL_HIGH>;
107
108 status = "disabled";
109
110 #address-cells = <1>;
111 #size-cells = <0>;
112 };
113 };
114};