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