5fda458fbc34e7b9e43ec818ae4597b95b37622a
[openwrt/staging/hauke.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
65 partition@20000 {
66 compatible = "tplink,firmware";
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 nvmem-cells = <&macaddr_uboot_1fc00>;
84 nvmem-cell-names = "mac-address";
85
86 gmac-config {
87 device = <&gmac>;
88
89 switch-phy-addr-swap = <0>;
90 switch-phy-swap = <0>;
91 };
92 };
93
94 &eth1 {
95 status = "okay";
96
97 compatible = "syscon", "simple-mfd";
98 };
99
100 &usb {
101 dr_mode = "host";
102 vbus-supply = <&reg_usb_vbus>;
103 status = "okay";
104 };
105
106 &usb_phy {
107 status = "okay";
108 };
109
110 &wmac {
111 status = "okay";
112
113 mtd-cal-data = <&art 0x1000>;
114 nvmem-cells = <&macaddr_uboot_1fc00>;
115 nvmem-cell-names = "mac-address";
116 };
117
118 &uboot {
119 compatible = "nvmem-cells";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 macaddr_uboot_1fc00: macaddr@1fc00 {
124 reg = <0x1fc00 0x6>;
125 };
126 };