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 Buffalo WXR-1900DHP
0005  *
0006  * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
0007  */
0008 
0009 /dts-v1/;
0010 
0011 #include "bcm4709.dtsi"
0012 #include "bcm5301x-nand-cs0-bch8.dtsi"
0013 
0014 / {
0015         compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
0016         model = "Buffalo WXR-1900DHP";
0017 
0018         chosen {
0019                 bootargs = "console=ttyS0,115200";
0020         };
0021 
0022         memory@0 {
0023                 device_type = "memory";
0024                 reg = <0x00000000 0x08000000>,
0025                       <0x88000000 0x18000000>;
0026         };
0027 
0028         leds {
0029                 compatible = "gpio-leds";
0030 
0031                 usb {
0032                         label = "bcm53xx:green:usb";
0033                         gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
0034                 };
0035 
0036                 power-amber {
0037                         label = "bcm53xx:amber:power";
0038                         gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
0039                 };
0040 
0041                 power-white {
0042                         label = "bcm53xx:white:power";
0043                         gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
0044                         linux,default-trigger = "default-on";
0045                 };
0046 
0047                 router-amber {
0048                         label = "bcm53xx:amber:router";
0049                         gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
0050                 };
0051 
0052                 router-white {
0053                         label = "bcm53xx:white:router";
0054                         gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
0055                 };
0056 
0057                 wan-amber {
0058                         label = "bcm53xx:amber:wan";
0059                         gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
0060                 };
0061 
0062                 wan-white {
0063                         label = "bcm53xx:white:wan";
0064                         gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
0065                 };
0066 
0067                 wireless-amber {
0068                         label = "bcm53xx:amber:wireless";
0069                         gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
0070                 };
0071 
0072                 wireless-white {
0073                         label = "bcm53xx:white:wireless";
0074                         gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
0075                 };
0076         };
0077 
0078         gpio-keys {
0079                 compatible = "gpio-keys";
0080 
0081                 button-power {
0082                         label = "Power";
0083                         linux,code = <KEY_POWER>;
0084                         gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
0085                 };
0086 
0087                 button-restart {
0088                         label = "Reset";
0089                         linux,code = <KEY_RESTART>;
0090                         gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
0091                 };
0092 
0093                 button-aoss {
0094                         label = "AOSS";
0095                         linux,code = <KEY_WPS_BUTTON>;
0096                         gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
0097                 };
0098 
0099                 /* Commit mode set by switch? */
0100                 button-mode {
0101                         label = "Mode";
0102                         linux,code = <KEY_SETUP>;
0103                         gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
0104                 };
0105 
0106                 /* Switch: AP mode */
0107                 button-sw-ap {
0108                         label = "AP";
0109                         linux,code = <BTN_0>;
0110                         gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
0111                 };
0112 
0113                 button-eject {
0114                         label = "USB eject";
0115                         linux,code = <KEY_EJECTCD>;
0116                         gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
0117                 };
0118         };
0119 };
0120 
0121 
0122 &usb2 {
0123         vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
0124 };
0125 
0126 &spi_nor {
0127         status = "okay";
0128 };
0129 
0130 &usb3_phy {
0131         status = "okay";
0132 };