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