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-an", "qca,ar9344";
11 model = "OpenMesh OM5P-AN";
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 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 = "i2c-gpio";
79 gpios = <&gpio 21 GPIO_ACTIVE_HIGH /* sda */
80 &gpio 20 GPIO_ACTIVE_HIGH /* scl */
85 i2c-gpio,scl-open-drain;
86 i2c-gpio,sda-open-drain;
89 compatible = "ti,tmp423";
95 compatible = "linux,wdt-gpio";
96 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
98 /* hw_margin_ms is actually 300s but driver limits it to 60s */
99 hw_margin_ms = <60000>;
105 clock-frequency = <40000000>;
109 led_lan_wan_blue_pin: pinmux_lan_wan_blue_pin {
110 pinctrl-single,bits = <0xc 0x0 0xffff0000>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <40000000>;
122 /* partitions are passed via bootloader */
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
130 reg = <0x000000 0x040000>;
135 label = "u-boot-env";
136 reg = <0x040000 0x010000>;
141 reg = <0x050000 0x060000>;
147 reg = <0x0b0000 0x7a0000>;
152 reg = <0x850000 0x7a0000>;
157 reg = <0xff0000 0x010000>;
161 compatible = "fixed-layout";
162 #address-cells = <1>;
165 macaddr_art_0: macaddr@0 {
166 compatible = "mac-base";
168 #nvmem-cell-cells = <1>;
171 calibration_art_1000: calibration@1000 {
172 reg = <0x1000 0x440>;
175 calibration_art_5000: calibration@5000 {
176 reg = <0x5000 0x440>;
187 phy7: ethernet-phy@7 {
197 pll-data = <0x02000000 0x00000101 0x00001313>;
199 nvmem-cells = <&macaddr_art_0 0>;
200 nvmem-cell-names = "mac-address";
202 phy-mode = "rgmii-id";
203 phy-handle = <&phy7>;
210 switch-phy-swap = <1>;
217 nvmem-cells = <&macaddr_art_0 1>;
218 nvmem-cell-names = "mac-address";
224 nvmem-cells = <&macaddr_art_0 2>, <&calibration_art_1000>;
225 nvmem-cell-names = "mac-address", "calibration";
232 compatible = "pci168c,0030";
233 reg = <0x0000 0 0 0 0>;
234 nvmem-cells = <&macaddr_art_0 16>, <&calibration_art_5000>;
235 nvmem-cell-names = "mac-address", "calibration";