Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Broadcom BCM470X / BCM5301X ARM platform code.
0004  * DTS for Asus RT-AC87U
0005  *
0006  * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
0007  */
0008 
0009 /dts-v1/;
0010 
0011 #include "bcm4709.dtsi"
0012 #include "bcm5301x-nand-cs0-bch8.dtsi"
0013 
0014 / {
0015         compatible = "asus,rt-ac87u", "brcm,bcm4709", "brcm,bcm4708";
0016         model = "Asus RT-AC87U";
0017 
0018         chosen {
0019                 bootargs = "console=ttyS0,115200";
0020         };
0021 
0022         memory@0 {
0023                 device_type = "memory";
0024                 reg = <0x00000000 0x08000000>,
0025                       <0x88000000 0x08000000>;
0026         };
0027 
0028         leds {
0029                 compatible = "gpio-leds";
0030 
0031                 wps {
0032                         label = "bcm53xx:blue:wps";
0033                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
0034                 };
0035 
0036                 power {
0037                         label = "bcm53xx:blue:power";
0038                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0039                         linux,default-trigger = "default-on";
0040                 };
0041 
0042                 wan {
0043                         label = "bcm53xx:red:wan";
0044                         gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
0045                 };
0046         };
0047 
0048         gpio-keys {
0049                 compatible = "gpio-keys";
0050 
0051                 button-wps {
0052                         label = "WPS";
0053                         linux,code = <KEY_WPS_BUTTON>;
0054                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
0055                 };
0056 
0057                 button-restart {
0058                         label = "Reset";
0059                         linux,code = <KEY_RESTART>;
0060                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
0061                 };
0062         };
0063 };
0064 
0065 &usb3_phy {
0066         status = "okay";
0067 };
0068 
0069 &nandcs {
0070         partitions {
0071                 compatible = "fixed-partitions";
0072                 #address-cells = <1>;
0073                 #size-cells = <1>;
0074 
0075                 boot@0 {
0076                         label = "boot";
0077                         reg = <0x00000000 0x00080000>;
0078                         read-only;
0079                 };
0080 
0081                 nvram@80000 {
0082                         label = "nvram";
0083                         reg = <0x00080000 0x00180000>;
0084                 };
0085 
0086                 firmware@200000 {
0087                         label = "firmware";
0088                         reg = <0x00200000 0x07cc0000>;
0089                         compatible = "brcm,trx";
0090                 };
0091 
0092                 asus@7ec0000 {
0093                         label = "asus";
0094                         reg = <0x07ec0000 0x00140000>;
0095                         read-only;
0096                 };
0097         };
0098 };