ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9330_pqi_air-pen.dts
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 "ar9330.dtsi"
8
9 / {
10 model = "PQI Air-Pen";
11 compatible = "pqi,air-pen", "qca,ar9330";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &wlan;
16 led-failsafe = &wlan;
17 led-upgrade = &wlan;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan: wlan {
24 label = "air-pen:blue:wlan";
25 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "phy0tpt";
27 };
28
29 wps {
30 label = "air-pen:blue:wps";
31 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 wps {
39 label = "wps";
40 linux,code = <KEY_WPS_BUTTON>;
41 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
42 debounce-interval = <60>;
43 };
44
45 reset {
46 label = "reset";
47 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
49 debounce-interval = <60>;
50 };
51 };
52 };
53
54 &uart {
55 status = "okay";
56 };
57
58 &gpio {
59 status = "okay";
60 };
61
62 &usb {
63 dr_mode = "host";
64 status = "okay";
65 };
66
67 &usb_phy {
68 status = "okay";
69 };
70
71 &spi {
72 num-cs = <1>;
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 spi-max-frequency = <104000000>;
78 reg = <0>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x000000 0x040000>;
88 read-only;
89 };
90
91 partition@40000 {
92 label = "u-boot-env";
93 reg = <0x040000 0x010000>;
94 };
95
96 art: partition@50000 {
97 label = "art";
98 reg = <0x050000 0x010000>;
99 read-only;
100 };
101
102 partition@60000 {
103 label = "NVRAM";
104 reg = <0x060000 0x010000>;
105 read-only;
106 };
107
108 partition@70000 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x070000 0x780000>;
112 };
113
114 partition@7f0000 {
115 label = "CONF";
116 reg = <0x7f0000 0x010000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125
126 mtd-mac-address = <&art 0x1002>;
127
128 gmac-config {
129 device = <&gmac>;
130
131 switch-phy-addr-swap = <0>;
132 switch-phy-swap = <0>;
133 };
134 };
135
136 &eth1 {
137 status = "okay";
138 compatible = "syscon", "simple-mfd";
139 };
140
141 &wmac {
142 status = "okay";
143 mtd-cal-data = <&art 0x1000>;
144 mtd-mac-address = <&art 0x2>;
145 };