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,om5p", "qca,ar9344";
11 model = "OpenMesh OM5P";
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 = ð1;
26 compatible = "gpio-keys";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-leds";
38 pinctrl-names = "default";
39 pinctrl-0 = <&led_lan_wan_blue_pin>;
41 led_power_blue: power_blue {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_BLUE>;
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 function = LED_FUNCTION_WAN;
50 color = <LED_COLOR_ID_BLUE>;
51 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55 function = LED_FUNCTION_LAN;
56 color = <LED_COLOR_ID_BLUE>;
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
67 label = "yellow:wifi";
68 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
73 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
78 compatible = "linux,wdt-gpio";
79 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
81 /* hw_margin_ms is actually 300s but driver limits it to 60s */
82 hw_margin_ms = <60000>;
88 clock-frequency = <40000000>;
92 led_lan_wan_blue_pin: pinmux_lan_wan_blue_pin {
93 pinctrl-single,bits = <0xc 0x0 0xffff0000>;
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <40000000>;
105 /* partitions are passed via bootloader */
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
113 reg = <0x000000 0x040000>;
118 label = "u-boot-env";
119 reg = <0x040000 0x010000>;
124 reg = <0x050000 0x060000>;
130 reg = <0x0b0000 0x7a0000>;
135 reg = <0x850000 0x7a0000>;
138 art: partition@ff0000 {
140 reg = <0xff0000 0x010000>;
144 compatible = "fixed-layout";
145 #address-cells = <1>;
148 macaddr_art_0: macaddr@0 {
152 macaddr_art_6: macaddr@6 {
164 phy-handle = <&swphy4>;
166 nvmem-cells = <&macaddr_art_6>;
167 nvmem-cell-names = "mac-address";
173 nvmem-cells = <&macaddr_art_0>;
174 nvmem-cell-names = "mac-address";
180 mtd-cal-data = <&art 0x1000>;