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>
9 compatible = "openmesh,om2p-v1", "qca,ar7240";
10 model = "OpenMesh OM2P v1";
13 /delete-property/ bootargs;
17 led-boot = &led_power_blue;
18 led-failsafe = &led_power_blue;
19 led-running = &led_power_blue;
20 led-upgrade = &led_power_blue;
21 label-mac-device = ð0;
25 compatible = "gpio-keys";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
35 compatible = "gpio-leds";
37 pinctrl-names = "default";
38 pinctrl-0 = <&switch_led_disable_pins>;
40 led_power_blue: power_blue {
42 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 linux,default-trigger = "phy0tpt";
54 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
58 label = "yellow:wifi";
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
64 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
69 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
74 compatible = "linux,wdt-gpio";
75 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
77 /* hw_margin_ms is actually 300s but driver limits it to 60s */
78 hw_margin_ms = <60000>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <40000000>;
90 linux,mtd-name = "ar7240-nor0";
92 /* partitions are passed via bootloader */
94 compatible = "fixed-partitions";
100 reg = <0x000000 0x040000>;
105 label = "u-boot-env";
106 reg = <0x040000 0x040000>;
111 reg = <0x080000 0x140000>;
117 reg = <0x1c0000 0x700000>;
122 reg = <0x8c0000 0x700000>;
127 reg = <0xfc0000 0x040000>;
130 compatible = "nvmem-cells";
131 #address-cells = <1>;
134 macaddr_art_0: macaddr@0 {
138 macaddr_art_6: macaddr@6 {
142 calibration_art_1000: calibration@1000 {
143 reg = <0x1000 0x440>;
151 nvmem-cells = <&macaddr_art_0>;
152 nvmem-cell-names = "mac-address";
158 nvmem-cells = <&macaddr_art_6>;
159 nvmem-cell-names = "mac-address";
166 compatible = "pci168c,002a";
167 reg = <0x0000 0 0 0 0>;
168 nvmem-cells = <&calibration_art_1000>;
169 nvmem-cell-names = "calibration";