ath79: etactica-eg200: fix restore button
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_ocedo_raccoon.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 "ar9344.dtsi"
8
9 / {
10 model = "OCEDO Raccoon";
11 compatible = "ocedo,raccoon", "qca,ar9344";
12
13 chosen {
14 bootargs = "console=ttyS0,115200n8";
15 };
16
17 aliases {
18 led-boot = &system;
19 led-failsafe = &system;
20 led-running = &system;
21 led-upgrade = &system;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 power {
28 label = "raccoon:green:power";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 default-state = "on";
31 };
32
33 wlan2g {
34 label = "raccoon:yellow:wlan24";
35 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 system: system {
40 label = "raccoon:blue:sys";
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 ath9k-leds {
46 compatible = "gpio-leds";
47
48 wlan5g {
49 label = "raccoon:red:wlan5";
50 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1tpt";
52 };
53 };
54
55 keys {
56 compatible = "gpio-keys-polled";
57 poll-interval = <20>;
58
59 reset {
60 linux,code = <KEY_RESTART>;
61 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
62 debounce-interval = <60>;
63 };
64 };
65 };
66
67 &ref {
68 clock-frequency = <40000000>;
69 };
70
71 &uart {
72 status = "okay";
73 };
74
75 &gpio {
76 status = "okay";
77 };
78
79 &spi {
80 num-cs = <1>;
81
82 status = "okay";
83
84 flash@0 {
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <25000000>;
88
89 partitions {
90 compatible = "fixed-partitions";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 uboot: partition@0 {
95 label = "u-boot";
96 reg = <0x000000 0x040000>;
97 read-only;
98 };
99
100 partition@40000 {
101 label = "u-boot-env";
102 reg = <0x040000 0x010000>;
103 };
104
105 partition@50000 {
106 compatible = "denx,uimage";
107 label = "firmware";
108 reg = <0x050000 0x740000>;
109 };
110
111 partition@790000 {
112 label = "vendor";
113 reg = <0x790000 0x740000>;
114 read-only;
115 };
116
117 partition@ed0000 {
118 label = "data";
119 reg = <0xed0000 0x110000>;
120 read-only;
121 };
122
123 partition@fe0000 {
124 label = "id";
125 reg = <0xfe0000 0x010000>;
126 read-only;
127 };
128
129 art: partition@ff0000 {
130 label = "art";
131 reg = <0xff0000 0x010000>;
132 read-only;
133 };
134 };
135 };
136 };
137
138 &pcie {
139 status = "okay";
140
141 ath9k: wifi@0,0 {
142 compatible = "pci168c,0030";
143 reg = <0x0000 0 0 0 0>;
144 mtd-mac-address = <&art 0xc>;
145 qca,no-eeprom;
146 #gpio-cells = <2>;
147 gpio-controller;
148 };
149 };
150
151 &wmac {
152 status = "okay";
153
154 mtd-cal-data = <&art 0x1000>;
155 mtd-mac-address = <&art 0x6>;
156 };
157
158 &mdio0 {
159 status = "okay";
160
161 phy-mask = <0>;
162
163 phy0: ethernet-phy@0 {
164 reg = <0>;
165 };
166 };
167
168 &eth0 {
169 status = "okay";
170
171 pll-data = <0x06000000 0x00000101 0x00001313>;
172
173 mtd-mac-address = <&art 0x0>;
174
175 phy-mode = "rgmii-id";
176 phy-handle = <&phy0>;
177 };