ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wa901nd-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "ar9132.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,tl-wa901nd-v2", "qca,ar9132";
10 model = "TP-Link TL-WA901ND v2";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &eth0;
18 };
19
20 extosc: ref {
21 compatible = "fixed-clock";
22 #clock-cells = <0>;
23 clock-frequency = <40000000>;
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "reset";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 };
35
36 qss {
37 label = "qss";
38 linux,code = <KEY_WPS_BUTTON>;
39 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 led_system: system {
48 label = "green:system";
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 };
51
52 qss {
53 label = "green:qss";
54 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
55 };
56
57 wlan {
58 label = "green:wlan";
59 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62 };
63 };
64
65 &uart {
66 status = "okay";
67 };
68
69 &pll {
70 clocks = <&extosc>;
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <25000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 uboot: partition@0 {
87 label = "u-boot";
88 reg = <0x000000 0x020000>;
89 read-only;
90 };
91
92 partition@1 {
93 compatible = "tplink,firmware";
94 label = "firmware";
95 reg = <0x020000 0x3D0000>;
96 };
97
98 art: partition@2 {
99 label = "art";
100 reg = <0x3F0000 0x010000>;
101 read-only;
102 };
103 };
104 };
105 };
106
107 &mdio0 {
108 status = "okay";
109
110 phy12: ethernet-phy@c {
111 reg = <0xc>;
112 phy-mode = "mii";
113
114 resets = <&rst 8>;
115 reset-names = "phy";
116
117 reset-assert-us = <10000>;
118 reset-deassert-us = <10000>;
119 };
120 };
121
122 &eth0 {
123 status = "okay";
124
125 mtd-mac-address = <&uboot 0x1fc00>;
126
127 phy-handle = <&phy12>;
128 };
129
130 &wmac {
131 status = "okay";
132
133 mtd-cal-data = <&art 0x1000>;
134 mtd-mac-address = <&uboot 0x1fc00>;
135 };