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