1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Broadcom BCM470X / BCM5301X ARM platform code.
4 * DTS for Buffalo WZR-1166DHP and WZR-1166DHP2
6 * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
7 * Copyright (C) 2022 SHIMAMOTO Takayoshi <takayoshi.shimamoto.360@gmail.com>
11 #include "bcm4708.dtsi"
12 #include "bcm5301x-nand-cs0-bch8.dtsi"
13 #include <dt-bindings/leds/common.h>
17 compatible = "spi-gpio";
18 num-chipselects = <1>;
19 sck-gpios = <&chipcommon 7 0>;
20 mosi-gpios = <&chipcommon 4 0>;
21 cs-gpios = <&chipcommon 6 0>;
26 compatible = "fairchild,74hc595";
28 registers-number = <1>;
29 spi-max-frequency = <100000>;
38 compatible = "gpio-leds";
41 /* label = "bcm53xx:blue:usb"; */
42 function = LED_FUNCTION_USB;
43 color = <LED_COLOR_ID_BLUE>;
44 gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
45 trigger-sources = <&ohci_port1>, <&ehci_port1>,
46 <&xhci_port1>, <&ohci_port2>,
48 linux,default-trigger = "usbport";
52 /* label = "bcm53xx:red:power"; */
53 function = LED_FUNCTION_FAULT;
54 color = <LED_COLOR_ID_RED>;
55 gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
59 /* label = "bcm53xx:white:power"; */
60 function = LED_FUNCTION_POWER;
61 color = <LED_COLOR_ID_WHITE>;
62 gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
63 linux,default-trigger = "default-on";
67 /* label = "bcm53xx:blue:router"; */
68 function = LED_FUNCTION_STATUS;
69 color = <LED_COLOR_ID_BLUE>;
70 gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
71 linux,default-trigger = "default-on";
75 /* label = "bcm53xx:amber:router"; */
76 function = LED_FUNCTION_STATUS;
77 color = <LED_COLOR_ID_AMBER>;
78 gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
82 /* label = "bcm53xx:blue:wan"; */
83 function = LED_FUNCTION_WAN;
84 color = <LED_COLOR_ID_BLUE>;
85 gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
86 linux,default-trigger = "default-on";
90 /* label = "bcm53xx:blue:wireless"; */
91 function = LED_FUNCTION_WLAN;
92 color = <LED_COLOR_ID_BLUE>;
93 gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
97 /* label = "bcm53xx:amber:wireless"; */
98 function = LED_FUNCTION_WLAN;
99 color = <LED_COLOR_ID_AMBER>;
100 gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
105 compatible = "gpio-keys";
109 linux,code = <KEY_RESTART>;
110 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_WPS_BUTTON>;
116 gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
119 /* Commit mode set by switch? */
122 linux,code = <KEY_SETUP>;
123 gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
126 /* Switch: AP mode */
129 linux,code = <BTN_0>;
130 gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_EJECTCD>;
136 gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
142 vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
146 vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;