ath79: enable UART in SoC DTSI files
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_alfa-network_ap121f.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 label-mac-device = &wmac;
11 led-boot = &led_vpn;
12 led-failsafe = &led_vpn;
13 led-upgrade = &led_vpn;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25
26 switch {
27 label = "switch";
28 linux,code = <BTN_0>;
29 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
30 debounce-interval = <60>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 lan {
38 label = "green:lan";
39 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
40 };
41
42 led_vpn: vpn {
43 label = "green:vpn";
44 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
45 };
46
47 wlan {
48 label = "green:wlan";
49 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "phy0tpt";
51 };
52 };
53 };
54
55 &eth0 {
56 status = "okay";
57
58 mtd-mac-address = <&art 0x0>;
59
60 gmac-config {
61 device = <&gmac>;
62 switch-phy-addr-swap = <0>;
63 switch-phy-swap = <0>;
64 };
65 };
66
67 &eth1 {
68 status = "okay";
69
70 compatible = "syscon", "simple-mfd";
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <50000000>;
80 m25p,fast-read;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x000000 0x030000>;
90 read-only;
91 };
92
93 partition@30000 {
94 label = "u-boot-env";
95 reg = <0x030000 0x010000>;
96 };
97
98 art: partition@40000 {
99 label = "art";
100 reg = <0x040000 0x010000>;
101 read-only;
102 };
103
104 partition@50000 {
105 compatible = "denx,uimage";
106 label = "firmware";
107 reg = <0x050000 0xfb0000>;
108 };
109 };
110 };
111 };
112
113 &usb {
114 status = "okay";
115 };
116
117 &usb_phy {
118 status = "okay";
119 };
120
121 &wmac {
122 status = "okay";
123
124 mtd-cal-data = <&art 0x1000>;
125 };