5f2aa3b03c52612e4bc2a09b7edc9e1296e37fcc
[openwrt/staging/dedeckeh.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 = "blue:wlan";
24 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
25 linux,default-trigger = "phy0tpt";
26 };
27
28 wps {
29 label = "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 flash@0 {
70 compatible = "jedec,spi-nor";
71 spi-max-frequency = <50000000>;
72 reg = <0>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x000000 0x040000>;
82 read-only;
83 };
84
85 partition@40000 {
86 label = "u-boot-env";
87 reg = <0x040000 0x010000>;
88 };
89
90 art: partition@50000 {
91 label = "art";
92 reg = <0x050000 0x010000>;
93 read-only;
94 };
95
96 partition@60000 {
97 label = "NVRAM";
98 reg = <0x060000 0x010000>;
99 read-only;
100 };
101
102 partition@70000 {
103 compatible = "denx,uimage";
104 label = "firmware";
105 reg = <0x070000 0x780000>;
106 };
107
108 partition@7f0000 {
109 label = "CONF";
110 reg = <0x7f0000 0x010000>;
111 read-only;
112 };
113 };
114 };
115 };
116
117 &eth0 {
118 status = "okay";
119
120 mtd-mac-address = <&art 0x1002>;
121
122 gmac-config {
123 device = <&gmac>;
124
125 switch-phy-addr-swap = <0>;
126 switch-phy-swap = <0>;
127 };
128 };
129
130 &eth1 {
131 status = "okay";
132
133 compatible = "syscon", "simple-mfd";
134 };
135
136 &wmac {
137 status = "okay";
138
139 mtd-cal-data = <&art 0x1000>;
140 mtd-mac-address = <&art 0x2>;
141 };