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