1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Copyright 2018 Luxul Inc. 4 */ 5 6/dts-v1/; 7 8#include "bcm47094.dtsi" 9#include "bcm5301x-nand-cs0-bch8.dtsi" 10 11/ { 12 compatible = "luxul,xwr-3150-v1", "brcm,bcm47094", "brcm,bcm4708"; 13 model = "Luxul XWR-3150 V1"; 14 15 chosen { 16 bootargs = "earlycon"; 17 }; 18 19 memory@0 { 20 device_type = "memory"; 21 reg = <0x00000000 0x08000000>, 22 <0x88000000 0x18000000>; 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-usb3 { 44 label = "bcm53xx:green:usb3"; 45 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; 46 trigger-sources = <&ohci_port1>, <&ehci_port1>, 47 <&xhci_port1>; 48 linux,default-trigger = "usbport"; 49 }; 50 51 led-status { 52 label = "bcm53xx:green:status"; 53 gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>; 54 linux,default-trigger = "timer"; 55 }; 56 57 led-2ghz { 58 label = "bcm53xx:green:2ghz"; 59 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; 60 }; 61 62 led-5ghz { 63 label = "bcm53xx:green:5ghz"; 64 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 65 }; 66 }; 67 68 gpio-keys { 69 compatible = "gpio-keys"; 70 71 button-restart { 72 label = "Reset"; 73 linux,code = <KEY_RESTART>; 74 gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; 75 }; 76 }; 77}; 78 79&gmac0 { 80 nvmem-cells = <&et0macaddr 0>; 81 nvmem-cell-names = "mac-address"; 82}; 83 84&usb3 { 85 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>; 86}; 87 88&usb3_phy { 89 status = "okay"; 90}; 91 92&spi_nor { 93 status = "okay"; 94}; 95 96&srab { 97 status = "okay"; 98 99 ports { 100 port@0 { 101 label = "lan4"; 102 }; 103 104 port@1 { 105 label = "lan3"; 106 }; 107 108 port@2 { 109 label = "lan2"; 110 }; 111 112 port@3 { 113 label = "lan1"; 114 }; 115 116 port@4 { 117 label = "wan"; 118 nvmem-cells = <&et0macaddr 5>; 119 nvmem-cell-names = "mac-address"; 120 }; 121 122 port@5 { 123 label = "cpu"; 124 }; 125 }; 126}; 127