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 = "openmesh,om2p-v1", "qca,ar7240";
11 model = "OpenMesh OM2P v1";
14 /delete-property/ bootargs;
18 led-boot = &led_power_blue;
19 led-failsafe = &led_power_blue;
20 led-running = &led_power_blue;
21 led-upgrade = &led_power_blue;
22 label-mac-device = ð0;
26 compatible = "gpio-keys";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-leds";
38 pinctrl-names = "default";
39 pinctrl-0 = <&switch_led_disable_pins>;
41 led_power_blue: power_blue {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_BLUE>;
44 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
56 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
60 label = "yellow:wifi";
61 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
65 function = LED_FUNCTION_LAN;
66 color = <LED_COLOR_ID_BLUE>;
67 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 function = LED_FUNCTION_WAN;
72 color = <LED_COLOR_ID_BLUE>;
73 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
78 compatible = "linux,wdt-gpio";
79 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
81 /* hw_margin_ms is actually 300s but driver limits it to 60s */
82 hw_margin_ms = <60000>;
91 compatible = "jedec,spi-nor";
93 spi-max-frequency = <40000000>;
94 linux,mtd-name = "ar7240-nor0";
96 /* partitions are passed via bootloader */
98 compatible = "fixed-partitions";
104 reg = <0x000000 0x040000>;
109 label = "u-boot-env";
110 reg = <0x040000 0x040000>;
115 reg = <0x080000 0x140000>;
121 reg = <0x1c0000 0x700000>;
126 reg = <0x8c0000 0x700000>;
131 reg = <0xfc0000 0x040000>;
135 compatible = "fixed-layout";
136 #address-cells = <1>;
139 macaddr_art_0: macaddr@0 {
143 macaddr_art_6: macaddr@6 {
147 calibration_art_1000: calibration@1000 {
148 reg = <0x1000 0x440>;
157 nvmem-cells = <&macaddr_art_0>;
158 nvmem-cell-names = "mac-address";
164 nvmem-cells = <&macaddr_art_6>;
165 nvmem-cell-names = "mac-address";
172 compatible = "pci168c,002a";
173 reg = <0x0000 0 0 0 0>;
174 nvmem-cells = <&calibration_art_1000>;
175 nvmem-cell-names = "calibration";