Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Broadcom BCM470X / BCM5301X ARM platform code.
0003  * DTS for Netgear R8000
0004  *
0005  * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
0006  *
0007  * Permission to use, copy, modify, and/or distribute this software for any
0008  * purpose with or without fee is hereby granted, provided that the above
0009  * copyright notice and this permission notice appear in all copies.
0010  *
0011  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
0012  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0013  * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
0014  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
0015  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
0016  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
0017  * PERFORMANCE OF THIS SOFTWARE.
0018  */
0019 
0020 /dts-v1/;
0021 
0022 #include "bcm4709.dtsi"
0023 #include "bcm5301x-nand-cs0-bch8.dtsi"
0024 
0025 / {
0026         compatible = "netgear,r8000", "brcm,bcm4709", "brcm,bcm4708";
0027         model = "Netgear R8000 (BCM4709)";
0028 
0029         chosen {
0030                 bootargs = "console=ttyS0,115200";
0031         };
0032 
0033         memory@0 {
0034                 device_type = "memory";
0035                 reg = <0x00000000 0x08000000>,
0036                       <0x88000000 0x08000000>;
0037         };
0038 
0039         leds {
0040                 compatible = "gpio-leds";
0041 
0042                 power-white {
0043                         label = "bcm53xx:white:power";
0044                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
0045                         linux,default-trigger = "default-on";
0046                 };
0047 
0048                 power-amber {
0049                         label = "bcm53xx:amber:power";
0050                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0051                 };
0052 
0053                 wan-white {
0054                         label = "bcm53xx:white:wan";
0055                         gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
0056                         linux,default-trigger = "default-on";
0057                 };
0058 
0059                 wan-amber {
0060                         label = "bcm53xx:amber:wan";
0061                         gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
0062                 };
0063 
0064                 5ghz-1 {
0065                         label = "bcm53xx:white:5ghz-1";
0066                         gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
0067                 };
0068 
0069                 2ghz {
0070                         label = "bcm53xx:white:2ghz";
0071                         gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
0072                 };
0073 
0074                 wireless {
0075                         label = "bcm53xx:white:wireless";
0076                         gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
0077                 };
0078 
0079                 wps {
0080                         label = "bcm53xx:white:wps";
0081                         gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
0082                 };
0083 
0084                 5ghz-2 {
0085                         label = "bcm53xx:white:5ghz-2";
0086                         gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
0087                 };
0088 
0089                 usb3 {
0090                         label = "bcm53xx:white:usb3";
0091                         gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0092                 };
0093 
0094                 usb2 {
0095                         label = "bcm53xx:white:usb2";
0096                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
0097                 };
0098         };
0099 
0100         gpio-keys {
0101                 compatible = "gpio-keys";
0102 
0103                 button-rfkill {
0104                         label = "WiFi";
0105                         linux,code = <KEY_RFKILL>;
0106                         gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
0107                 };
0108 
0109                 button-wps {
0110                         label = "WPS";
0111                         linux,code = <KEY_WPS_BUTTON>;
0112                         gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
0113                 };
0114 
0115                 button-restart {
0116                         label = "Reset";
0117                         linux,code = <KEY_RESTART>;
0118                         gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
0119                 };
0120 
0121                 button-brightness {
0122                         label = "Backlight";
0123                         linux,code = <KEY_BRIGHTNESS_ZERO>;
0124                         gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
0125                 };
0126         };
0127 };
0128 
0129 &pcie0 {
0130         #address-cells = <3>;
0131         #size-cells = <2>;
0132 
0133         bridge@0,0,0 {
0134                 reg = <0x0000 0 0 0 0>;
0135 
0136                 #address-cells = <3>;
0137                 #size-cells = <2>;
0138 
0139                 wifi@0,1,0 {
0140                         reg = <0x0000 0 0 0 0>;
0141                         ieee80211-freq-limit = <5735000 5835000>;
0142                 };
0143         };
0144 };
0145 
0146 &pcie1 {
0147         #address-cells = <3>;
0148         #size-cells = <2>;
0149 
0150         bridge@1,0,0 {
0151                 reg = <0x0000 0 0 0 0>;
0152 
0153                 #address-cells = <3>;
0154                 #size-cells = <2>;
0155 
0156                 bridge@1,1,0 {
0157                         reg = <0x0000 0 0 0 0>;
0158 
0159                         #address-cells = <3>;
0160                         #size-cells = <2>;
0161 
0162                         bridge@1,2,2 {
0163                                 reg = <0x1000 0 0 0 0>;
0164 
0165                                 #address-cells = <3>;
0166                                 #size-cells = <2>;
0167 
0168                                 wifi@1,4,0 {
0169                                         reg = <0x0000 0 0 0 0>;
0170                                         ieee80211-freq-limit = <5170000 5730000>;
0171                                 };
0172                         };
0173                 };
0174         };
0175 };
0176 
0177 &usb2 {
0178         vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
0179 };
0180 
0181 &usb3 {
0182         vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
0183 };
0184 
0185 &usb3_phy {
0186         status = "okay";
0187 };
0188 
0189 &srab {
0190         status = "okay";
0191 
0192         ports {
0193                 port@0 {
0194                         reg = <0>;
0195                         label = "lan1";
0196                 };
0197 
0198                 port@1 {
0199                         reg = <1>;
0200                         label = "lan2";
0201                 };
0202 
0203                 port@2 {
0204                         reg = <2>;
0205                         label = "lan3";
0206                 };
0207 
0208                 port@3 {
0209                         reg = <3>;
0210                         label = "lan4";
0211                 };
0212 
0213                 port@4 {
0214                         reg = <4>;
0215                         label = "wan";
0216                 };
0217 
0218                 port@8 {
0219                         reg = <8>;
0220                         label = "cpu";
0221                         ethernet = <&gmac2>;
0222 
0223                         fixed-link {
0224                                 speed = <1000>;
0225                                 full-duplex;
0226                         };
0227                 };
0228         };
0229 };