ath79: provide label MAC address
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_tplink_tl-wr710n-v1.dts
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 model = "TP-Link TL-WR710N v1";
11 compatible = "tplink,tl-wr710n-v1", "qca,ar9331";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
19 label-mac-device = &eth0;
20 };
21
22 keys {
23 compatible = "gpio-keys-polled";
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 leds {
35 compatible = "gpio-leds";
36
37 led_system: system {
38 label = "tl-wr710n:green:system";
39 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 reg_usb_vbus: regulator {
44 compatible = "regulator-fixed";
45 regulator-name = "usb_vbus";
46 regulator-min-microvolt = <5000000>;
47 regulator-max-microvolt = <5000000>;
48 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
49 enable-active-high;
50 };
51
52 };
53
54 &spi {
55 status = "okay";
56 num-cs = <1>;
57
58 flash@0 {
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <25000000>;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 uboot: partition@0 {
69 reg = <0x0 0x20000>;
70 label = "u-boot";
71 read-only;
72 };
73
74 firmware: partition@20000 {
75 compatible = "tplink,firmware";
76 reg = <0x20000 0x7d0000>;
77 label = "firmware";
78 };
79
80 art: partition@7f0000 {
81 reg = <0x7f0000 0x10000>;
82 label = "art";
83 read-only;
84 };
85 };
86 };
87 };
88
89 &eth0 {
90 status = "okay";
91
92 mtd-mac-address = <&uboot 0x1fc00>;
93
94 gmac-config {
95 device = <&gmac>;
96
97 switch-phy-addr-swap = <0>;
98 switch-phy-swap = <0>;
99 };
100 };
101
102 &eth1 {
103 status = "okay";
104
105 mtd-mac-address = <&uboot 0x1fc00>;
106 mtd-mac-address-increment = <(-1)>;
107 };
108
109 &gpio {
110 status = "okay";
111 };
112
113 &uart {
114 status = "okay";
115 };
116
117 &usb {
118 dr_mode = "host";
119 vbus-supply = <&reg_usb_vbus>;
120 status = "okay";
121 };
122
123 &usb_phy {
124 status = "okay";
125 };
126
127 &wmac {
128 status = "okay";
129 mtd-cal-data = <&art 0x1000>;
130 mtd-mac-address = <&uboot 0x1fc00>;
131 };