0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003 * Broadcom BCM470X / BCM5301X ARM platform code.
0004 * DTS for Buffalo WZR-1750DHP
0005 *
0006 * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
0007 */
0008
0009 /dts-v1/;
0010
0011 #include "bcm4708.dtsi"
0012 #include "bcm5301x-nand-cs0-bch8.dtsi"
0013
0014 / {
0015 compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
0016 model = "Buffalo WZR-1750DHP (BCM4708)";
0017
0018 chosen {
0019 bootargs = "console=ttyS0,115200 earlycon";
0020 };
0021
0022 memory@0 {
0023 device_type = "memory";
0024 reg = <0x00000000 0x08000000>,
0025 <0x88000000 0x18000000>;
0026 };
0027
0028 spi {
0029 compatible = "spi-gpio";
0030 num-chipselects = <1>;
0031 gpio-sck = <&chipcommon 7 0>;
0032 gpio-mosi = <&chipcommon 4 0>;
0033 cs-gpios = <&chipcommon 6 0>;
0034 #address-cells = <1>;
0035 #size-cells = <0>;
0036
0037 hc595: gpio_spi@0 {
0038 compatible = "fairchild,74hc595";
0039 reg = <0>;
0040 registers-number = <1>;
0041 spi-max-frequency = <100000>;
0042
0043 gpio-controller;
0044 #gpio-cells = <2>;
0045
0046 };
0047 };
0048
0049 leds {
0050 compatible = "gpio-leds";
0051
0052 usb {
0053 label = "bcm53xx:blue:usb";
0054 gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
0055 trigger-sources = <&ohci_port1>, <&ehci_port1>,
0056 <&xhci_port1>, <&ohci_port2>,
0057 <&ehci_port2>;
0058 linux,default-trigger = "usbport";
0059 };
0060
0061 power0 {
0062 label = "bcm53xx:red:power";
0063 gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
0064 };
0065
0066 power1 {
0067 label = "bcm53xx:white:power";
0068 gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
0069 linux,default-trigger = "default-on";
0070 };
0071
0072 router0 {
0073 label = "bcm53xx:blue:router";
0074 gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
0075 linux,default-trigger = "default-on";
0076 };
0077
0078 router1 {
0079 label = "bcm53xx:amber:router";
0080 gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
0081 };
0082
0083 wan {
0084 label = "bcm53xx:blue:wan";
0085 gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
0086 linux,default-trigger = "default-on";
0087 };
0088
0089 wireless0 {
0090 label = "bcm53xx:blue:wireless";
0091 gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
0092 };
0093
0094 wireless1 {
0095 label = "bcm53xx:amber:wireless";
0096 gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
0097 };
0098 };
0099
0100 gpio-keys {
0101 compatible = "gpio-keys";
0102
0103 button-restart {
0104 label = "Reset";
0105 linux,code = <KEY_RESTART>;
0106 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
0107 };
0108
0109 button-aoss {
0110 label = "AOSS";
0111 linux,code = <KEY_WPS_BUTTON>;
0112 gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
0113 };
0114
0115 /* Commit mode set by switch? */
0116 button-mode {
0117 label = "Mode";
0118 linux,code = <KEY_SETUP>;
0119 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
0120 };
0121
0122 /* Switch: AP mode */
0123 button-sw-ap {
0124 label = "AP";
0125 linux,code = <BTN_0>;
0126 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
0127 };
0128
0129 button-eject {
0130 label = "USB eject";
0131 linux,code = <KEY_EJECTCD>;
0132 gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
0133 };
0134 };
0135 };
0136
0137 &usb2 {
0138 vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
0139 };
0140
0141 &usb3 {
0142 vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
0143 };
0144
0145 &spi_nor {
0146 status = "okay";
0147 };
0148
0149 &usb3_phy {
0150 status = "okay";
0151 };