1279377Simp/* 2279377Simp * Broadcom BCM470X / BCM5301X ARM platform code. 3279377Simp * DTS for Buffalo WZR-600DHP2 4279377Simp * 5279377Simp * Copyright (C) 2014 Rafa�� Mi��ecki <zajec5@gmail.com> 6279377Simp * 7279377Simp * Licensed under the GNU/GPL. See COPYING for details. 8279377Simp */ 9279377Simp 10279377Simp/dts-v1/; 11279377Simp 12279377Simp#include "bcm47081.dtsi" 13295436Sandrew#include "bcm5301x-nand-cs0-bch8.dtsi" 14279377Simp 15279377Simp/ { 16279377Simp compatible = "buffalo,wzr-600dhp2", "brcm,bcm47081", "brcm,bcm4708"; 17279377Simp model = "Buffalo WZR-600DHP2 (BCM47081)"; 18279377Simp 19279377Simp chosen { 20279377Simp bootargs = "console=ttyS0,115200"; 21279377Simp }; 22279377Simp 23279377Simp memory { 24279377Simp reg = <0x00000000 0x08000000>; 25279377Simp }; 26279377Simp 27279377Simp spi { 28279377Simp compatible = "spi-gpio"; 29279377Simp num-chipselects = <1>; 30279377Simp gpio-sck = <&chipcommon 7 0>; 31279377Simp gpio-mosi = <&chipcommon 4 0>; 32279377Simp cs-gpios = <&chipcommon 6 0>; 33279377Simp #address-cells = <1>; 34279377Simp #size-cells = <0>; 35279377Simp 36279377Simp hc595: gpio_spi@0 { 37279377Simp compatible = "fairchild,74hc595"; 38279377Simp reg = <0>; 39279377Simp registers-number = <1>; 40279377Simp spi-max-frequency = <100000>; 41279377Simp 42279377Simp gpio-controller; 43279377Simp #gpio-cells = <2>; 44279377Simp 45279377Simp }; 46279377Simp }; 47279377Simp 48279377Simp leds { 49279377Simp compatible = "gpio-leds"; 50279377Simp 51279377Simp power0 { 52279377Simp label = "bcm53xx:green:power"; 53279377Simp gpios = <&hc595 1 GPIO_ACTIVE_HIGH>; 54279377Simp linux,default-trigger = "default-on"; 55279377Simp }; 56279377Simp 57279377Simp power1 { 58279377Simp label = "bcm53xx:red:power"; 59279377Simp gpios = <&hc595 2 GPIO_ACTIVE_HIGH>; 60279377Simp linux,default-trigger = "default-off"; 61279377Simp }; 62279377Simp 63279377Simp router0 { 64279377Simp label = "bcm53xx:green:router"; 65279377Simp gpios = <&hc595 3 GPIO_ACTIVE_HIGH>; 66279377Simp linux,default-trigger = "default-on"; 67279377Simp }; 68279377Simp 69279377Simp router1 { 70279377Simp label = "bcm53xx:amber:router"; 71279377Simp gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; 72279377Simp linux,default-trigger = "default-off"; 73279377Simp }; 74279377Simp 75279377Simp wan { 76279377Simp label = "bcm53xx:green:wan"; 77279377Simp gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; 78279377Simp linux,default-trigger = "default-on"; 79279377Simp }; 80279377Simp 81279377Simp wireless0 { 82279377Simp label = "bcm53xx:green:wireless"; 83279377Simp gpios = <&hc595 6 GPIO_ACTIVE_HIGH>; 84279377Simp linux,default-trigger = "default-off"; 85279377Simp }; 86279377Simp 87279377Simp wireless1 { 88279377Simp label = "bcm53xx:amber:wireless"; 89279377Simp gpios = <&hc595 7 GPIO_ACTIVE_HIGH>; 90279377Simp linux,default-trigger = "default-off"; 91279377Simp }; 92279377Simp }; 93279377Simp 94279377Simp gpio-keys { 95279377Simp compatible = "gpio-keys"; 96279377Simp #address-cells = <1>; 97279377Simp #size-cells = <0>; 98279377Simp 99279377Simp aoss { 100279377Simp label = "AOSS"; 101279377Simp linux,code = <KEY_WPS_BUTTON>; 102279377Simp gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; 103279377Simp }; 104279377Simp 105279377Simp restart { 106279377Simp label = "Reset"; 107279377Simp linux,code = <KEY_RESTART>; 108279377Simp gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 109279377Simp }; 110279377Simp 111279377Simp /* Switch device mode? */ 112279377Simp mode { 113279377Simp label = "Mode"; 114279377Simp linux,code = <KEY_SETUP>; 115279377Simp gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 116279377Simp }; 117279377Simp 118279377Simp eject { 119279377Simp label = "USB eject"; 120279377Simp linux,code = <KEY_EJECTCD>; 121279377Simp gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; 122279377Simp }; 123279377Simp }; 124279377Simp}; 125295436Sandrew 126295436Sandrew&uart0 { 127295436Sandrew status = "okay"; 128295436Sandrew}; 129