1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Broadcom BCM470X / BCM5301X ARM platform code. 4*724ba675SRob Herring * DTS for Buffalo WXR-1900DHP 5*724ba675SRob Herring * 6*724ba675SRob Herring * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org> 7*724ba675SRob Herring */ 8*724ba675SRob Herring 9*724ba675SRob Herring/dts-v1/; 10*724ba675SRob Herring 11*724ba675SRob Herring#include "bcm4709.dtsi" 12*724ba675SRob Herring#include "bcm5301x-nand-cs0-bch8.dtsi" 13*724ba675SRob Herring 14*724ba675SRob Herring/ { 15*724ba675SRob Herring compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708"; 16*724ba675SRob Herring model = "Buffalo WXR-1900DHP"; 17*724ba675SRob Herring 18*724ba675SRob Herring chosen { 19*724ba675SRob Herring bootargs = "console=ttyS0,115200"; 20*724ba675SRob Herring }; 21*724ba675SRob Herring 22*724ba675SRob Herring memory@0 { 23*724ba675SRob Herring device_type = "memory"; 24*724ba675SRob Herring reg = <0x00000000 0x08000000>, 25*724ba675SRob Herring <0x88000000 0x18000000>; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring leds { 29*724ba675SRob Herring compatible = "gpio-leds"; 30*724ba675SRob Herring 31*724ba675SRob Herring led-usb { 32*724ba675SRob Herring label = "bcm53xx:green:usb"; 33*724ba675SRob Herring gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; 34*724ba675SRob Herring }; 35*724ba675SRob Herring 36*724ba675SRob Herring led-power-amber { 37*724ba675SRob Herring label = "bcm53xx:amber:power"; 38*724ba675SRob Herring gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; 39*724ba675SRob Herring }; 40*724ba675SRob Herring 41*724ba675SRob Herring led-power-white { 42*724ba675SRob Herring label = "bcm53xx:white:power"; 43*724ba675SRob Herring gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; 44*724ba675SRob Herring linux,default-trigger = "default-on"; 45*724ba675SRob Herring }; 46*724ba675SRob Herring 47*724ba675SRob Herring led-router-amber { 48*724ba675SRob Herring label = "bcm53xx:amber:router"; 49*724ba675SRob Herring gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; 50*724ba675SRob Herring }; 51*724ba675SRob Herring 52*724ba675SRob Herring led-router-white { 53*724ba675SRob Herring label = "bcm53xx:white:router"; 54*724ba675SRob Herring gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring led-wan-amber { 58*724ba675SRob Herring label = "bcm53xx:amber:wan"; 59*724ba675SRob Herring gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>; 60*724ba675SRob Herring }; 61*724ba675SRob Herring 62*724ba675SRob Herring led-wan-white { 63*724ba675SRob Herring label = "bcm53xx:white:wan"; 64*724ba675SRob Herring gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>; 65*724ba675SRob Herring }; 66*724ba675SRob Herring 67*724ba675SRob Herring led-wireless-amber { 68*724ba675SRob Herring label = "bcm53xx:amber:wireless"; 69*724ba675SRob Herring gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>; 70*724ba675SRob Herring }; 71*724ba675SRob Herring 72*724ba675SRob Herring led-wireless-white { 73*724ba675SRob Herring label = "bcm53xx:white:wireless"; 74*724ba675SRob Herring gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; 75*724ba675SRob Herring }; 76*724ba675SRob Herring }; 77*724ba675SRob Herring 78*724ba675SRob Herring gpio-keys { 79*724ba675SRob Herring compatible = "gpio-keys"; 80*724ba675SRob Herring 81*724ba675SRob Herring button-power { 82*724ba675SRob Herring label = "Power"; 83*724ba675SRob Herring linux,code = <KEY_POWER>; 84*724ba675SRob Herring gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>; 85*724ba675SRob Herring }; 86*724ba675SRob Herring 87*724ba675SRob Herring button-restart { 88*724ba675SRob Herring label = "Reset"; 89*724ba675SRob Herring linux,code = <KEY_RESTART>; 90*724ba675SRob Herring gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; 91*724ba675SRob Herring }; 92*724ba675SRob Herring 93*724ba675SRob Herring button-aoss { 94*724ba675SRob Herring label = "AOSS"; 95*724ba675SRob Herring linux,code = <KEY_WPS_BUTTON>; 96*724ba675SRob Herring gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; 97*724ba675SRob Herring }; 98*724ba675SRob Herring 99*724ba675SRob Herring /* Commit mode set by switch? */ 100*724ba675SRob Herring button-mode { 101*724ba675SRob Herring label = "Mode"; 102*724ba675SRob Herring linux,code = <KEY_SETUP>; 103*724ba675SRob Herring gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; 104*724ba675SRob Herring }; 105*724ba675SRob Herring 106*724ba675SRob Herring /* Switch: AP mode */ 107*724ba675SRob Herring button-sw-ap { 108*724ba675SRob Herring label = "AP"; 109*724ba675SRob Herring linux,code = <BTN_0>; 110*724ba675SRob Herring gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; 111*724ba675SRob Herring }; 112*724ba675SRob Herring 113*724ba675SRob Herring button-eject { 114*724ba675SRob Herring label = "USB eject"; 115*724ba675SRob Herring linux,code = <KEY_EJECTCD>; 116*724ba675SRob Herring gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; 117*724ba675SRob Herring }; 118*724ba675SRob Herring }; 119*724ba675SRob Herring}; 120*724ba675SRob Herring 121*724ba675SRob Herring 122*724ba675SRob Herring&usb2 { 123*724ba675SRob Herring vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>; 124*724ba675SRob Herring}; 125*724ba675SRob Herring 126*724ba675SRob Herring&spi_nor { 127*724ba675SRob Herring status = "okay"; 128*724ba675SRob Herring}; 129*724ba675SRob Herring 130*724ba675SRob Herring&usb3_phy { 131*724ba675SRob Herring status = "okay"; 132*724ba675SRob Herring}; 133