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