ath79: add SoC or family compatible
[oweals/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         aliases {
11                 led-boot = &power;
12                 led-failsafe = &power;
13                 led-running = &power;
14                 led-upgrade = &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                 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                                 compatible = "netgear,uimage";
87                                 reg = <0x50000 0x3a0000>;
88                                 label = "firmware";
89                         };
90
91                         partition@3f0000 {
92                                 reg = <0x3f0000 0x10000>;
93                                 label = "art";
94                                 read-only;
95                         };
96                 };
97         };
98 };
99
100 &eth0 {
101         status = "okay";
102
103         mtd-mac-address = <&uboot 0x1fc00>;
104         mtd-mac-address-increment = <(-1)>;
105 };
106
107 &eth1 {
108         status = "okay";
109
110         mtd-mac-address = <&uboot 0x1fc00>;
111         mtd-mac-address-increment = <1>;
112 };
113
114 &pcie {
115         status = "okay";
116
117         ath9k: wifi@0,0 {
118                 compatible = "pci168c,002b";
119                 reg = <0x0000 0 0 0 0>;
120                 qca,no-eeprom;
121                 #gpio-cells = <2>;
122                 gpio-controller;
123         };
124 };
125
126 &uart {
127         status = "okay";
128 };