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