ath79: fix link for long cables with OCEDO Raccoon
[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 &spi {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <50000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 uboot: partition@0 {
83 label = "u-boot";
84 reg = <0x000000 0x040000>;
85 read-only;
86 };
87
88 partition@40000 {
89 label = "u-boot-env";
90 reg = <0x040000 0x010000>;
91 };
92
93 partition@50000 {
94 compatible = "denx,uimage";
95 label = "firmware";
96 reg = <0x050000 0x740000>;
97 };
98
99 partition@790000 {
100 label = "vendor";
101 reg = <0x790000 0x740000>;
102 read-only;
103 };
104
105 partition@ed0000 {
106 label = "data";
107 reg = <0xed0000 0x110000>;
108 read-only;
109 };
110
111 partition@fe0000 {
112 label = "id";
113 reg = <0xfe0000 0x010000>;
114 read-only;
115 };
116
117 art: partition@ff0000 {
118 label = "art";
119 reg = <0xff0000 0x010000>;
120 read-only;
121 };
122 };
123 };
124 };
125
126 &pcie {
127 status = "okay";
128
129 ath9k: wifi@0,0 {
130 compatible = "pci168c,0030";
131 reg = <0x0000 0 0 0 0>;
132 nvmem-cells = <&macaddr_art_c>;
133 nvmem-cell-names = "mac-address";
134 qca,no-eeprom;
135 #gpio-cells = <2>;
136 gpio-controller;
137 };
138 };
139
140 &wmac {
141 status = "okay";
142
143 mtd-cal-data = <&art 0x1000>;
144 nvmem-cells = <&macaddr_art_6>;
145 nvmem-cell-names = "mac-address";
146 };
147
148 &mdio0 {
149 status = "okay";
150
151 phy-mask = <0>;
152
153 phy0: ethernet-phy@0 {
154 reg = <0>;
155 eee-broken-100tx;
156 eee-broken-1000t;
157 };
158 };
159
160 &eth0 {
161 status = "okay";
162
163 pll-data = <0x02000000 0x00000101 0x00001313>;
164
165 nvmem-cells = <&macaddr_art_0>;
166 nvmem-cell-names = "mac-address";
167
168 phy-mode = "rgmii-id";
169 phy-handle = <&phy0>;
170
171 gmac-config {
172 device = <&gmac>;
173 rgmii-gmac0 = <1>;
174 rxdv-delay = <3>;
175 rxd-delay = <3>;
176 txen-delay = <0>;
177 txd-delay = <0>;
178 };
179 };
180
181 &art {
182 compatible = "nvmem-cells";
183 #address-cells = <1>;
184 #size-cells = <1>;
185
186 macaddr_art_0: macaddr@0 {
187 reg = <0x0 0x6>;
188 };
189
190 macaddr_art_6: macaddr@6 {
191 reg = <0x6 0x6>;
192 };
193
194 macaddr_art_c: macaddr@c {
195 reg = <0xc 0x6>;
196 };
197 };