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