mediatek: mt7988a: sync dts compatible string
[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 = &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 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 led_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";
57
58 reset {
59 linux,code = <KEY_RESTART>;
60 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
61 debounce-interval = <60>;
62 };
63 };
64 };
65
66 &ref {
67 clock-frequency = <40000000>;
68 };
69
70 &uart {
71 status = "okay";
72 };
73
74 &spi {
75 status = "okay";
76
77 num-cs = <1>;
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-max-frequency = <25000000>;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 uboot: partition@0 {
90 label = "u-boot";
91 reg = <0x000000 0x040000>;
92 read-only;
93 };
94
95 partition@40000 {
96 label = "u-boot-env";
97 reg = <0x040000 0x010000>;
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x050000 0x740000>;
104 };
105
106 partition@790000 {
107 label = "vendor";
108 reg = <0x790000 0x740000>;
109 read-only;
110 };
111
112 partition@ed0000 {
113 label = "data";
114 reg = <0xed0000 0x110000>;
115 read-only;
116 };
117
118 partition@fe0000 {
119 label = "id";
120 reg = <0xfe0000 0x010000>;
121 read-only;
122 };
123
124 art: partition@ff0000 {
125 label = "art";
126 reg = <0xff0000 0x010000>;
127 read-only;
128 };
129 };
130 };
131 };
132
133 &pcie {
134 status = "okay";
135
136 ath9k: wifi@0,0 {
137 compatible = "pci168c,0030";
138 reg = <0x0000 0 0 0 0>;
139 mtd-mac-address = <&art 0xc>;
140 qca,no-eeprom;
141 #gpio-cells = <2>;
142 gpio-controller;
143 };
144 };
145
146 &wmac {
147 status = "okay";
148
149 mtd-cal-data = <&art 0x1000>;
150 mtd-mac-address = <&art 0x6>;
151 };
152
153 &mdio0 {
154 status = "okay";
155
156 phy-mask = <0>;
157
158 phy0: ethernet-phy@0 {
159 reg = <0>;
160 };
161 };
162
163 &eth0 {
164 status = "okay";
165
166 pll-data = <0x06000000 0x00000101 0x00001313>;
167
168 mtd-mac-address = <&art 0x0>;
169
170 phy-mode = "rgmii-id";
171 phy-handle = <&phy0>;
172 };