octeontx: drop target
[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
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 partition@3f0000 {
82 reg = <0x3f0000 0x10000>;
83 label = "art";
84 read-only;
85
86 nvmem-layout {
87 compatible = "fixed-layout";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 cal_art_1000: calibration@1000 {
92 reg = <0x1000 0x440>;
93 };
94 };
95 };
96 };
97 };
98 };
99
100 &eth0 {
101 status = "okay";
102
103 nvmem-cells = <&macaddr_uboot_1fc00>;
104 nvmem-cell-names = "mac-address";
105
106 gmac-config {
107 device = <&gmac>;
108
109 switch-phy-addr-swap = <0>;
110 switch-phy-swap = <0>;
111 };
112 };
113
114 &eth1 {
115 status = "okay";
116
117 compatible = "syscon", "simple-mfd";
118 };
119
120 &usb {
121 dr_mode = "host";
122 vbus-supply = <&reg_usb_vbus>;
123 status = "okay";
124 };
125
126 &usb_phy {
127 status = "okay";
128 };
129
130 &wmac {
131 status = "okay";
132
133 nvmem-cells = <&macaddr_uboot_1fc00>, <&cal_art_1000>;
134 nvmem-cell-names = "mac-address", "calibration";
135 };