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