ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_ocedo_raccoon.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.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 = "OCEDO Raccoon";
11 compatible = "ocedo,raccoon", "qca,ar9344";
12
13 chosen {
14 bootargs = "console=ttyS0,115200n8";
15 };
16
17 aliases {
18 led-boot = &led_system;
19 led-failsafe = &led_system;
20 led-running = &led_system;
21 led-upgrade = &led_system;
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 power {
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 default-state = "on";
32 };
33
34 wlan2g {
35 label = "yellow:wlan24";
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy0tpt";
38 };
39
40 led_system: system {
41 label = "blue:sys";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 };
44 };
45
46 ath9k-leds {
47 compatible = "gpio-leds";
48
49 wlan5g {
50 label = "red:wlan5";
51 gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54 };
55
56 keys {
57 compatible = "gpio-keys";
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 &spi {
72 status = "okay";
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <50000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 partition@40000 {
91 label = "u-boot-env";
92 reg = <0x040000 0x010000>;
93 };
94
95 partition@50000 {
96 /* Dual-Flash layout combined */
97 compatible = "denx,uimage";
98 label = "firmware";
99 reg = <0x050000 0xe80000>;
100 };
101
102 partition@ed0000 {
103 label = "data";
104 reg = <0xed0000 0x110000>;
105 read-only;
106 };
107
108 partition@fe0000 {
109 label = "id";
110 reg = <0xfe0000 0x010000>;
111 read-only;
112 };
113
114 partition@ff0000 {
115 label = "art";
116 reg = <0xff0000 0x010000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 macaddr_art_0: macaddr@0 {
125 reg = <0x0 0x6>;
126 };
127
128 macaddr_art_6: macaddr@6 {
129 reg = <0x6 0x6>;
130 };
131
132 macaddr_art_c: macaddr@c {
133 reg = <0xc 0x6>;
134 };
135
136 calibration_art_1000: calibration@1000 {
137 reg = <0x1000 0x440>;
138 };
139
140 calibration_art_5000: calibration@5000 {
141 reg = <0x5000 0x440>;
142 };
143 };
144 };
145 };
146 };
147 };
148
149 &pcie {
150 status = "okay";
151
152 ath9k: wifi@0,0 {
153 compatible = "pci168c,0030";
154 reg = <0x0000 0 0 0 0>;
155 nvmem-cells = <&macaddr_art_c>, <&calibration_art_5000>;
156 nvmem-cell-names = "mac-address", "calibration";
157 #gpio-cells = <2>;
158 gpio-controller;
159 };
160 };
161
162 &wmac {
163 status = "okay";
164
165 nvmem-cells = <&macaddr_art_6>, <&calibration_art_1000>;
166 nvmem-cell-names = "mac-address", "calibration";
167 };
168
169 &mdio0 {
170 status = "okay";
171
172 phy0: ethernet-phy@0 {
173 reg = <0>;
174 eee-broken-100tx;
175 eee-broken-1000t;
176 };
177 };
178
179 &eth0 {
180 status = "okay";
181
182 pll-data = <0x02000000 0x00000101 0x00001313>;
183
184 nvmem-cells = <&macaddr_art_0>;
185 nvmem-cell-names = "mac-address";
186
187 phy-mode = "rgmii-id";
188 phy-handle = <&phy0>;
189
190 gmac-config {
191 device = <&gmac>;
192 rgmii-gmac0 = <1>;
193 rxdv-delay = <3>;
194 rxd-delay = <3>;
195 txen-delay = <0>;
196 txd-delay = <0>;
197 };
198 };