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 nvmem-cells = <&eeprom_factory_0>;
68 nvmem-cell-names = "eeprom";
69 ieee80211-freq-limit = <2400000 2500000>;
75 compatible = "pci14c3,7615";
76 reg = <0x0000 0 0 0 0>;
77 nvmem-cells = <&eeprom_factory_8000>;
78 nvmem-cell-names = "eeprom";
79 ieee80211-freq-limit = <5000000 6000000>;
85 groups = "uart2", "uart3", "jtag", "wdt";
94 compatible = "fixed-partitions";
105 label = "u-boot-env";
106 reg = <0x80000 0x80000>;
109 factory: partition@100000 {
110 compatible = "nvmem-cells";
112 reg = <0x100000 0x40000>;
113 #address-cells = <1>;
117 eeprom_factory_0: eeprom@0 {
121 eeprom_factory_8000: eeprom@8000 {
122 reg = <0x8000 0x4da8>;
127 * uboot expects to find kernels at 0x140000 & 0x2140000,
128 * referred to as Uimage & Uimage1 in factory FW, respectively.
129 * U-boot variable 'bootImage' controls which is booted;
130 * 0 for the first, 1 for the 2nd.
131 * There's a 3rd partition, Uimage2 (0x4140000), which
132 * I expected to be a recovery image, but is actually blank.
134 * A kernel is considered suitable for handing control over
135 * if its linux magic number exists & uImage CRC are correct.
136 * If either of those conditions fail, 'bootImage' value
137 * is toggled in uboot env & a restart performed in the hope that the
138 * alternate kernel is okay.
140 * Note uboot's tftp flash install writes the transferred
141 * image to the active kernel partition.
146 reg = <0x140000 0x400000>;
151 reg = <0x540000 0x1c00000>;
156 reg = <0x2140000 0x2000000>;
161 reg = <0x4140000 0x2000000>;
166 reg = <0x6140000 0xa00000>;
171 reg = <0x6b40000 0xa00000>;
176 reg = <0x7540000 0x840000>;
182 reg = <0x7d80000 0x100000>;
188 reg = <0x7e80000 0x100000>;