ath79: fix dts of Teltonika RUT9xx devices
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_tplink_tl-wr703n_tl-mr10u.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar9331.dtsi"
7
8 / {
9 aliases {
10 serial0 = &uart;
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 label-mac-device = &eth0;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_system: system {
33 label = "tl-wr703n:blue:system";
34 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 reg_usb_vbus: reg_usb_vbus {
39 compatible = "regulator-fixed";
40 regulator-name = "usb_vbus";
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
43 enable-active-high;
44 };
45 };
46
47 &spi {
48 status = "okay";
49
50 num-cs = <1>;
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 reg = <0>;
55 spi-max-frequency = <25000000>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 uboot: partition@0 {
63 reg = <0x0 0x20000>;
64 label = "u-boot";
65 read-only;
66 };
67
68 partition@20000 {
69 compatible = "tplink,firmware";
70 reg = <0x20000 0x3d0000>;
71 label = "firmware";
72 };
73
74 art: partition@3f0000 {
75 reg = <0x3f0000 0x10000>;
76 label = "art";
77 read-only;
78 };
79 };
80 };
81 };
82
83 &eth0 {
84 status = "okay";
85
86 mtd-mac-address = <&uboot 0x1fc00>;
87
88 gmac-config {
89 device = <&gmac>;
90
91 switch-phy-addr-swap = <0>;
92 switch-phy-swap = <0>;
93 };
94 };
95
96 &eth1 {
97 status = "okay";
98
99 compatible = "syscon", "simple-mfd";
100 };
101
102 &gpio {
103 status = "okay";
104 };
105
106 &uart {
107 status = "okay";
108 };
109
110 &usb {
111 dr_mode = "host";
112 vbus-supply = <&reg_usb_vbus>;
113 status = "okay";
114 };
115
116 &usb_phy {
117 status = "okay";
118 };
119
120 &wmac {
121 status = "okay";
122
123 mtd-cal-data = <&art 0x1000>;
124 mtd-mac-address = <&uboot 0x1fc00>;
125 };