1*7d0873ebSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2*7d0873ebSEmmanuel Vadot/* 3*7d0873ebSEmmanuel Vadot * Author: Tom Brautaset <tbrautaset@gmail.com> 4*7d0873ebSEmmanuel Vadot */ 5*7d0873ebSEmmanuel Vadot 6*7d0873ebSEmmanuel Vadot/dts-v1/; 7*7d0873ebSEmmanuel Vadot 8*7d0873ebSEmmanuel Vadot#include "bcm47094.dtsi" 9*7d0873ebSEmmanuel Vadot#include "bcm5301x-nand-cs0-bch8.dtsi" 10*7d0873ebSEmmanuel Vadot 11*7d0873ebSEmmanuel Vadot#include <dt-bindings/leds/common.h> 12*7d0873ebSEmmanuel Vadot 13*7d0873ebSEmmanuel Vadot/ { 14*7d0873ebSEmmanuel Vadot compatible = "asus,rt-ac5300", "brcm,bcm47094", "brcm,bcm4708"; 15*7d0873ebSEmmanuel Vadot model = "ASUS RT-AC5300"; 16*7d0873ebSEmmanuel Vadot 17*7d0873ebSEmmanuel Vadot memory@0 { 18*7d0873ebSEmmanuel Vadot reg = <0x00000000 0x08000000>, 19*7d0873ebSEmmanuel Vadot <0x88000000 0x18000000>; 20*7d0873ebSEmmanuel Vadot device_type = "memory"; 21*7d0873ebSEmmanuel Vadot }; 22*7d0873ebSEmmanuel Vadot 23*7d0873ebSEmmanuel Vadot nvram@1c080000 { 24*7d0873ebSEmmanuel Vadot compatible = "brcm,nvram"; 25*7d0873ebSEmmanuel Vadot reg = <0x1c080000 0x00180000>; 26*7d0873ebSEmmanuel Vadot 27*7d0873ebSEmmanuel Vadot et1macaddr: et1macaddr { 28*7d0873ebSEmmanuel Vadot #nvmem-cell-cells = <1>; 29*7d0873ebSEmmanuel Vadot }; 30*7d0873ebSEmmanuel Vadot }; 31*7d0873ebSEmmanuel Vadot 32*7d0873ebSEmmanuel Vadot gpio-keys { 33*7d0873ebSEmmanuel Vadot compatible = "gpio-keys"; 34*7d0873ebSEmmanuel Vadot 35*7d0873ebSEmmanuel Vadot button-reset { 36*7d0873ebSEmmanuel Vadot label = "Reset"; 37*7d0873ebSEmmanuel Vadot linux,code = <KEY_RESTART>; 38*7d0873ebSEmmanuel Vadot gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 39*7d0873ebSEmmanuel Vadot }; 40*7d0873ebSEmmanuel Vadot 41*7d0873ebSEmmanuel Vadot button-wifi { 42*7d0873ebSEmmanuel Vadot label = "Wi-Fi"; 43*7d0873ebSEmmanuel Vadot linux,code = <KEY_RFKILL>; 44*7d0873ebSEmmanuel Vadot gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; 45*7d0873ebSEmmanuel Vadot }; 46*7d0873ebSEmmanuel Vadot 47*7d0873ebSEmmanuel Vadot button-wps { 48*7d0873ebSEmmanuel Vadot label = "WPS"; 49*7d0873ebSEmmanuel Vadot linux,code = <KEY_WPS_BUTTON>; 50*7d0873ebSEmmanuel Vadot gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; 51*7d0873ebSEmmanuel Vadot }; 52*7d0873ebSEmmanuel Vadot }; 53*7d0873ebSEmmanuel Vadot 54*7d0873ebSEmmanuel Vadot leds { 55*7d0873ebSEmmanuel Vadot compatible = "gpio-leds"; 56*7d0873ebSEmmanuel Vadot 57*7d0873ebSEmmanuel Vadot led-lan { 58*7d0873ebSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 59*7d0873ebSEmmanuel Vadot function = LED_FUNCTION_LAN; 60*7d0873ebSEmmanuel Vadot gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; 61*7d0873ebSEmmanuel Vadot }; 62*7d0873ebSEmmanuel Vadot 63*7d0873ebSEmmanuel Vadot led-power { 64*7d0873ebSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 65*7d0873ebSEmmanuel Vadot function = LED_FUNCTION_POWER; 66*7d0873ebSEmmanuel Vadot gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; 67*7d0873ebSEmmanuel Vadot linux,default-trigger = "default-on"; 68*7d0873ebSEmmanuel Vadot }; 69*7d0873ebSEmmanuel Vadot 70*7d0873ebSEmmanuel Vadot led-wan-red { 71*7d0873ebSEmmanuel Vadot color = <LED_COLOR_ID_RED>; 72*7d0873ebSEmmanuel Vadot function = LED_FUNCTION_WAN; 73*7d0873ebSEmmanuel Vadot gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; 74*7d0873ebSEmmanuel Vadot }; 75*7d0873ebSEmmanuel Vadot 76*7d0873ebSEmmanuel Vadot led-wps { 77*7d0873ebSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 78*7d0873ebSEmmanuel Vadot function = LED_FUNCTION_WPS; 79*7d0873ebSEmmanuel Vadot gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; 80*7d0873ebSEmmanuel Vadot }; 81*7d0873ebSEmmanuel Vadot }; 82*7d0873ebSEmmanuel Vadot}; 83*7d0873ebSEmmanuel Vadot 84*7d0873ebSEmmanuel Vadot&gmac0 { 85*7d0873ebSEmmanuel Vadot nvmem-cells = <&et1macaddr 0>; 86*7d0873ebSEmmanuel Vadot nvmem-cell-names = "mac-address"; 87*7d0873ebSEmmanuel Vadot}; 88*7d0873ebSEmmanuel Vadot 89*7d0873ebSEmmanuel Vadot&gmac1 { 90*7d0873ebSEmmanuel Vadot nvmem-cells = <&et1macaddr 1>; 91*7d0873ebSEmmanuel Vadot nvmem-cell-names = "mac-address"; 92*7d0873ebSEmmanuel Vadot}; 93*7d0873ebSEmmanuel Vadot 94*7d0873ebSEmmanuel Vadot&gmac2 { 95*7d0873ebSEmmanuel Vadot nvmem-cells = <&et1macaddr 2>; 96*7d0873ebSEmmanuel Vadot nvmem-cell-names = "mac-address"; 97*7d0873ebSEmmanuel Vadot}; 98*7d0873ebSEmmanuel Vadot 99*7d0873ebSEmmanuel Vadot&nandcs { 100*7d0873ebSEmmanuel Vadot partitions { 101*7d0873ebSEmmanuel Vadot compatible = "fixed-partitions"; 102*7d0873ebSEmmanuel Vadot #address-cells = <1>; 103*7d0873ebSEmmanuel Vadot #size-cells = <1>; 104*7d0873ebSEmmanuel Vadot 105*7d0873ebSEmmanuel Vadot partition@0 { 106*7d0873ebSEmmanuel Vadot reg = <0x00000000 0x00080000>; 107*7d0873ebSEmmanuel Vadot label = "boot"; 108*7d0873ebSEmmanuel Vadot read-only; 109*7d0873ebSEmmanuel Vadot }; 110*7d0873ebSEmmanuel Vadot 111*7d0873ebSEmmanuel Vadot partition@80000 { 112*7d0873ebSEmmanuel Vadot reg = <0x00080000 0x00180000>; 113*7d0873ebSEmmanuel Vadot label = "nvram"; 114*7d0873ebSEmmanuel Vadot }; 115*7d0873ebSEmmanuel Vadot 116*7d0873ebSEmmanuel Vadot partition@200000 { 117*7d0873ebSEmmanuel Vadot compatible = "brcm,trx"; 118*7d0873ebSEmmanuel Vadot reg = <0x00200000 0x07e00000>; 119*7d0873ebSEmmanuel Vadot label = "firmware"; 120*7d0873ebSEmmanuel Vadot }; 121*7d0873ebSEmmanuel Vadot }; 122*7d0873ebSEmmanuel Vadot}; 123*7d0873ebSEmmanuel Vadot 124*7d0873ebSEmmanuel Vadot&srab { 125*7d0873ebSEmmanuel Vadot status = "okay"; 126*7d0873ebSEmmanuel Vadot 127*7d0873ebSEmmanuel Vadot ports { 128*7d0873ebSEmmanuel Vadot port@0 { 129*7d0873ebSEmmanuel Vadot label = "lan4"; 130*7d0873ebSEmmanuel Vadot }; 131*7d0873ebSEmmanuel Vadot 132*7d0873ebSEmmanuel Vadot port@1 { 133*7d0873ebSEmmanuel Vadot label = "lan3"; 134*7d0873ebSEmmanuel Vadot }; 135*7d0873ebSEmmanuel Vadot 136*7d0873ebSEmmanuel Vadot port@2 { 137*7d0873ebSEmmanuel Vadot label = "lan2"; 138*7d0873ebSEmmanuel Vadot }; 139*7d0873ebSEmmanuel Vadot 140*7d0873ebSEmmanuel Vadot port@3 { 141*7d0873ebSEmmanuel Vadot label = "lan1"; 142*7d0873ebSEmmanuel Vadot }; 143*7d0873ebSEmmanuel Vadot 144*7d0873ebSEmmanuel Vadot port@4 { 145*7d0873ebSEmmanuel Vadot label = "wan"; 146*7d0873ebSEmmanuel Vadot }; 147*7d0873ebSEmmanuel Vadot }; 148*7d0873ebSEmmanuel Vadot}; 149*7d0873ebSEmmanuel Vadot 150*7d0873ebSEmmanuel Vadot&usb2 { 151*7d0873ebSEmmanuel Vadot vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; 152*7d0873ebSEmmanuel Vadot}; 153*7d0873ebSEmmanuel Vadot 154*7d0873ebSEmmanuel Vadot&usb3_phy { 155*7d0873ebSEmmanuel Vadot status = "okay"; 156*7d0873ebSEmmanuel Vadot}; 157