1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2017 Luxul Inc.
4 */
5
6/dts-v1/;
7
8#include "bcm47081.dtsi"
9#include "bcm5301x-nand-cs0-bch4.dtsi"
10
11/ {
12	compatible = "luxul,xwr-1200v1", "brcm,bcm47081", "brcm,bcm4708";
13	model = "Luxul XWR-1200 V1";
14
15	chosen {
16		bootargs = "console=ttyS0,115200";
17	};
18
19	memory@0 {
20		device_type = "memory";
21		reg = <0x00000000 0x08000000>;
22	};
23
24	nvram@1eff0000 {
25		compatible = "brcm,nvram";
26		reg = <0x1eff0000 0x10000>;
27	};
28
29	leds {
30		compatible = "gpio-leds";
31
32		power {
33			label = "bcm53xx:green:power";
34			gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
35			linux,default-trigger = "default-on";
36		};
37
38		lan3 {
39			label = "bcm53xx:green:lan3";
40			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
41			linux,default-trigger = "none";
42		};
43
44		lan4 {
45			label = "bcm53xx:green:lan4";
46			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
47			linux,default-trigger = "none";
48		};
49
50		wan {
51			label = "bcm53xx:green:wan";
52			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
53			linux,default-trigger = "none";
54		};
55
56		lan2 {
57			label = "bcm53xx:green:lan2";
58			gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
59			linux,default-trigger = "none";
60		};
61
62		usb {
63			label = "bcm53xx:green:usb";
64			gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
65			trigger-sources = <&ohci_port2>, <&ehci_port2>;
66			linux,default-trigger = "usbport";
67		};
68
69		status {
70			label = "bcm53xx:green:status";
71			gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
72			linux,default-trigger = "timer";
73		};
74
75		2ghz {
76			label = "bcm53xx:green:2ghz";
77			gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
78			linux,default-trigger = "none";
79		};
80
81		5ghz {
82			label = "bcm53xx:green:5ghz";
83			gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
84			linux,default-trigger = "none";
85		};
86
87		lan1 {
88			label = "bcm53xx:green:lan1";
89			gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
90			linux,default-trigger = "none";
91		};
92	};
93
94	gpio-keys {
95		compatible = "gpio-keys";
96
97		restart {
98			label = "Reset";
99			linux,code = <KEY_RESTART>;
100			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
101		};
102	};
103};
104
105&usb2 {
106	vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
107};
108
109&spi_nor {
110	status = "okay";
111};
112
113&srab {
114	status = "okay";
115
116	ports {
117		port@0 {
118			reg = <0>;
119			label = "lan4";
120		};
121
122		port@1 {
123			reg = <1>;
124			label = "lan3";
125		};
126
127		port@2 {
128			reg = <2>;
129			label = "lan2";
130		};
131
132		port@3 {
133			reg = <3>;
134			label = "lan1";
135		};
136
137		port@4 {
138			reg = <4>;
139			label = "wan";
140		};
141
142		port@5 {
143			reg = <5>;
144			label = "cpu";
145			ethernet = <&gmac0>;
146		};
147	};
148};
149