ath79: add WNDR3700 and WNDR3700v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_tplink_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 gpio-keys-polled {
16 compatible = "gpio-keys-polled";
17 poll-interval = <20>;
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25 };
26
27 gpio-leds {
28 compatible = "gpio-leds";
29
30 led_system: system {
31 label = "tl-wr703n:blue:system";
32 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 reg_usb_vbus: reg_usb_vbus {
37 compatible = "regulator-fixed";
38 regulator-name = "usb_vbus";
39 regulator-min-microvolt = <5000000>;
40 regulator-max-microvolt = <5000000>;
41 enable-active-high;
42 };
43
44 };
45
46 &spi {
47 status = "okay";
48 num-cs = <1>;
49
50 flash@0 {
51 compatible = "jedec,spi-nor";
52 reg = <0>;
53 spi-max-frequency = <25000000>;
54
55 partitions {
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 uboot: partition@0 {
61 reg = <0x0 0x20000>;
62 label = "u-boot";
63 read-only;
64 };
65
66 firmware: partition@20000 {
67 reg = <0x20000 0x3d0000>;
68 label = "firmware";
69 };
70
71 art: partition@3f0000 {
72 reg = <0x3f0000 0x10000>;
73 label = "art";
74 read-only;
75 };
76 };
77 };
78 };
79
80 &eth0 {
81 status = "okay";
82
83 mtd-mac-address = <&uboot 0x1fc00>;
84
85 gmac-config {
86 device = <&gmac>;
87
88 switch-phy-addr-swap = <0>;
89 switch-phy-swap = <0>;
90 };
91 };
92
93 &eth1 {
94 status = "okay";
95 compatible = "syscon", "simple-mfd";
96 };
97
98 &gpio {
99 status = "okay";
100 };
101
102 &uart {
103 status = "okay";
104 };
105
106 &usb {
107 dr_mode = "host";
108 vbus-supply = <&reg_usb_vbus>;
109 status = "okay";
110 };
111
112 &usb_phy {
113 status = "okay";
114 };
115
116 &wmac {
117 status = "okay";
118 mtd-cal-data = <&art 0x1000>;
119 mtd-mac-address = <&uboot 0x1fc00>;
120 };