bcm47081-buffalo-wzr-600dhp2.dts revision 295436
11341Sstevel/* 21341Sstevel * Broadcom BCM470X / BCM5301X ARM platform code. 31341Sstevel * DTS for Buffalo WZR-600DHP2 41341Sstevel * 51341Sstevel * Copyright (C) 2014 Rafa�� Mi��ecki <zajec5@gmail.com> 61341Sstevel * 71341Sstevel * Licensed under the GNU/GPL. See COPYING for details. 81341Sstevel */ 91341Sstevel 101341Sstevel/dts-v1/; 111341Sstevel 121341Sstevel#include "bcm47081.dtsi" 131341Sstevel#include "bcm5301x-nand-cs0-bch8.dtsi" 141341Sstevel 151341Sstevel/ { 161341Sstevel compatible = "buffalo,wzr-600dhp2", "brcm,bcm47081", "brcm,bcm4708"; 171341Sstevel model = "Buffalo WZR-600DHP2 (BCM47081)"; 181341Sstevel 191341Sstevel chosen { 201341Sstevel bootargs = "console=ttyS0,115200"; 211341Sstevel }; 221341Sstevel 2311311SSurya.Prakki@Sun.COM memory { 241341Sstevel reg = <0x00000000 0x08000000>; 251341Sstevel }; 261341Sstevel 271341Sstevel spi { 281341Sstevel compatible = "spi-gpio"; 291341Sstevel num-chipselects = <1>; 301341Sstevel gpio-sck = <&chipcommon 7 0>; 311341Sstevel gpio-mosi = <&chipcommon 4 0>; 321341Sstevel cs-gpios = <&chipcommon 6 0>; 331341Sstevel #address-cells = <1>; 341341Sstevel #size-cells = <0>; 351341Sstevel 361341Sstevel hc595: gpio_spi@0 { 371341Sstevel compatible = "fairchild,74hc595"; 381341Sstevel reg = <0>; 391341Sstevel registers-number = <1>; 401341Sstevel spi-max-frequency = <100000>; 411341Sstevel 421341Sstevel gpio-controller; 431341Sstevel #gpio-cells = <2>; 441341Sstevel 451341Sstevel }; 461341Sstevel }; 471341Sstevel 481341Sstevel leds { 491341Sstevel compatible = "gpio-leds"; 501341Sstevel 511341Sstevel power0 { 521341Sstevel label = "bcm53xx:green:power"; 531341Sstevel gpios = <&hc595 1 GPIO_ACTIVE_HIGH>; 541341Sstevel linux,default-trigger = "default-on"; 551341Sstevel }; 561341Sstevel 571341Sstevel power1 { 581341Sstevel label = "bcm53xx:red:power"; 591341Sstevel gpios = <&hc595 2 GPIO_ACTIVE_HIGH>; 601341Sstevel linux,default-trigger = "default-off"; 611341Sstevel }; 621341Sstevel 631341Sstevel router0 { 641341Sstevel label = "bcm53xx:green:router"; 651341Sstevel gpios = <&hc595 3 GPIO_ACTIVE_HIGH>; 661341Sstevel linux,default-trigger = "default-on"; 671341Sstevel }; 681341Sstevel 691341Sstevel router1 { 701341Sstevel label = "bcm53xx:amber:router"; 711341Sstevel gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; 721341Sstevel linux,default-trigger = "default-off"; 731341Sstevel }; 741341Sstevel 751341Sstevel wan { 761341Sstevel label = "bcm53xx:green:wan"; 771341Sstevel gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; 781341Sstevel linux,default-trigger = "default-on"; 791341Sstevel }; 801341Sstevel 811341Sstevel wireless0 { 821341Sstevel label = "bcm53xx:green:wireless"; 831341Sstevel gpios = <&hc595 6 GPIO_ACTIVE_HIGH>; 841341Sstevel linux,default-trigger = "default-off"; 851341Sstevel }; 861341Sstevel 871341Sstevel wireless1 { 881341Sstevel label = "bcm53xx:amber:wireless"; 891341Sstevel gpios = <&hc595 7 GPIO_ACTIVE_HIGH>; 901341Sstevel linux,default-trigger = "default-off"; 911341Sstevel }; 921341Sstevel }; 931341Sstevel 941341Sstevel gpio-keys { 951341Sstevel compatible = "gpio-keys"; 961341Sstevel #address-cells = <1>; 971341Sstevel #size-cells = <0>; 981341Sstevel 991341Sstevel aoss { 1001341Sstevel label = "AOSS"; 1011341Sstevel linux,code = <KEY_WPS_BUTTON>; 1027656SSherry.Moore@Sun.COM gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; 1037656SSherry.Moore@Sun.COM }; 1041341Sstevel 1051341Sstevel restart { 1061341Sstevel label = "Reset"; 1071341Sstevel linux,code = <KEY_RESTART>; 1081341Sstevel gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 1091341Sstevel }; 1101341Sstevel 1111341Sstevel /* Switch device mode? */ 1121341Sstevel mode { 1131341Sstevel label = "Mode"; 1141341Sstevel linux,code = <KEY_SETUP>; 1151341Sstevel gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 1161341Sstevel }; 1171341Sstevel 1181341Sstevel eject { 1191341Sstevel label = "USB eject"; 1201341Sstevel linux,code = <KEY_EJECTCD>; 1211341Sstevel gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; 1221341Sstevel }; 1231341Sstevel }; 1241341Sstevel}; 1251341Sstevel 1261341Sstevel&uart0 { 1271341Sstevel status = "okay"; 1281341Sstevel}; 1291341Sstevel