1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Author: Taishi Shimizu <s.taishi14142@gmail.com> 4 */ 5 6/dts-v1/; 7 8#include "bcm4708.dtsi" 9#include "bcm5301x-nand-cs0-bch8.dtsi" 10#include <dt-bindings/leds/common.h> 11 12/ { 13 compatible = "buffalo,wxr-1750dhp", "brcm,bcm4708"; 14 model = "Buffalo WXR-1750DHP"; 15 16 memory@0 { 17 reg = <0x00000000 0x08000000>, 18 <0x88000000 0x08000000>; 19 device_type = "memory"; 20 }; 21 22 gpio-keys { 23 compatible = "gpio-keys"; 24 25 button-aoss { 26 gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>; 27 label = "AOSS"; 28 linux,code = <KEY_WPS_BUTTON>; 29 }; 30 31 /* GPIO 3 is a switch button with AUTO / MANUAL. */ 32 button-manual { 33 gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>; 34 label = "MANUAL"; 35 linux,code = <BTN_0>; 36 linux,input-type = <EV_SW>; 37 }; 38 39 button-restart { 40 gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; 41 label = "Reset"; 42 linux,code = <KEY_RESTART>; 43 }; 44 45 /* GPIO 8 and 9 are a tri-state switch button with 46 * ROUTER / AP / WB. 47 */ 48 button-router { 49 gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>; 50 label = "ROUTER"; 51 linux,code = <BTN_1>; 52 linux,input-type = <EV_SW>; 53 }; 54 55 button-wb { 56 gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>; 57 label = "WB"; 58 linux,code = <BTN_2>; 59 linux,input-type = <EV_SW>; 60 }; 61 }; 62 63 leds { 64 compatible = "gpio-leds"; 65 66 led-internet { 67 color = <LED_COLOR_ID_WHITE>; 68 function = "internet"; 69 gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>; 70 }; 71 72 led-power0 { 73 color = <LED_COLOR_ID_AMBER>; 74 function = LED_FUNCTION_POWER; 75 gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>; 76 }; 77 78 led-power1 { 79 color = <LED_COLOR_ID_WHITE>; 80 function = LED_FUNCTION_POWER; 81 gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; 82 }; 83 84 led-router0 { 85 color = <LED_COLOR_ID_AMBER>; 86 function = "router"; 87 gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>; 88 }; 89 90 led-router1 { 91 color = <LED_COLOR_ID_WHITE>; 92 function = "router"; 93 gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>; 94 }; 95 96 led-usb { 97 color = <LED_COLOR_ID_GREEN>; 98 function = LED_FUNCTION_USB; 99 gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>; 100 linux,default-trigger = "usbport"; 101 trigger-sources = <&xhci_port1 &ehci_port1 &ohci_port1>; 102 }; 103 }; 104}; 105 106&srab { 107 status = "okay"; 108 109 ports { 110 port@0 { 111 label = "wan"; 112 }; 113 114 port@1 { 115 label = "lan4"; 116 }; 117 118 port@2 { 119 label = "lan3"; 120 }; 121 122 port@3 { 123 label = "lan2"; 124 }; 125 126 port@4 { 127 label = "lan1"; 128 }; 129 }; 130}; 131 132&usb3 { 133 vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_HIGH>; 134}; 135 136&usb3_phy { 137 status = "okay"; 138}; 139