1 // SPDX-License-Identifier: GPL-2.0-or-later O 2 /* 3 * Device tree for D-Link DIR-890L 4 * D-Link calls this board "WRGAC36" 5 * this router has the same looks and form fac 6 * 7 * Some differences from DIR-885L include a se 8 * for USB2 and USB3, a separate VCC supply fo 9 * router/extender switch is mounted (there is 10 * PCB) so this device is a pure router. Also 11 * order. 12 * 13 * Based on the device tree for DIR-885L 14 * Copyright (C) 2016 Rafał Miłecki <zajec5@g 15 * Copyright (C) 2022 Linus Walleij 16 */ 17 18 /dts-v1/; 19 20 #include "bcm47094.dtsi" 21 #include "bcm5301x-nand-cs0-bch1.dtsi" 22 23 / { 24 compatible = "dlink,dir-890l", "brcm,b 25 model = "D-Link DIR-890L"; 26 27 chosen { 28 bootargs = "console=ttyS0,1152 29 }; 30 31 memory@0 { 32 device_type = "memory"; 33 reg = <0x00000000 0x08000000>, 34 <0x88000000 0x08000000>; 35 }; 36 37 leds { 38 /* 39 * LED information is derived 40 * conveniently lists all the 41 */ 42 compatible = "gpio-leds"; 43 44 led-power-white { 45 label = "bcm53xx:white 46 gpios = <&chipcommon 0 47 linux,default-trigger 48 }; 49 50 led-wan-white { 51 label = "bcm53xx:white 52 gpios = <&chipcommon 1 53 }; 54 55 led-power-amber { 56 label = "bcm53xx:amber 57 gpios = <&chipcommon 2 58 }; 59 60 led-wan-amber { 61 label = "bcm53xx:amber 62 gpios = <&chipcommon 3 63 }; 64 65 led-usb3-white { 66 label = "bcm53xx:white 67 gpios = <&chipcommon 8 68 trigger-sources = <&xh 69 linux,default-trigger 70 }; 71 72 led-usb2-white { 73 label = "bcm53xx:white 74 gpios = <&chipcommon 1 75 trigger-sources = <&oh 76 linux,default-trigger 77 }; 78 79 led-2ghz { 80 label = "bcm53xx:white 81 gpios = <&chipcommon 1 82 }; 83 84 led-5ghz { 85 label = "bcm53xx:white 86 gpios = <&chipcommon 1 87 }; 88 }; 89 90 gpio-keys { 91 compatible = "gpio-keys"; 92 93 button-wps { 94 label = "WPS"; 95 linux,code = <KEY_WPS_ 96 gpios = <&chipcommon 7 97 }; 98 99 /* Called "factory reset" in t 100 button-restart { 101 label = "Reset"; 102 linux,code = <KEY_REST 103 gpios = <&chipcommon 1 104 }; 105 }; 106 107 /* 108 * The flash memory is memory mapped a 109 * 64KB blocks; total size 2MB, same t 110 * found attached to the spi_nor SPI c 111 */ 112 nvram@1e1f0000 { 113 compatible = "brcm,nvram"; 114 reg = <0x1e1f0000 0x00010000>; 115 116 et0macaddr: et0macaddr { 117 }; 118 }; 119 }; 120 121 &gmac2 { 122 /* 123 * The NVRAM curiously does not contai 124 * for et2 so since that is the only e 125 * actually in use on the platform, we 126 * address for et2. 127 */ 128 nvmem-cells = <&et0macaddr>; 129 nvmem-cell-names = "mac-address"; 130 }; 131 132 &spi_nor { 133 status = "okay"; 134 }; 135 136 &nandcs { 137 /* Spansion S34ML01G2, 128MB with 128K 138 partitions { 139 compatible = "fixed-partitions 140 #address-cells = <1>; 141 #size-cells = <1>; 142 143 /* 144 * This is called "nflash" in 145 * "upgrade" and "rootfs" (pro 146 * splitpart). We call it "fir 147 * assume. The CFE loader cont 148 * about TRX partitions, ignor 149 * partitions: this device use 150 */ 151 firmware@0 { 152 compatible = "seama"; 153 label = "firmware"; 154 reg = <0x00000000 0x08 155 }; 156 }; 157 }; 158 159 &usb2 { 160 vcc-gpios = <&chipcommon 21 GPIO_ACTIV 161 }; 162 163 &usb3 { 164 vcc-gpios = <&chipcommon 18 GPIO_ACTIV 165 }; 166 167 &usb3_phy { 168 status = "okay"; 169 }; 170 171 &srab { 172 status = "okay"; 173 174 ports { 175 port@0 { 176 label = "lan1"; 177 }; 178 179 port@1 { 180 label = "lan2"; 181 }; 182 183 port@2 { 184 label = "lan3"; 185 }; 186 187 port@3 { 188 label = "lan4"; 189 }; 190 191 port@4 { 192 label = "wan"; 193 }; 194 195 port@5 { 196 status = "disabled"; 197 }; 198 199 port@7 { 200 status = "disabled"; 201 }; 202 203 port@8 { 204 label = "cpu"; 205 phy-mode = "rgmii"; 206 }; 207 }; 208 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.