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