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-3100-v1", "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 et0macaddr: et0macaddr { 30 #nvmem-cell-cells = <1>; 31 }; 32 }; 33 34 leds { 35 compatible = "gpio-leds"; 36 37 led-power { 38 label = "bcm53xx:green:power"; 39 gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>; 40 linux,default-trigger = "default-on"; 41 }; 42 43 led-lan3 { 44 label = "bcm53xx:green:lan3"; 45 gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; 46 }; 47 48 led-lan4 { 49 label = "bcm53xx:green:lan4"; 50 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; 51 }; 52 53 led-wan { 54 label = "bcm53xx:green:wan"; 55 gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 56 }; 57 58 led-lan1 { 59 label = "bcm53xx:green:lan1"; 60 gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; 61 }; 62 63 led-lan2 { 64 label = "bcm53xx:green:lan2"; 65 gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>; 66 }; 67 68 led-usb3 { 69 label = "bcm53xx:green:usb3"; 70 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; 71 trigger-sources = <&ohci_port1>, <&ehci_port1>, 72 <&xhci_port1>; 73 linux,default-trigger = "usbport"; 74 }; 75 76 led-status { 77 label = "bcm53xx:green:status"; 78 gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; 79 linux,default-trigger = "timer"; 80 }; 81 82 led-2ghz { 83 label = "bcm53xx:green:2ghz"; 84 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; 85 }; 86 87 led-5ghz { 88 label = "bcm53xx:green:5ghz"; 89 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 90 }; 91 }; 92 93 gpio-keys { 94 compatible = "gpio-keys"; 95 96 button-restart { 97 label = "Reset"; 98 linux,code = <KEY_RESTART>; 99 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; 100 }; 101 }; 102}; 103 104&usb3 { 105 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; 106}; 107 108&gmac0 { 109 nvmem-cells = <&et0macaddr 0>; 110 nvmem-cell-names = "mac-address"; 111}; 112 113&spi_nor { 114 status = "okay"; 115}; 116 117&usb3_phy { 118 status = "okay"; 119}; 120 121&srab { 122 status = "okay"; 123 124 ports { 125 port@0 { 126 label = "lan4"; 127 }; 128 129 port@1 { 130 label = "lan3"; 131 }; 132 133 port@2 { 134 label = "lan2"; 135 }; 136 137 port@3 { 138 label = "lan1"; 139 }; 140 141 port@4 { 142 label = "wan"; 143 nvmem-cells = <&et0macaddr 5>; 144 nvmem-cell-names = "mac-address"; 145 }; 146 147 port@5 { 148 label = "cpu"; 149 }; 150 }; 151}; 152