ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_hak5_wifi-pineapple-nano.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Hak5 WiFi Pineapple NANO";
10 compatible = "hak5,wifi-pineapple-nano", "qca,ar9331";
11
12 aliases {
13 label-mac-device = &wmac;
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-upgrade = &led_system;
17 };
18
19 gpio-export {
20 compatible = "gpio-export";
21 #size-cells = <0>;
22
23 microsd-detect {
24 gpio-export,name = "microsd-detect";
25 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
26 };
27
28 usb-alarm {
29 gpio-export,name = "usb-alarm";
30 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
31 };
32
33 usb-power {
34 gpio-export,name = "usb-power";
35 gpio-export,output = <0>;
36 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys";
42
43 reset {
44 label = "reset";
45 linux,code = <KEY_RESTART>;
46 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
47 debounce-interval = <60>;
48 };
49 };
50
51 leds {
52 compatible = "gpio-leds";
53
54 led_system: system {
55 label = "blue:system";
56 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
58 };
59 };
60 };
61
62 &eth0 {
63 status = "okay";
64
65 nvmem-cells = <&macaddr_art_6>;
66 nvmem-cell-names = "mac-address";
67 };
68
69 &eth1 {
70 status = "okay";
71
72 compatible = "syscon", "simple-mfd";
73 };
74
75 &spi {
76 status = "okay";
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <50000000>;
82 m25p,fast-read;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partition@0 {
90 label = "u-boot";
91 reg = <0x000000 0x020000>;
92 read-only;
93 };
94
95 partition@20000 {
96 label = "firmware";
97 reg = <0x020000 0xfd0000>;
98 compatible = "tplink,firmware";
99 };
100
101 art: partition@ff0000 {
102 label = "art";
103 reg = <0xff0000 0x010000>;
104 read-only;
105
106 nvmem-layout {
107 compatible = "fixed-layout";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 macaddr_art_6: macaddr@6 {
112 reg = <0x6 0x6>;
113 };
114 };
115 };
116 };
117 };
118 };
119
120 &usb {
121 status = "okay";
122 };
123
124 &usb_phy {
125 status = "okay";
126 };
127
128 &wmac {
129 status = "okay";
130
131 mtd-cal-data = <&art 0x1000>;
132 };