ath79: add Netgear WNR612 v2
[openwrt/openwrt.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 memory@0 {
18 device_type = "memory";
19 reg = <0x0 0x2000000>;
20 };
21
22 gpio-keys-polled {
23 compatible = "gpio-keys-polled";
24 #address-cells = <1>;
25 #size-cells = <0>;
26 poll-interval = <20>;
27
28 reset {
29 label = "reset";
30 linux,code = <KEY_RESTART>;
31 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 gpio-leds {
37 compatible = "gpio-leds";
38 led_power: power {
39 label = "netgear:green:power";
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41 };
42
43 lan1 {
44 label = "netgear:green:lan1";
45 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
46 };
47
48 lan2 {
49 label = "netgear:green:lan2";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 };
52
53 wan {
54 label = "netgear:green:wan";
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 };
57
58 wlan: wlan {
59 label = "netgear:green:wlan";
60 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
61 default-state = "off";
62 linux,default-trigger = "phy0tpt";
63 };
64 };
65 };
66
67 &spi {
68 status = "okay";
69 num-cs = <1>;
70
71 flash@0 {
72 #address-cells = <1>;
73 #size-cells = <1>;
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 uboot: partition@0 {
84 reg = <0x0 0x40000>;
85 label = "u-boot";
86 read-only;
87 };
88
89 partition@40000 {
90 reg = <0x40000 0x10000>;
91 label = "u-boot-env";
92 };
93
94 partition@50000 {
95 reg = <0x50000 0x3a0000>;
96 label = "firmware";
97 };
98
99 partition@3f0000 {
100 reg = <0x3f0000 0x10000>;
101 label = "art";
102 read-only;
103 };
104 };
105 };
106 };
107
108 &eth0 {
109 status = "okay";
110
111 phy-handle = <&phy4>;
112
113 mtd-mac-address = <&uboot 0x1fc00>;
114 mtd-mac-address-increment = <(-1)>;
115 };
116
117 &eth1 {
118 status = "okay";
119
120 mtd-mac-address = <&uboot 0x1fc00>;
121 mtd-mac-address-increment = <1>;
122 };
123
124 &mdio0 {
125 status = "okay";
126
127 phy4: ethernet-phy@4 {
128 reg = <4>;
129 phy-mode = "mii";
130 };
131 };
132
133 &pcie {
134 status = "okay";
135
136 ath9k: wifi@168c,002b {
137 compatible = "pci168c,002b";
138 reg = <0x0000 0 0 0 0>;
139 qca,no-eeprom;
140 #gpio-cells = <2>;
141 gpio-controller;
142 };
143 };
144
145 &uart {
146 status = "okay";
147 };