ath79: move dts-v1 statement to ath79.dtsi
[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 = "koala:green:power";
25 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
26 default-state = "on";
27 };
28
29 wifi2 {
30 label = "koala:yellow:wlan2";
31 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy1tpt";
33 };
34
35 wifi5 {
36 label = "koala:red:wlan58";
37 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 linux,default-trigger = "phy0tpt";
39 };
40
41 led_system: system {
42 label = "koala: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 &uart {
63 status = "okay";
64 };
65
66 &pll {
67 clocks = <&extosc>;
68 };
69
70 &spi {
71 status = "okay";
72 num-cs = <1>;
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <25000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 uboot: partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 partition@40000 {
91 label = "u-boot-env";
92 reg = <0x040000 0x010000>;
93 };
94
95 partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x050000 0x740000>;
99 };
100
101 partition@790000 {
102 label = "vendor";
103 reg = <0x790000 0x740000>;
104 read-only;
105 };
106
107 partition@ed0000 {
108 label = "data";
109 reg = <0xed0000 0x110000>;
110 read-only;
111 };
112
113 partition@fe0000 {
114 label = "id";
115 reg = <0xfe0000 0x010000>;
116 read-only;
117 };
118
119 art: partition@ff0000 {
120 label = "art";
121 reg = <0xff0000 0x010000>;
122 read-only;
123 };
124 };
125 };
126 };
127
128 &wmac {
129 status = "okay";
130
131 mtd-cal-data = <&art 0x1000>;
132 mtd-mac-address = <&art 0x06>;
133 };
134
135 &mdio0 {
136 status = "okay";
137
138 phy5: ethernet-phy@5 {
139 reg = <5>;
140 eee-broken-100tx;
141 eee-broken-1000t;
142 };
143 };
144
145 &eth0 {
146 status = "okay";
147
148 mtd-mac-address = <&art 0x00>;
149
150 phy-handle = <&phy5>;
151 phy-mode = "rgmii-rxid";
152
153 pll-data = <0x8e000000 0x80000101 0x80001313>;
154 };