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