ath79: drop phy-mask property
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / ar7161_netgear_wndap360.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "netgear,wndap360", "qca,ar7161";
10 model = "Netgear WNDAP360";
11
12 aliases {
13 led-boot = &led_power_orange;
14 led-failsafe = &led_power_orange;
15 led-running = &led_power_orange;
16 led-upgrade = &led_power_orange;
17 };
18
19 extosc: ref {
20 compatible = "fixed-clock";
21 #clock-cells = <0>;
22 clock-output-names = "ref";
23 clock-frequency = <40000000>;
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 led_power_orange: power_orange {
30 label = "orange:power";
31 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 ath9k-leds {
36 compatible = "gpio-leds";
37
38 wifi_2g_green {
39 label = "green:wlan2g";
40 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy0tpt";
42 };
43
44 wifi_5g_green {
45 label = "green:wlan5g";
46 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1tpt";
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys";
53
54 reset {
55 label = "reset";
56 linux,code = <KEY_RESTART>;
57 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &mdio0 {
63 status = "okay";
64
65 phy1: ethernet-phy@1 {
66 reg = <0x1>;
67 };
68 };
69
70 &eth0 {
71 status = "okay";
72
73 phy-mode = "rgmii";
74 phy-handle = <&phy1>;
75
76 nvmem-cells = <&macaddr_art_0>;
77 nvmem-cell-names = "mac-address";
78 };
79
80 &spi {
81 status = "okay";
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <50000000>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x0 0x040000>;
96 read-only;
97 };
98
99 partition@40000 {
100 label = "u-boot-env";
101 reg = <0x40000 0x010000>;
102 read-only;
103 };
104
105 partition@50000 {
106 compatible = "denx,uimage";
107 label = "firmware";
108 reg = <0x50000 0x790000>;
109 };
110
111 partition@7e0000 {
112 label = "nvram";
113 reg = <0x7e0000 0x010000>;
114 read-only;
115 };
116
117 art: partition@7f0000 {
118 label = "art";
119 reg = <0x7f0000 0x010000>;
120 read-only;
121 };
122 };
123 };
124 };
125
126 &pcie0 {
127 status = "okay";
128
129 ath9k0: wifi@0,11 {
130 compatible = "pci168c,0029";
131 reg = <0x8800 0 0 0 0>;
132 qca,no-eeprom;
133 nvmem-cells = <&macaddr_art_120c>;
134 nvmem-cell-names = "mac-address";
135 #gpio-cells = <2>;
136 gpio-controller;
137 };
138
139 ath9k1: wifi@0,12 {
140 compatible = "pci168c,0029";
141 reg = <0x9000 0 0 0 0>;
142 qca,no-eeprom;
143 nvmem-cells = <&macaddr_art_520c>;
144 nvmem-cell-names = "mac-address";
145 mac-address-increment = <1>;
146 #gpio-cells = <2>;
147 gpio-controller;
148 };
149 };
150
151
152 &art {
153 compatible = "nvmem-cells";
154 #address-cells = <1>;
155 #size-cells = <1>;
156
157 macaddr_art_0: macaddr@0 {
158 reg = <0x0 0x6>;
159 };
160
161 macaddr_art_120c: macaddr@120c {
162 reg = <0x120c 0x6>;
163 };
164
165 macaddr_art_520c: macaddr@520c {
166 reg = <0x520c 0x6>;
167 };
168 };