ath79: enable UART in SoC DTSI 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
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 mtd-mac-address = <&uboot 0x1fc00>;
84
85 gmac-config {
86 device = <&gmac>;
87
88 switch-phy-addr-swap = <0>;
89 switch-phy-swap = <0>;
90 };
91 };
92
93 &eth1 {
94 status = "okay";
95
96 compatible = "syscon", "simple-mfd";
97 };
98
99 &usb {
100 dr_mode = "host";
101 vbus-supply = <&reg_usb_vbus>;
102 status = "okay";
103 };
104
105 &usb_phy {
106 status = "okay";
107 };
108
109 &wmac {
110 status = "okay";
111
112 mtd-cal-data = <&art 0x1000>;
113 mtd-mac-address = <&uboot 0x1fc00>;
114 };