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>
10 model = "Netgear R6100";
11 compatible = "netgear,r6100", "qca,ar9344";
14 label-mac-device = ð0;
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_amber;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
22 compatible = "gpio-export";
26 gpio-export,name = "usb-power";
27 gpio-export,output = <1>;
28 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
33 compatible = "gpio-keys";
37 linux,code = <KEY_RESTART>;
38 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
44 linux,code = <KEY_RFKILL>;
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
51 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
58 compatible = "gpio-leds";
60 led_power_amber: power_amber {
61 function = LED_FUNCTION_POWER;
62 color = <LED_COLOR_ID_AMBER>;
63 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
66 led_power_green: power_green {
67 function = LED_FUNCTION_POWER;
68 color = <LED_COLOR_ID_GREEN>;
69 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
73 function = LED_FUNCTION_USB;
74 color = <LED_COLOR_ID_BLUE>;
75 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
76 trigger-sources = <&hub_port>;
77 linux,default-trigger = "usbport";
81 function = LED_FUNCTION_WAN;
82 color = <LED_COLOR_ID_AMBER>;
83 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
87 function = LED_FUNCTION_WAN;
88 color = <LED_COLOR_ID_GREEN>;
89 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
93 function = LED_FUNCTION_WLAN;
94 color = <LED_COLOR_ID_BLUE>;
95 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
96 linux,default-trigger = "phy1tpt";
104 phy-handle = <&swphy0>;
106 nvmem-cells = <&macaddr_caldata_6>;
107 nvmem-cell-names = "mac-address";
111 switch-phy-swap = <1>;
118 nvmem-cells = <&macaddr_caldata_0>;
119 nvmem-cell-names = "mac-address";
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
132 reg = <0x0000000 0x0020000>;
136 caldata: partition@20000 {
138 reg = <0x0020000 0x0040000>;
142 compatible = "fixed-layout";
143 #address-cells = <1>;
146 cal_ath9k: calibration@1000 {
147 reg = <0x1000 0x440>;
150 cal_ath10k: calibration@5000 {
151 reg = <0x5000 0x844>;
154 macaddr_caldata_0: macaddr@0 {
158 macaddr_caldata_6: macaddr@6 {
162 macaddr_caldata_c: macaddr@c {
169 label = "caldata-backup";
170 reg = <0x0060000 0x0040000>;
176 reg = <0x00a0000 0x0080000>;
182 reg = <0x0120000 0x0080000>;
188 reg = <0x01a0000 0x0400000>;
193 reg = <0x05a0000 0x7560000>;
198 reg = <0x7b00000 0x0200000>;
203 label = "traffic_meter";
204 reg = <0x7d00000 0x0300000>;
214 compatible = "qcom,ath10k";
215 reg = <0x0000 0 0 0 0>;
217 nvmem-cells = <&cal_ath10k>, <&macaddr_caldata_c>;
218 nvmem-cell-names = "calibration", "mac-address";
223 clock-frequency = <40000000>;
237 nvmem-cells = <&cal_ath9k>;
238 nvmem-cell-names = "calibration";