ath79: add support for ALFA Network AP121FE
[openwrt/staging/jow.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 serial0 = &uart;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26
27 switch {
28 label = "switch";
29 linux,code = <BTN_0>;
30 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
31 debounce-interval = <60>;
32 };
33 };
34 };
35
36 &eth0 {
37 status = "okay";
38
39 mtd-mac-address = <&art 0x0>;
40
41 gmac-config {
42 device = <&gmac>;
43 switch-phy-addr-swap = <0>;
44 switch-phy-swap = <0>;
45 };
46 };
47
48 &eth1 {
49 status = "okay";
50
51 compatible = "syscon", "simple-mfd";
52 };
53
54 &spi {
55 status = "okay";
56
57 num-cs = <1>;
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <50000000>;
63 m25p,fast-read;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x000000 0x030000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x030000 0x010000>;
79 };
80
81 art: partition@40000 {
82 label = "art";
83 reg = <0x040000 0x010000>;
84 read-only;
85 };
86
87 partition@50000 {
88 compatible = "denx,uimage";
89 label = "firmware";
90 reg = <0x050000 0xfb0000>;
91 };
92 };
93 };
94 };
95
96 &uart {
97 status = "okay";
98 };
99
100 &usb {
101 status = "okay";
102 };
103
104 &usb_phy {
105 status = "okay";
106 };
107
108 &wmac {
109 status = "okay";
110
111 mtd-cal-data = <&art 0x1000>;
112 };