ath79: increase SPI frequency for OCEDO boards
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_ocedo_koala.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "ocedo,koala", "qca,qca9558";
10 model = "OCEDO Koala";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &eth0;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 power {
24 label = "green:power";
25 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
26 default-state = "on";
27 };
28
29 wifi2 {
30 label = "yellow:wlan2";
31 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
33 };
34
35 wifi5 {
36 label = "red:wlan58";
37 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
39 };
40
41 led_system: system {
42 label = "blue:sys";
43 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 label = "reset";
52 linux,code = <KEY_RESTART>;
53 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
54 };
55 };
56 };
57
58 &pcie0 {
59 status = "okay";
60 };
61
62 &pll {
63 clocks = <&extosc>;
64 };
65
66 &spi {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <50000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 uboot: partition@0 {
80 label = "u-boot";
81 reg = <0x000000 0x040000>;
82 read-only;
83 };
84
85 partition@40000 {
86 label = "u-boot-env";
87 reg = <0x040000 0x010000>;
88 };
89
90 partition@50000 {
91 compatible = "denx,uimage";
92 label = "firmware";
93 reg = <0x050000 0x740000>;
94 };
95
96 partition@790000 {
97 label = "vendor";
98 reg = <0x790000 0x740000>;
99 read-only;
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 art: partition@ff0000 {
115 label = "art";
116 reg = <0xff0000 0x010000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &wmac {
124 status = "okay";
125
126 mtd-cal-data = <&art 0x1000>;
127 mtd-mac-address = <&art 0x06>;
128 };
129
130 &mdio0 {
131 status = "okay";
132
133 phy5: ethernet-phy@5 {
134 reg = <5>;
135 eee-broken-100tx;
136 eee-broken-1000t;
137 };
138 };
139
140 &eth0 {
141 status = "okay";
142
143 mtd-mac-address = <&art 0x00>;
144
145 phy-handle = <&phy5>;
146 phy-mode = "rgmii-rxid";
147
148 pll-data = <0x8e000000 0x80000101 0x80001313>;
149 };