bcm4908-asus-gt-ac5300.dts (2255B)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 3#include <dt-bindings/gpio/gpio.h> 4#include <dt-bindings/input/input.h> 5 6#include "bcm4908.dtsi" 7 8/ { 9 compatible = "asus,gt-ac5300", "brcm,bcm4908"; 10 model = "Asus GT-AC5300"; 11 12 memory@0 { 13 device_type = "memory"; 14 reg = <0x00 0x00 0x00 0x40000000>; 15 }; 16 17 gpio-keys-polled { 18 compatible = "gpio-keys-polled"; 19 poll-interval = <100>; 20 21 wifi { 22 label = "WiFi"; 23 linux,code = <KEY_RFKILL>; 24 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; 25 }; 26 27 wps { 28 label = "WPS"; 29 linux,code = <KEY_WPS_BUTTON>; 30 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; 31 }; 32 33 restart { 34 label = "Reset"; 35 linux,code = <KEY_RESTART>; 36 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; 37 }; 38 39 brightness { 40 label = "LEDs"; 41 linux,code = <KEY_BRIGHTNESS_ZERO>; 42 gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; 43 }; 44 }; 45}; 46 47&enet { 48 nvmem-cells = <&base_mac_addr>; 49 nvmem-cell-names = "mac-address"; 50}; 51 52&usb_phy { 53 brcm,ioc = <1>; 54 status = "okay"; 55}; 56 57&ehci { 58 status = "okay"; 59}; 60 61&ohci { 62 status = "okay"; 63}; 64 65&xhci { 66 status = "okay"; 67}; 68 69&ports { 70 port@0 { 71 label = "lan2"; 72 }; 73 74 port@1 { 75 label = "lan1"; 76 }; 77 78 port@2 { 79 label = "lan6"; 80 }; 81 82 port@3 { 83 label = "lan5"; 84 }; 85 86 /* External BCM53134S switch */ 87 port@7 { 88 label = "sw"; 89 reg = <7>; 90 phy-mode = "rgmii"; 91 92 fixed-link { 93 speed = <1000>; 94 full-duplex; 95 }; 96 }; 97}; 98 99&mdio { 100 /* lan8 */ 101 ethernet-phy@0 { 102 reg = <0>; 103 }; 104 105 /* lan7 */ 106 ethernet-phy@1 { 107 reg = <1>; 108 }; 109 110 /* lan4 */ 111 ethernet-phy@2 { 112 reg = <2>; 113 }; 114 115 /* lan3 */ 116 ethernet-phy@3 { 117 reg = <3>; 118 }; 119}; 120 121&nandcs { 122 nand-ecc-strength = <4>; 123 nand-ecc-step-size = <512>; 124 nand-on-flash-bbt; 125 brcm,nand-has-wp; 126 127 #address-cells = <1>; 128 #size-cells = <0>; 129 130 partitions { 131 compatible = "brcm,bcm4908-partitions"; 132 #address-cells = <1>; 133 #size-cells = <1>; 134 135 partition@0 { 136 compatible = "nvmem-cells"; 137 label = "cferom"; 138 reg = <0x0 0x100000>; 139 140 #address-cells = <1>; 141 #size-cells = <1>; 142 ranges = <0 0x0 0x100000>; 143 144 base_mac_addr: mac@106a0 { 145 reg = <0x106a0 0x6>; 146 }; 147 }; 148 149 partition@100000 { 150 compatible = "brcm,bcm4908-firmware"; 151 reg = <0x100000 0x5700000>; 152 }; 153 154 partition@5800000 { 155 compatible = "brcm,bcm4908-firmware"; 156 reg = <0x5800000 0x5700000>; 157 }; 158 }; 159};