Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: BCM5301X: Add DT for Asus RT-AC88U

Hardware Info
-------------

Processor - Broadcom BCM4709C0KFEBG dual-core @ 1.4 GHz
Switch - BCM53012 in BCM4709C0KFEBG & external RTL8365MB
DDR3 RAM - 512 MB
Flash - 128 MB (ESMT F59L1G81LA-25T)
2.4GHz - BCM4366 4×4 2.4/5G single chip 802.11ac SoC
5GHz - BCM4366 4×4 2.4/5G single chip 802.11ac SoC
Ports - 8 Ports, 1 WAN Ports

Tested on OpenWrt on kernel 5.10 built with DSA driver.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Arınç ÜNAL and committed by
Florian Fainelli
beff77b9 477ffdbd

+201
+1
arch/arm/boot/dts/Makefile
··· 117 117 bcm4709-netgear-r7000.dtb \ 118 118 bcm4709-netgear-r8000.dtb \ 119 119 bcm4709-tplink-archer-c9-v1.dtb \ 120 + bcm47094-asus-rt-ac88u.dtb \ 120 121 bcm47094-dlink-dir-885l.dtb \ 121 122 bcm47094-linksys-panamera.dtb \ 122 123 bcm47094-luxul-abr-4500.dtb \
+200
arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
··· 1 + // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 + /* 3 + * Copyright (C) 2021 Arınç ÜNAL <arinc.unal@arinc9.com> 4 + */ 5 + 6 + /dts-v1/; 7 + 8 + #include "bcm47094.dtsi" 9 + #include "bcm5301x-nand-cs0-bch8.dtsi" 10 + 11 + / { 12 + compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708"; 13 + model = "Asus RT-AC88U"; 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@1c080000 { 26 + compatible = "brcm,nvram"; 27 + reg = <0x1c080000 0x00180000>; 28 + }; 29 + 30 + leds { 31 + compatible = "gpio-leds"; 32 + 33 + power { 34 + label = "white:power"; 35 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 36 + linux,default-trigger = "default-on"; 37 + }; 38 + 39 + wan-red { 40 + label = "red:wan"; 41 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; 42 + }; 43 + 44 + lan { 45 + label = "white:lan"; 46 + gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; 47 + }; 48 + 49 + usb2 { 50 + label = "white:usb2"; 51 + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; 52 + trigger-sources = <&ehci_port2>; 53 + linux,default-trigger = "usbport"; 54 + }; 55 + 56 + usb3 { 57 + label = "white:usb3"; 58 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; 59 + trigger-sources = <&ehci_port1>, <&xhci_port1>; 60 + linux,default-trigger = "usbport"; 61 + }; 62 + 63 + wps { 64 + label = "white:wps"; 65 + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; 66 + }; 67 + }; 68 + 69 + gpio-keys { 70 + compatible = "gpio-keys"; 71 + #address-cells = <1>; 72 + #size-cells = <0>; 73 + 74 + wps { 75 + label = "WPS"; 76 + linux,code = <KEY_WPS_BUTTON>; 77 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; 78 + }; 79 + 80 + reset { 81 + label = "Reset"; 82 + linux,code = <KEY_RESTART>; 83 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 84 + }; 85 + 86 + wifi { 87 + label = "Wi-Fi"; 88 + linux,code = <KEY_RFKILL>; 89 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; 90 + }; 91 + 92 + led { 93 + label = "Backlight"; 94 + linux,code = <KEY_BRIGHTNESS_ZERO>; 95 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; 96 + }; 97 + }; 98 + }; 99 + 100 + &srab { 101 + compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab"; 102 + status = "okay"; 103 + dsa,member = <0 0>; 104 + 105 + ports { 106 + #address-cells = <1>; 107 + #size-cells = <0>; 108 + 109 + port@0 { 110 + reg = <0>; 111 + label = "lan4"; 112 + }; 113 + 114 + port@1 { 115 + reg = <1>; 116 + label = "lan3"; 117 + }; 118 + 119 + port@2 { 120 + reg = <2>; 121 + label = "lan2"; 122 + }; 123 + 124 + port@3 { 125 + reg = <3>; 126 + label = "lan1"; 127 + }; 128 + 129 + port@4 { 130 + reg = <4>; 131 + label = "wan"; 132 + }; 133 + 134 + sw0_p5: port@5 { 135 + reg = <5>; 136 + label = "extsw"; 137 + 138 + fixed-link { 139 + speed = <1000>; 140 + full-duplex; 141 + }; 142 + }; 143 + 144 + port@7 { 145 + reg = <7>; 146 + ethernet = <&gmac1>; 147 + label = "cpu"; 148 + 149 + fixed-link { 150 + speed = <1000>; 151 + full-duplex; 152 + }; 153 + }; 154 + 155 + port@8 { 156 + reg = <8>; 157 + ethernet = <&gmac2>; 158 + label = "cpu"; 159 + status = "disabled"; 160 + 161 + fixed-link { 162 + speed = <1000>; 163 + full-duplex; 164 + }; 165 + }; 166 + }; 167 + }; 168 + 169 + &usb2 { 170 + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; 171 + }; 172 + 173 + &usb3_phy { 174 + status = "okay"; 175 + }; 176 + 177 + &nandcs { 178 + partitions { 179 + compatible = "fixed-partitions"; 180 + #address-cells = <1>; 181 + #size-cells = <1>; 182 + 183 + partition@0 { 184 + label = "boot"; 185 + reg = <0x00000000 0x00080000>; 186 + read-only; 187 + }; 188 + 189 + partition@80000 { 190 + label = "nvram"; 191 + reg = <0x00080000 0x00180000>; 192 + }; 193 + 194 + partition@200000 { 195 + label = "firmware"; 196 + reg = <0x00200000 0x07e00000>; 197 + compatible = "brcm,trx"; 198 + }; 199 + }; 200 + };