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>
11 led-boot = &led_status_amber;
12 led-failsafe = &led_status_amber;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_red;
18 compatible = "gpio-keys";
22 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
23 linux,code = <KEY_LIGHTS_TOGGLE>;
24 linux,input-type = <EV_SW>;
29 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
43 led_status_green: status_green {
44 function = LED_FUNCTION_STATUS;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
49 led_status_red: status_red {
50 function = LED_FUNCTION_STATUS;
51 color = <LED_COLOR_ID_RED>;
52 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
55 led_status_amber: status_amber {
56 function = LED_FUNCTION_STATUS;
57 color = <LED_COLOR_ID_AMBER>;
58 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
69 compatible = "pci14c3,7615";
70 reg = <0x0000 0 0 0 0>;
71 nvmem-cells = <&eeprom_factory_0>;
72 nvmem-cell-names = "eeprom";
73 ieee80211-freq-limit = <2400000 2500000>;
79 compatible = "pci14c3,7615";
80 reg = <0x0000 0 0 0 0>;
81 nvmem-cells = <&eeprom_factory_8000>;
82 nvmem-cell-names = "eeprom";
83 ieee80211-freq-limit = <5000000 6000000>;
89 groups = "uart2", "uart3", "jtag", "wdt";
98 compatible = "fixed-partitions";
109 label = "u-boot-env";
110 reg = <0x80000 0x80000>;
113 factory: partition@100000 {
115 reg = <0x100000 0x40000>;
119 compatible = "fixed-layout";
120 #address-cells = <1>;
123 eeprom_factory_0: eeprom@0 {
127 eeprom_factory_8000: eeprom@8000 {
128 reg = <0x8000 0x4da8>;
134 * uboot expects to find kernels at 0x140000 & 0x2140000,
135 * referred to as Uimage & Uimage1 in factory FW, respectively.
136 * U-boot variable 'bootImage' controls which is booted;
137 * 0 for the first, 1 for the 2nd.
138 * There's a 3rd partition, Uimage2 (0x4140000), which
139 * I expected to be a recovery image, but is actually blank.
141 * A kernel is considered suitable for handing control over
142 * if its linux magic number exists & uImage CRC are correct.
143 * If either of those conditions fail, 'bootImage' value
144 * is toggled in uboot env & a restart performed in the hope that the
145 * alternate kernel is okay.
147 * Note uboot's tftp flash install writes the transferred
148 * image to the active kernel partition.
153 reg = <0x140000 0x400000>;
158 reg = <0x540000 0x1c00000>;
163 reg = <0x2140000 0x2000000>;
168 reg = <0x4140000 0x2000000>;
173 reg = <0x6140000 0xa00000>;
178 reg = <0x6b40000 0xa00000>;
183 reg = <0x7540000 0x840000>;
189 reg = <0x7d80000 0x100000>;
195 reg = <0x7e80000 0x100000>;