kirkwood: set testing kernel version to 5.10
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9344_openmesh_om5p.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "openmesh,om5p", "qca,ar9344";
10 model = "OpenMesh OM5P";
11
12 chosen {
13 /delete-property/ bootargs;
14 };
15
16 aliases {
17 serial0 = &uart;
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 = &eth1;
23 };
24
25 keys {
26 compatible = "gpio-keys";
27
28 reset {
29 label = "reset";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 pinctrl-names = "default";
39 pinctrl-0 = <&led_lan_wan_blue_pin>;
40
41 led_power_blue: power_blue {
42 label = "blue:power";
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44 default-state = "on";
45 };
46
47 wan_blue {
48 label = "blue:wan";
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
50 };
51
52 lan_blue {
53 label = "blue:lan";
54 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
55 };
56
57 wifi_green {
58 label = "green:wifi";
59 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62
63 wifi_yellow {
64 label = "yellow:wifi";
65 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
66 };
67
68 wifi_red {
69 label = "red:wifi";
70 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
71 };
72 };
73
74 watchdog {
75 compatible = "linux,wdt-gpio";
76 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
77 hw_algo = "toggle";
78 /* hw_margin_ms is actually 300s but driver limits it to 60s */
79 hw_margin_ms = <60000>;
80 always-running;
81 };
82 };
83
84 &ref {
85 clock-frequency = <40000000>;
86 };
87
88 &uart {
89 status = "okay";
90 };
91
92 &pinmux {
93 led_lan_wan_blue_pin: pinmux_lan_wan_blue_pin {
94 pinctrl-single,bits = <0xc 0x0 0xffff0000>;
95 };
96 };
97
98 &spi {
99 status = "okay";
100
101 flash@0 {
102 compatible = "jedec,spi-nor";
103 reg = <0>;
104 spi-max-frequency = <40000000>;
105
106 /* partitions are passed via bootloader */
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 partition@0 {
113 label = "u-boot";
114 reg = <0x000000 0x040000>;
115 read-only;
116 };
117
118 partition@40000 {
119 label = "u-boot-env";
120 reg = <0x040000 0x010000>;
121 };
122
123 partition@50000 {
124 label = "custom";
125 reg = <0x050000 0x060000>;
126 read-only;
127 };
128
129 partition@b0000 {
130 label = "inactive";
131 reg = <0x0b0000 0x7a0000>;
132 };
133
134 partition@850000 {
135 label = "inactive2";
136 reg = <0x850000 0x7a0000>;
137 };
138
139 art: partition@ff0000 {
140 label = "ART";
141 reg = <0xff0000 0x010000>;
142 read-only;
143 };
144 };
145 };
146 };
147
148 &eth0 {
149 status = "okay";
150
151 phy-handle = <&swphy4>;
152
153 mtd-mac-address = <&art 0x6>;
154 };
155
156 &eth1 {
157 status = "okay";
158
159 mtd-mac-address = <&art 0x0>;
160 };
161
162 &wmac {
163 status = "okay";
164
165 mtd-cal-data = <&art 0x1000>;
166 };