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 Netgear R7000
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 = "netgear,r7000", "brcm,bcm4709", "brcm,bcm4708";
0016         model = "Netgear R7000";
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                 power-white {
0032                         label = "bcm53xx:white:power";
0033                         gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
0034                         linux,default-trigger = "default-on";
0035                 };
0036 
0037                 power-amber {
0038                         label = "bcm53xx:amber:power";
0039                         gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
0040                 };
0041 
0042                 5ghz {
0043                         label = "bcm53xx:white:5ghz";
0044                         gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
0045                 };
0046 
0047                 2ghz {
0048                         label = "bcm53xx:white:2ghz";
0049                         gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
0050                 };
0051 
0052                 wps {
0053                         label = "bcm53xx:white:wps";
0054                         gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
0055                 };
0056 
0057                 wireless {
0058                         label = "bcm53xx:white:wireless";
0059                         gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
0060                 };
0061 
0062                 usb3 {
0063                         label = "bcm53xx:white:usb3";
0064                         gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0065                 };
0066 
0067                 usb2 {
0068                         label = "bcm53xx:white:usb2";
0069                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
0070                 };
0071         };
0072 
0073         gpio-keys {
0074                 compatible = "gpio-keys";
0075 
0076                 button-wps {
0077                         label = "WPS";
0078                         linux,code = <KEY_WPS_BUTTON>;
0079                         gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
0080                 };
0081 
0082                 button-rfkill {
0083                         label = "WiFi";
0084                         linux,code = <KEY_RFKILL>;
0085                         gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
0086                 };
0087 
0088                 button-restart {
0089                         label = "Reset";
0090                         linux,code = <KEY_RESTART>;
0091                         gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
0092                 };
0093         };
0094 };
0095 
0096 &usb2 {
0097         vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
0098 };
0099 
0100 &usb3 {
0101         vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
0102 };
0103 
0104 &usb3_phy {
0105         status = "okay";
0106 };