ath79: DTS file style update and harmonization
[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 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 label-mac-device = &eth1;
16 };
17
18 ath9k-keys {
19 compatible = "gpio-keys-polled";
20 poll-interval = <20>;
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 pinctrl-names = "default";
34 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
35
36 led_power: power {
37 label = "netgear:green:power";
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 };
40
41 lan1 {
42 label = "netgear:green:lan1";
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44 };
45
46 lan2 {
47 label = "netgear:green:lan2";
48 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 };
50
51 wan {
52 label = "netgear:green:wan";
53 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
54 };
55 };
56
57 ath9k-leds {
58 compatible = "gpio-leds";
59
60 wlan {
61 label = "netgear:green:wlan";
62 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
64 };
65 };
66 };
67
68 &spi {
69 status = "okay";
70
71 num-cs = <1>;
72
73 flash@0 {
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 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 compatible = "netgear,uimage";
96 reg = <0x50000 0x3a0000>;
97 label = "firmware";
98 };
99
100 art: partition@3f0000 {
101 reg = <0x3f0000 0x10000>;
102 label = "art";
103 read-only;
104 };
105 };
106 };
107 };
108
109 &eth0 {
110 status = "okay";
111
112 mtd-mac-address = <&art 0x0>;
113 };
114
115 &eth1 {
116 status = "okay";
117
118 mtd-mac-address = <&art 0x6>;
119 };
120
121 &pcie {
122 status = "okay";
123
124 ath9k: wifi@0,0 {
125 compatible = "pci168c,002b";
126 reg = <0x0000 0 0 0 0>;
127 mtd-mac-address = <&art 0x0>;
128 mtd-mac-address-increment = <1>;
129 qca,no-eeprom;
130 #gpio-cells = <2>;
131 gpio-controller;
132 };
133 };
134
135 &uart {
136 status = "okay";
137 };