382529b32d0089c337e259c15bd428644e8ad6af
[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
3 #include "ar7240.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 label-mac-device = &eth1;
15 };
16
17 ath9k-keys {
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 leds {
30 compatible = "gpio-leds";
31
32 pinctrl-names = "default";
33 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
34
35 led_power: power {
36 label = "green:power";
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 };
39
40 lan1 {
41 label = "green:lan1";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 };
44
45 lan2 {
46 label = "green:lan2";
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
48 };
49
50 wan {
51 label = "green:wan";
52 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
53 };
54 };
55
56 ath9k-leds {
57 compatible = "gpio-leds";
58
59 wlan {
60 label = "green:wlan";
61 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy0tpt";
63 };
64 };
65 };
66
67 &spi {
68 status = "okay";
69
70 flash@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <25000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 reg = <0x0 0x40000>;
82 label = "u-boot";
83 read-only;
84 };
85
86 partition@40000 {
87 reg = <0x40000 0x10000>;
88 label = "u-boot-env";
89 };
90
91 partition@50000 {
92 compatible = "netgear,uimage";
93 reg = <0x50000 0x3a0000>;
94 label = "firmware";
95 };
96
97 art: partition@3f0000 {
98 reg = <0x3f0000 0x10000>;
99 label = "art";
100 read-only;
101 };
102 };
103 };
104 };
105
106 &eth0 {
107 mtd-mac-address = <&art 0x0>;
108 };
109
110 &eth1 {
111 status = "okay";
112
113 mtd-mac-address = <&art 0x6>;
114 };
115
116 &pcie {
117 status = "okay";
118
119 ath9k: wifi@0,0 {
120 compatible = "pci168c,002b";
121 reg = <0x0000 0 0 0 0>;
122 mtd-mac-address = <&art 0x0>;
123 mtd-mac-address-increment = <1>;
124 qca,no-eeprom;
125 #gpio-cells = <2>;
126 gpio-controller;
127 };
128 };
129
130 &uart {
131 status = "okay";
132 };