Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 
0003 #include <dt-bindings/gpio/gpio.h>
0004 #include <dt-bindings/input/input.h>
0005 
0006 #include "bcm4908.dtsi"
0007 
0008 / {
0009         compatible = "asus,gt-ac5300", "brcm,bcm4908";
0010         model = "Asus GT-AC5300";
0011 
0012         memory@0 {
0013                 device_type = "memory";
0014                 reg = <0x00 0x00 0x00 0x40000000>;
0015         };
0016 
0017         gpio-keys-polled {
0018                 compatible = "gpio-keys-polled";
0019                 poll-interval = <100>;
0020 
0021                 key-wifi {
0022                         label = "WiFi";
0023                         linux,code = <KEY_RFKILL>;
0024                         gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
0025                 };
0026 
0027                 key-wps {
0028                         label = "WPS";
0029                         linux,code = <KEY_WPS_BUTTON>;
0030                         gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
0031                 };
0032 
0033                 key-restart {
0034                         label = "Reset";
0035                         linux,code = <KEY_RESTART>;
0036                         gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
0037                 };
0038 
0039                 key-brightness {
0040                         label = "LEDs";
0041                         linux,code = <KEY_BRIGHTNESS_ZERO>;
0042                         gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
0043                 };
0044         };
0045 };
0046 
0047 &enet {
0048         nvmem-cells = <&base_mac_addr>;
0049         nvmem-cell-names = "mac-address";
0050 };
0051 
0052 &usb_phy {
0053         brcm,ioc = <1>;
0054         status = "okay";
0055 };
0056 
0057 &ehci {
0058         status = "okay";
0059 };
0060 
0061 &ohci {
0062         status = "okay";
0063 };
0064 
0065 &xhci {
0066         status = "okay";
0067 };
0068 
0069 &ports {
0070         port@0 {
0071                 label = "lan2";
0072         };
0073 
0074         port@1 {
0075                 label = "lan1";
0076         };
0077 
0078         port@2 {
0079                 label = "lan6";
0080         };
0081 
0082         port@3 {
0083                 label = "lan5";
0084         };
0085 
0086         /* External BCM53134S switch */
0087         port@7 {
0088                 label = "sw";
0089                 reg = <7>;
0090                 phy-mode = "rgmii";
0091 
0092                 fixed-link {
0093                         speed = <1000>;
0094                         full-duplex;
0095                 };
0096         };
0097 };
0098 
0099 &mdio {
0100         /* lan8 */
0101         ethernet-phy@0 {
0102                 reg = <0>;
0103         };
0104 
0105         /* lan7 */
0106         ethernet-phy@1 {
0107                 reg = <1>;
0108         };
0109 
0110         /* lan4 */
0111         ethernet-phy@2 {
0112                 reg = <2>;
0113         };
0114 
0115         /* lan3 */
0116         ethernet-phy@3 {
0117                 reg = <3>;
0118         };
0119 };
0120 
0121 &nandcs {
0122         nand-ecc-strength = <4>;
0123         nand-ecc-step-size = <512>;
0124         nand-on-flash-bbt;
0125         brcm,nand-has-wp;
0126 
0127         #address-cells = <1>;
0128         #size-cells = <0>;
0129 
0130         partitions {
0131                 compatible = "brcm,bcm4908-partitions";
0132                 #address-cells = <1>;
0133                 #size-cells = <1>;
0134 
0135                 partition@0 {
0136                         compatible = "nvmem-cells";
0137                         label = "cferom";
0138                         reg = <0x0 0x100000>;
0139 
0140                         #address-cells = <1>;
0141                         #size-cells = <1>;
0142                         ranges = <0 0x0 0x100000>;
0143 
0144                         base_mac_addr: mac@106a0 {
0145                                 reg = <0x106a0 0x6>;
0146                         };
0147                 };
0148 
0149                 partition@100000 {
0150                         compatible = "brcm,bcm4908-firmware";
0151                         reg = <0x100000 0x5700000>;
0152                 };
0153 
0154                 partition@5800000 {
0155                         compatible = "brcm,bcm4908-firmware";
0156                         reg = <0x5800000 0x5700000>;
0157                 };
0158         };
0159 };