ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9330_pqi_air-pen.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9330.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "PQI Air-Pen";
11 compatible = "pqi,air-pen", "qca,ar9330";
12
13 aliases {
14 led-boot = &led_wlan;
15 led-failsafe = &led_wlan;
16 led-upgrade = &led_wlan;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_wlan: wlan {
23 function = LED_FUNCTION_WLAN;
24 color = <LED_COLOR_ID_BLUE>;
25 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "phy0tpt";
27 };
28
29 wps {
30 function = LED_FUNCTION_WPS;
31 color = <LED_COLOR_ID_BLUE>;
32 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
33 };
34 };
35
36 keys {
37 compatible = "gpio-keys";
38
39 wps {
40 label = "wps";
41 linux,code = <KEY_WPS_BUTTON>;
42 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
43 debounce-interval = <60>;
44 };
45
46 reset {
47 label = "reset";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
50 debounce-interval = <60>;
51 };
52 };
53 };
54
55 &usb {
56 dr_mode = "host";
57 status = "okay";
58 };
59
60 &usb_phy {
61 status = "okay";
62 };
63
64 &spi {
65 status = "okay";
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 spi-max-frequency = <50000000>;
70 reg = <0>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x000000 0x040000>;
80 read-only;
81 };
82
83 partition@40000 {
84 label = "u-boot-env";
85 reg = <0x040000 0x010000>;
86 };
87
88 art: partition@50000 {
89 label = "art";
90 reg = <0x050000 0x010000>;
91 read-only;
92
93 nvmem-layout {
94 compatible = "fixed-layout";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 macaddr_art_2: macaddr@2 {
99 reg = <0x2 0x6>;
100 };
101
102 macaddr_art_1002: macaddr@1002 {
103 reg = <0x1002 0x6>;
104 };
105 };
106 };
107
108 partition@60000 {
109 label = "NVRAM";
110 reg = <0x060000 0x010000>;
111 read-only;
112 };
113
114 partition@70000 {
115 compatible = "denx,uimage";
116 label = "firmware";
117 reg = <0x070000 0x780000>;
118 };
119
120 partition@7f0000 {
121 label = "CONF";
122 reg = <0x7f0000 0x010000>;
123 read-only;
124 };
125 };
126 };
127 };
128
129 &eth0 {
130 status = "okay";
131
132 nvmem-cells = <&macaddr_art_1002>;
133 nvmem-cell-names = "mac-address";
134
135 gmac-config {
136 device = <&gmac>;
137
138 switch-phy-addr-swap = <0>;
139 switch-phy-swap = <0>;
140 };
141 };
142
143 &eth1 {
144 status = "okay";
145
146 compatible = "syscon", "simple-mfd";
147 };
148
149 &wmac {
150 status = "okay";
151
152 mtd-cal-data = <&art 0x1000>;
153 nvmem-cells = <&macaddr_art_2>;
154 nvmem-cell-names = "mac-address";
155 };