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 compatible = "jcg,jhr-ac876m", "mediatek,mt7621-soc";
11 model = "JCG JHR-AC876M";
15 led-failsafe = &led_wps;
16 led-running = &led_wps;
17 led-upgrade = &led_wps;
18 label-mac-device = &gmac1;
22 compatible = "gpio-leds";
26 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
27 trigger-sources = <&xhci_ehci_port1>;
28 linux,default-trigger = "usbport";
33 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
34 trigger-sources = <&ehci_port2>;
35 linux,default-trigger = "usbport";
39 function = LED_FUNCTION_WPS;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
50 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_WPS_BUTTON>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <80000000>;
72 compatible = "fixed-partitions";
84 reg = <0x30000 0x10000>;
90 reg = <0x40000 0x10000>;
94 compatible = "fixed-layout";
98 eeprom_factory_0: eeprom@0 {
102 eeprom_factory_8000: eeprom@8000 {
103 reg = <0x8000 0x4da8>;
106 macaddr_factory_4: macaddr@4 {
110 macaddr_factory_e000: macaddr@e000 {
117 compatible = "denx,uimage";
119 reg = <0x50000 0xfb0000>;
131 compatible = "mediatek,mt76";
132 reg = <0x0000 0 0 0 0>;
133 nvmem-cells = <&eeprom_factory_0>;
134 nvmem-cell-names = "eeprom";
135 ieee80211-freq-limit = <2400000 2500000>;
145 compatible = "mediatek,mt76";
146 reg = <0x0000 0 0 0 0>;
147 nvmem-cells = <&eeprom_factory_8000>;
148 nvmem-cell-names = "eeprom";
149 ieee80211-freq-limit = <5000000 6000000>;
158 nvmem-cells = <&macaddr_factory_e000>;
159 nvmem-cell-names = "mac-address";
165 phy-handle = <ðphy4>;
167 nvmem-cells = <&macaddr_factory_4>;
168 nvmem-cell-names = "mac-address";
172 ethphy4: ethernet-phy@4 {
203 groups = "i2c", "uart3", "jtag", "wdt";