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