0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Copyright 2018 Luxul Inc.
0004 */
0005
0006 /dts-v1/;
0007
0008 #include "bcm47094.dtsi"
0009 #include "bcm5301x-nand-cs0-bch8.dtsi"
0010
0011 / {
0012 compatible = "luxul,xwr-3150-v1", "brcm,bcm47094", "brcm,bcm4708";
0013 model = "Luxul XWR-3150 V1";
0014
0015 chosen {
0016 bootargs = "earlycon";
0017 };
0018
0019 memory@0 {
0020 device_type = "memory";
0021 reg = <0x00000000 0x08000000>,
0022 <0x88000000 0x18000000>;
0023 };
0024
0025 nvram@1eff0000 {
0026 compatible = "brcm,nvram";
0027 reg = <0x1eff0000 0x10000>;
0028
0029 et0macaddr: et0macaddr {
0030 };
0031 };
0032
0033 leds {
0034 compatible = "gpio-leds";
0035
0036 power {
0037 label = "bcm53xx:green:power";
0038 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
0039 linux,default-trigger = "default-on";
0040 };
0041
0042 usb3 {
0043 label = "bcm53xx:green:usb3";
0044 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
0045 trigger-sources = <&ohci_port1>, <&ehci_port1>,
0046 <&xhci_port1>;
0047 linux,default-trigger = "usbport";
0048 };
0049
0050 status {
0051 label = "bcm53xx:green:status";
0052 gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
0053 linux,default-trigger = "timer";
0054 };
0055
0056 2ghz {
0057 label = "bcm53xx:green:2ghz";
0058 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
0059 };
0060
0061 5ghz {
0062 label = "bcm53xx:green:5ghz";
0063 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
0064 };
0065 };
0066
0067 gpio-keys {
0068 compatible = "gpio-keys";
0069
0070 button-restart {
0071 label = "Reset";
0072 linux,code = <KEY_RESTART>;
0073 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0074 };
0075 };
0076 };
0077
0078 &gmac0 {
0079 nvmem-cells = <&et0macaddr>;
0080 nvmem-cell-names = "mac-address";
0081 };
0082
0083 &usb3 {
0084 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
0085 };
0086
0087 &usb3_phy {
0088 status = "okay";
0089 };
0090
0091 &spi_nor {
0092 status = "okay";
0093 };
0094
0095 &srab {
0096 status = "okay";
0097
0098 ports {
0099 port@0 {
0100 reg = <0>;
0101 label = "lan4";
0102 };
0103
0104 port@1 {
0105 reg = <1>;
0106 label = "lan3";
0107 };
0108
0109 port@2 {
0110 reg = <2>;
0111 label = "lan2";
0112 };
0113
0114 port@3 {
0115 reg = <3>;
0116 label = "lan1";
0117 };
0118
0119 port@4 {
0120 reg = <4>;
0121 label = "wan";
0122 };
0123
0124 port@5 {
0125 reg = <5>;
0126 label = "cpu";
0127 ethernet = <&gmac0>;
0128 };
0129 };
0130 };