ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[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 "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "blue:system";
33 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 reg_usb_vbus: reg_usb_vbus {
38 compatible = "regulator-fixed";
39 regulator-name = "usb_vbus";
40 regulator-min-microvolt = <5000000>;
41 regulator-max-microvolt = <5000000>;
42 enable-active-high;
43 };
44 };
45
46 &spi {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <25000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 uboot: partition@0 {
60 reg = <0x0 0x20000>;
61 label = "u-boot";
62 read-only;
63
64 nvmem-layout {
65 compatible = "fixed-layout";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 macaddr_uboot_1fc00: macaddr@1fc00 {
70 reg = <0x1fc00 0x6>;
71 };
72 };
73 };
74
75 partition@20000 {
76 compatible = "tplink,firmware";
77 reg = <0x20000 0x3d0000>;
78 label = "firmware";
79 };
80
81 art: partition@3f0000 {
82 reg = <0x3f0000 0x10000>;
83 label = "art";
84 read-only;
85 };
86 };
87 };
88 };
89
90 &eth0 {
91 status = "okay";
92
93 nvmem-cells = <&macaddr_uboot_1fc00>;
94 nvmem-cell-names = "mac-address";
95
96 gmac-config {
97 device = <&gmac>;
98
99 switch-phy-addr-swap = <0>;
100 switch-phy-swap = <0>;
101 };
102 };
103
104 &eth1 {
105 status = "okay";
106
107 compatible = "syscon", "simple-mfd";
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 nvmem-cells = <&macaddr_uboot_1fc00>;
125 nvmem-cell-names = "mac-address";
126 };