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>
10 led-boot = &led_status_amber;
11 led-failsafe = &led_status_amber;
12 led-running = &led_status_green;
13 led-upgrade = &led_status_red;
17 compatible = "gpio-keys";
21 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
22 linux,code = <KEY_LIGHTS_TOGGLE>;
23 linux,input-type = <EV_SW>;
28 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
35 linux,code = <KEY_WPS_BUTTON>;
40 compatible = "gpio-leds";
42 led_status_green: status_green {
43 label = "green:status";
44 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
47 led_status_red: status_red {
49 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
52 led_status_amber: status_amber {
53 label = "amber:status";
54 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
65 compatible = "pci14c3,7615";
66 reg = <0x0000 0 0 0 0>;
67 mediatek,mtd-eeprom = <&factory 0x0000>;
68 ieee80211-freq-limit = <2400000 2500000>;
74 compatible = "pci14c3,7615";
75 reg = <0x0000 0 0 0 0>;
76 mediatek,mtd-eeprom = <&factory 0x8000>;
77 ieee80211-freq-limit = <5000000 6000000>;
83 groups = "uart2", "uart3", "jtag", "wdt";
92 compatible = "fixed-partitions";
103 label = "u-boot-env";
104 reg = <0x80000 0x80000>;
107 factory: partition@100000 {
109 reg = <0x100000 0x40000>;
114 * uboot expects to find kernels at 0x140000 & 0x2140000,
115 * referred to as Uimage & Uimage1 in factory FW, respectively.
116 * U-boot variable 'bootImage' controls which is booted;
117 * 0 for the first, 1 for the 2nd.
118 * There's a 3rd partition, Uimage2 (0x4140000), which
119 * I expected to be a recovery image, but is actually blank.
121 * A kernel is considered suitable for handing control over
122 * if its linux magic number exists & uImage CRC are correct.
123 * If either of those conditions fail, 'bootImage' value
124 * is toggled in uboot env & a restart performed in the hope that the
125 * alternate kernel is okay.
127 * Note uboot's tftp flash install writes the transferred
128 * image to the active kernel partition.
133 reg = <0x140000 0x400000>;
138 reg = <0x540000 0x1c00000>;
143 reg = <0x2140000 0x2000000>;
148 reg = <0x4140000 0x2000000>;
153 reg = <0x6140000 0xa00000>;
158 reg = <0x6b40000 0xa00000>;
163 reg = <0x7540000 0x840000>;
169 reg = <0x7d80000 0x100000>;
175 reg = <0x7e80000 0x100000>;