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