xref: /openbmc/u-boot/arch/mips/dts/ar933x.dtsi (revision cbd2fba1)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
4 */
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
61			ehci0: ehci@1b000100 {
62				compatible = "generic-ehci";
63				reg = <0x1b000100 0x100>;
64
65				status = "disabled";
66			};
67
68			uart0: uart@18020000 {
69				compatible = "qca,ar9330-uart";
70				reg = <0x18020000 0x20>;
71				interrupts = <128 IRQ_TYPE_LEVEL_HIGH>;
72
73				status = "disabled";
74			};
75
76			gmac0: eth@0x19000000 {
77				compatible = "qca,ag933x-mac";
78				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 {
94				compatible = "qca,ag933x-mac";
95				reg = <0x1a000000 0x200>;
96				phy = <&phy0>;
97				phy-mode = "rgmii";
98
99				status = "disabled";
100			};
101		};
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};
115