ath79: fix dts warnings
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7240_netgear_wnr612-v2.dtsi
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 "ar7240.dtsi"
8
9 / {
10 compatible = "netgear,wnr612-v2", "qca,ar7240";
11 model = "Netgear WNR612 V2";
12
13 aliases {
14 led-status = &led_power;
15 };
16
17 gpio-keys-polled {
18 compatible = "gpio-keys-polled";
19 poll-interval = <20>;
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31 led_power: power {
32 label = "netgear:green:power";
33 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
34 };
35
36 lan1 {
37 label = "netgear:green:lan1";
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 };
40
41 lan2 {
42 label = "netgear:green:lan2";
43 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
44 };
45
46 wan {
47 label = "netgear:green:wan";
48 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
49 };
50
51 wlan: wlan {
52 label = "netgear:green:wlan";
53 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
54 default-state = "off";
55 linux,default-trigger = "phy0tpt";
56 };
57 };
58 };
59
60 &spi {
61 status = "okay";
62 num-cs = <1>;
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 reg = <0x0 0x40000>;
76 label = "u-boot";
77 read-only;
78 };
79
80 partition@40000 {
81 reg = <0x40000 0x10000>;
82 label = "u-boot-env";
83 };
84
85 partition@50000 {
86 reg = <0x50000 0x3a0000>;
87 label = "firmware";
88 };
89
90 partition@3f0000 {
91 reg = <0x3f0000 0x10000>;
92 label = "art";
93 read-only;
94 };
95 };
96 };
97 };
98
99 &eth0 {
100 status = "okay";
101
102 mtd-mac-address = <&uboot 0x1fc00>;
103 mtd-mac-address-increment = <(-1)>;
104 };
105
106 &eth1 {
107 status = "okay";
108
109 mtd-mac-address = <&uboot 0x1fc00>;
110 mtd-mac-address-increment = <1>;
111 };
112
113 &pcie {
114 status = "okay";
115
116 ath9k: wifi@0,0 {
117 compatible = "pci168c,002b";
118 reg = <0x0000 0 0 0 0>;
119 qca,no-eeprom;
120 #gpio-cells = <2>;
121 gpio-controller;
122 };
123 };
124
125 &uart {
126 status = "okay";
127 };