1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "netgear,r6350", "mediatek,mt7621-soc";
11 model = "Netgear R6350";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 device_type = "memory";
22 reg = <0x0 0x8000000>;
26 bootargs = "console=ttyS0,57600";
30 compatible = "gpio-leds";
33 label = "r6350:green:power";
34 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
38 label = "r6350:green:usb";
39 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
41 linux,default-trigger = "usbport";
45 label = "r6350:green:wan";
46 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
50 label = "r6350:green:wifi";
51 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-keys-polled";
61 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
67 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 compatible = "gpio-export";
77 gpio-export,name = "usbpower";
78 gpio-export,output = <1>;
79 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
88 compatible = "fixed-partitions";
99 label = "SC PART_MAP";
100 reg = <0x100000 0x100000>;
106 reg = <0x200000 0x400000>;
111 reg = <0x600000 0x2800000>;
116 reg = <0x2e00000 0x1800000>;
120 factory: partition@4600000 {
122 reg = <0x4600000 0x200000>;
128 reg = <0x4800000 0x3800000>;
141 mediatek,mtd-eeprom = <&factory 0x0>;
142 ieee80211-freq-limit = <2400000 2500000>;
147 mtd-mac-address = <&factory 0x4>;
151 state_default: pinctrl0 {
153 ralink,group = "uart3", "uart2", "jtag", "wdt";
154 ralink,function = "gpio";