1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
12 bootargs = "console=ttyS0,115200n8";
16 led-boot = &led_power_amber;
17 led-failsafe = &led_power_amber;
18 led-running = &led_power_green;
19 led-upgrade = &led_power_amber;
23 compatible = "gpio-keys-polled";
28 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
35 linux,code = <KEY_RESTART>;
36 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
42 linux,code = <KEY_RFKILL>;
43 gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
49 compatible = "gpio-leds";
51 pinctrl-names = "default";
52 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
55 function = LED_FUNCTION_WAN;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
61 function = LED_FUNCTION_WAN;
62 color = <LED_COLOR_ID_AMBER>;
63 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
68 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
73 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
78 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
83 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
88 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
93 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
98 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
102 label = "amber:lan4";
103 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
107 function = LED_FUNCTION_WPS;
108 color = <LED_COLOR_ID_GREEN>;
109 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
113 function = LED_FUNCTION_USB;
114 color = <LED_COLOR_ID_GREEN>;
115 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
116 trigger-sources = <&hub_port>;
117 linux,default-trigger = "usbport";
122 compatible = "gpio-leds";
124 led_power_green: power_green {
125 function = LED_FUNCTION_POWER;
126 color = <LED_COLOR_ID_GREEN>;
127 gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
130 led_power_amber: power_amber {
131 function = LED_FUNCTION_POWER;
132 color = <LED_COLOR_ID_AMBER>;
133 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
134 default-state = "keep";
138 function = LED_FUNCTION_WLAN;
139 color = <LED_COLOR_ID_BLUE>;
140 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
141 linux,default-trigger = "phy0tpt";
150 compatible = "jedec,spi-nor";
152 spi-max-frequency = <25000000>;
154 partitions: partitions {
155 compatible = "fixed-partitions";
156 #address-cells = <1>;
167 compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
174 compatible = "pci168c,002e";
175 reg = <0x0000 0 0 0 0>;
182 line-name = "netgear:power:usb";
183 gpios = <4 GPIO_ACTIVE_HIGH>;