ath79: fix dts warnings
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7242_avm_fritz300e.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar7242.dtsi"
8
9 / {
10 compatible = "avm,fritz300e", "qca,ar7242";
11 model = "AVM FRITZ!WLAN Repeater 300E";
12
13 aliases {
14 led-status = &power;
15 };
16
17 gpio-keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <20>;
20
21 wps {
22 label = "wps";
23 linux,code = <KEY_WPS_BUTTON>;
24 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 power: power {
33 label = "fritz300e:green:power";
34 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
35 default-state = "on";
36 };
37
38 lan {
39 label = "fritz300e:green:lan";
40 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan {
44 label = "fritz300e:green:wlan";
45 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48 };
49
50 ath9k-leds {
51 compatible = "gpio-leds";
52
53 rssi0 {
54 label = "fritz300e:green:rssi0";
55 gpios = <&ath9k 10 GPIO_ACTIVE_LOW>;
56 };
57
58 rssi1 {
59 label = "fritz300e:green:rssi1";
60 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
61 };
62
63 rssi2 {
64 label = "fritz300e:green:rssi2";
65 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
66 };
67
68 rssi3 {
69 label = "fritz300e:green:rssi3";
70 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
71 };
72
73 rssi4 {
74 label = "fritz300e:green:rssi4";
75 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
76 };
77 };
78
79 eth-phy-reset {
80 compatible = "regulator-fixed";
81
82 regulator-name = "eth-phy-reset";
83 regulator-min-microvolt = <3300000>;
84 regulator-max-microvolt = <3300000>;
85
86 gpio = <&gpio 11 GPIO_ACTIVE_LOW>;
87 startup-delay-us = <300000>;
88 enable-active-high;
89
90 regulator-always-on;
91 };
92 };
93
94 &spi {
95 status = "okay";
96 num-cs = <1>;
97
98 flash@0 {
99 compatible = "jedec,spi-nor";
100 reg = <0>;
101 spi-max-frequency = <25000000>;
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partition@0 {
109 reg = <0x0 0x20000>;
110 label = "urloader";
111 read-only;
112 };
113
114 partition@20000 {
115 reg = <0x20000 0xee0000>;
116 label = "firmware";
117 };
118
119 partition@f00000 {
120 reg = <0xf00000 0x80000>;
121 label = "tffs (1)";
122 read-only;
123 };
124
125 partition@f80000 {
126 reg = <0xf80000 0x80000>;
127 label = "tffs (2)";
128 read-only;
129 };
130 };
131 };
132 };
133
134 &uart {
135 status = "okay";
136 };
137
138 &pcie {
139 status = "okay";
140
141 ath9k: wifi@0,0 {
142 reg = <0x0000 0 0 0 0>;
143 #gpio-cells = <2>;
144 gpio-controller;
145 qca,no-eeprom;
146 };
147 };
148
149 &mdio0 {
150 status = "okay";
151
152 phy0: ethernet-phy@0 {
153 reg = <0>;
154 phy-mode = "rgmii";
155 };
156 };
157
158 &eth0 {
159 status = "okay";
160
161 phy-mode = "rgmii";
162 phy-handle = <&phy0>;
163
164 pll-data = <0x16000000 0x00000101 0x00001313>;
165 };