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 WZR-1750DHP 5*724ba675SRob Herring * 6*724ba675SRob Herring * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com> 7*724ba675SRob Herring */ 8*724ba675SRob Herring 9*724ba675SRob Herring/dts-v1/; 10*724ba675SRob Herring 11*724ba675SRob Herring#include "bcm4708.dtsi" 12*724ba675SRob Herring#include "bcm5301x-nand-cs0-bch8.dtsi" 13*724ba675SRob Herring 14*724ba675SRob Herring/ { 15*724ba675SRob Herring compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708"; 16*724ba675SRob Herring model = "Buffalo WZR-1750DHP (BCM4708)"; 17*724ba675SRob Herring 18*724ba675SRob Herring chosen { 19*724ba675SRob Herring bootargs = "console=ttyS0,115200 earlycon"; 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 spi { 29*724ba675SRob Herring compatible = "spi-gpio"; 30*724ba675SRob Herring num-chipselects = <1>; 31*724ba675SRob Herring sck-gpios = <&chipcommon 7 0>; 32*724ba675SRob Herring mosi-gpios = <&chipcommon 4 0>; 33*724ba675SRob Herring cs-gpios = <&chipcommon 6 0>; 34*724ba675SRob Herring #address-cells = <1>; 35*724ba675SRob Herring #size-cells = <0>; 36*724ba675SRob Herring 37*724ba675SRob Herring hc595: gpio_spi@0 { 38*724ba675SRob Herring compatible = "fairchild,74hc595"; 39*724ba675SRob Herring reg = <0>; 40*724ba675SRob Herring registers-number = <1>; 41*724ba675SRob Herring spi-max-frequency = <100000>; 42*724ba675SRob Herring 43*724ba675SRob Herring gpio-controller; 44*724ba675SRob Herring #gpio-cells = <2>; 45*724ba675SRob Herring 46*724ba675SRob Herring }; 47*724ba675SRob Herring }; 48*724ba675SRob Herring 49*724ba675SRob Herring leds { 50*724ba675SRob Herring compatible = "gpio-leds"; 51*724ba675SRob Herring 52*724ba675SRob Herring led-usb { 53*724ba675SRob Herring label = "bcm53xx:blue:usb"; 54*724ba675SRob Herring gpios = <&hc595 0 GPIO_ACTIVE_HIGH>; 55*724ba675SRob Herring trigger-sources = <&ohci_port1>, <&ehci_port1>, 56*724ba675SRob Herring <&xhci_port1>, <&ohci_port2>, 57*724ba675SRob Herring <&ehci_port2>; 58*724ba675SRob Herring linux,default-trigger = "usbport"; 59*724ba675SRob Herring }; 60*724ba675SRob Herring 61*724ba675SRob Herring led-power0 { 62*724ba675SRob Herring label = "bcm53xx:red:power"; 63*724ba675SRob Herring gpios = <&hc595 1 GPIO_ACTIVE_HIGH>; 64*724ba675SRob Herring }; 65*724ba675SRob Herring 66*724ba675SRob Herring led-power1 { 67*724ba675SRob Herring label = "bcm53xx:white:power"; 68*724ba675SRob Herring gpios = <&hc595 2 GPIO_ACTIVE_HIGH>; 69*724ba675SRob Herring linux,default-trigger = "default-on"; 70*724ba675SRob Herring }; 71*724ba675SRob Herring 72*724ba675SRob Herring led-router0 { 73*724ba675SRob Herring label = "bcm53xx:blue:router"; 74*724ba675SRob Herring gpios = <&hc595 3 GPIO_ACTIVE_HIGH>; 75*724ba675SRob Herring linux,default-trigger = "default-on"; 76*724ba675SRob Herring }; 77*724ba675SRob Herring 78*724ba675SRob Herring led-router1 { 79*724ba675SRob Herring label = "bcm53xx:amber:router"; 80*724ba675SRob Herring gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; 81*724ba675SRob Herring }; 82*724ba675SRob Herring 83*724ba675SRob Herring led-wan { 84*724ba675SRob Herring label = "bcm53xx:blue:wan"; 85*724ba675SRob Herring gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; 86*724ba675SRob Herring linux,default-trigger = "default-on"; 87*724ba675SRob Herring }; 88*724ba675SRob Herring 89*724ba675SRob Herring led-wireless0 { 90*724ba675SRob Herring label = "bcm53xx:blue:wireless"; 91*724ba675SRob Herring gpios = <&hc595 6 GPIO_ACTIVE_HIGH>; 92*724ba675SRob Herring }; 93*724ba675SRob Herring 94*724ba675SRob Herring led-wireless1 { 95*724ba675SRob Herring label = "bcm53xx:amber:wireless"; 96*724ba675SRob Herring gpios = <&hc595 7 GPIO_ACTIVE_HIGH>; 97*724ba675SRob Herring }; 98*724ba675SRob Herring }; 99*724ba675SRob Herring 100*724ba675SRob Herring gpio-keys { 101*724ba675SRob Herring compatible = "gpio-keys"; 102*724ba675SRob Herring 103*724ba675SRob Herring button-restart { 104*724ba675SRob Herring label = "Reset"; 105*724ba675SRob Herring linux,code = <KEY_RESTART>; 106*724ba675SRob Herring gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 107*724ba675SRob Herring }; 108*724ba675SRob Herring 109*724ba675SRob Herring button-aoss { 110*724ba675SRob Herring label = "AOSS"; 111*724ba675SRob Herring linux,code = <KEY_WPS_BUTTON>; 112*724ba675SRob Herring gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>; 113*724ba675SRob Herring }; 114*724ba675SRob Herring 115*724ba675SRob Herring /* Commit mode set by switch? */ 116*724ba675SRob Herring button-mode { 117*724ba675SRob Herring label = "Mode"; 118*724ba675SRob Herring linux,code = <KEY_SETUP>; 119*724ba675SRob Herring gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>; 120*724ba675SRob Herring }; 121*724ba675SRob Herring 122*724ba675SRob Herring /* Switch: AP mode */ 123*724ba675SRob Herring button-sw-ap { 124*724ba675SRob Herring label = "AP"; 125*724ba675SRob Herring linux,code = <BTN_0>; 126*724ba675SRob Herring gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>; 127*724ba675SRob Herring }; 128*724ba675SRob Herring 129*724ba675SRob Herring button-eject { 130*724ba675SRob Herring label = "USB eject"; 131*724ba675SRob Herring linux,code = <KEY_EJECTCD>; 132*724ba675SRob Herring gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>; 133*724ba675SRob Herring }; 134*724ba675SRob Herring }; 135*724ba675SRob Herring}; 136*724ba675SRob Herring 137*724ba675SRob Herring&usb2 { 138*724ba675SRob Herring vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; 139*724ba675SRob Herring}; 140*724ba675SRob Herring 141*724ba675SRob Herring&usb3 { 142*724ba675SRob Herring vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>; 143*724ba675SRob Herring}; 144*724ba675SRob Herring 145*724ba675SRob Herring&spi_nor { 146*724ba675SRob Herring status = "okay"; 147*724ba675SRob Herring}; 148*724ba675SRob Herring 149*724ba675SRob Herring&usb3_phy { 150*724ba675SRob Herring status = "okay"; 151*724ba675SRob Herring}; 152