sunxi: 6.6: set testing kernel
[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 #include <dt-bindings/leds/common.h>
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 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30
31 qss {
32 label = "qss";
33 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_system: system {
43 label = "green:system";
44 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45 };
46
47 qss {
48 label = "green:qss";
49 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
50 };
51
52 wlan {
53 function = LED_FUNCTION_WLAN;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy0tpt";
57 };
58 };
59 };
60
61 &spi {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <25000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 uboot: partition@0 {
75 label = "u-boot";
76 reg = <0x000000 0x020000>;
77 read-only;
78
79 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 macaddr_uboot_1fc00: macaddr@1fc00 {
85 reg = <0x1fc00 0x6>;
86 };
87 };
88 };
89
90 partition@1 {
91 compatible = "tplink,firmware";
92 label = "firmware";
93 reg = <0x020000 0x3D0000>;
94 };
95
96 art: partition@2 {
97 label = "art";
98 reg = <0x3F0000 0x010000>;
99 read-only;
100 };
101 };
102 };
103 };
104
105 &mdio0 {
106 status = "okay";
107
108 phy12: ethernet-phy@c {
109 reg = <0xc>;
110 phy-mode = "mii";
111
112 resets = <&rst 8>;
113 reset-names = "phy";
114
115 reset-assert-us = <10000>;
116 reset-deassert-us = <10000>;
117 };
118 };
119
120 &eth0 {
121 status = "okay";
122
123 nvmem-cells = <&macaddr_uboot_1fc00>;
124 nvmem-cell-names = "mac-address";
125
126 phy-handle = <&phy12>;
127 };
128
129 &wmac {
130 status = "okay";
131
132 mtd-cal-data = <&art 0x1000>;
133 nvmem-cells = <&macaddr_uboot_1fc00>;
134 nvmem-cell-names = "mac-address";
135 };