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 WZR-900DHP
0005  *
0006  * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
0007  */
0008 
0009 /dts-v1/;
0010 
0011 #include "bcm47081.dtsi"
0012 #include "bcm5301x-nand-cs0-bch8.dtsi"
0013 
0014 / {
0015         compatible = "buffalo,wzr-900dhp", "brcm,bcm47081", "brcm,bcm4708";
0016         model = "Buffalo WZR-900DHP (BCM47081)";
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         spi {
0029                 compatible = "spi-gpio";
0030                 num-chipselects = <1>;
0031                 gpio-sck = <&chipcommon 7 0>;
0032                 gpio-mosi = <&chipcommon 4 0>;
0033                 cs-gpios = <&chipcommon 6 0>;
0034                 #address-cells = <1>;
0035                 #size-cells = <0>;
0036 
0037                 hc595: gpio_spi@0 {
0038                         compatible = "fairchild,74hc595";
0039                         reg = <0>;
0040                         registers-number = <1>;
0041                         spi-max-frequency = <100000>;
0042 
0043                         gpio-controller;
0044                         #gpio-cells = <2>;
0045 
0046                 };
0047         };
0048 
0049         leds {
0050                 compatible = "gpio-leds";
0051 
0052                 usb {
0053                         label = "bcm53xx:green:usb";
0054                         gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
0055                 };
0056 
0057                 power0 {
0058                         label = "bcm53xx:green:power";
0059                         gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
0060                         linux,default-trigger = "default-on";
0061                 };
0062 
0063                 power1 {
0064                         label = "bcm53xx:red:power";
0065                         gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
0066                 };
0067 
0068                 router0 {
0069                         label = "bcm53xx:green:router";
0070                         gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
0071                         linux,default-trigger = "default-on";
0072                 };
0073 
0074                 router1 {
0075                         label = "bcm53xx:amber:router";
0076                         gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
0077                 };
0078 
0079                 wan {
0080                         label = "bcm53xx:green:wan";
0081                         gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
0082                         linux,default-trigger = "default-on";
0083                 };
0084 
0085                 wireless0 {
0086                         label = "bcm53xx:green:wireless";
0087                         gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
0088                 };
0089 
0090                 wireless1 {
0091                         label = "bcm53xx:amber:wireless";
0092                         gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
0093                 };
0094         };
0095 
0096         gpio-keys {
0097                 compatible = "gpio-keys";
0098 
0099                 button-restart {
0100                         label = "Reset";
0101                         linux,code = <KEY_RESTART>;
0102                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
0103                 };
0104         };
0105 };
0106 
0107 &usb3_phy {
0108         status = "okay";
0109 };