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