ipq40xx: set DEVICE_DTS_DIR to /qcom by default
[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 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "ocedo,koala", "qca,qca9558";
11 model = "OCEDO Koala";
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 power {
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
28 default-state = "on";
29 };
30
31 wifi2 {
32 label = "yellow:wlan2";
33 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy1tpt";
35 };
36
37 wifi5 {
38 label = "red:wlan58";
39 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
41 };
42
43 led_system: system {
44 label = "blue:sys";
45 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys";
51
52 reset {
53 label = "reset";
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 };
57 };
58 };
59
60 &pcie0 {
61 status = "okay";
62
63 wifi@0,0 {
64 compatible = "qcom,ath10k";
65 reg = <0x0000 0 0 0 0>;
66 nvmem-cells = <&cal_art_5000>, <&macaddr_art_c>;
67 nvmem-cell-names = "calibration", "mac-address";
68 };
69 };
70
71 &spi {
72 status = "okay";
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <50000000>;
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 /* Dual-Flash layout combined */
97 compatible = "denx,uimage";
98 label = "firmware";
99 reg = <0x050000 0xe80000>;
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 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 macaddr_art_0: macaddr@0 {
125 reg = <0x0 0x6>;
126 };
127
128 macaddr_art_6: macaddr@6 {
129 reg = <0x6 0x6>;
130 };
131
132 macaddr_art_c: macaddr@c {
133 reg = <0xc 0x6>;
134 };
135
136 cal_art_5000: calibration@5000 {
137 reg = <0x5000 0x844>;
138 };
139 };
140 };
141 };
142 };
143 };
144
145 &wmac {
146 status = "okay";
147
148 mtd-cal-data = <&art 0x1000>;
149 nvmem-cells = <&macaddr_art_6>;
150 nvmem-cell-names = "mac-address";
151 };
152
153 &mdio0 {
154 status = "okay";
155
156 phy5: ethernet-phy@5 {
157 reg = <5>;
158 eee-broken-100tx;
159 eee-broken-1000t;
160 };
161 };
162
163 &eth0 {
164 status = "okay";
165
166 nvmem-cells = <&macaddr_art_0>;
167 nvmem-cell-names = "mac-address";
168
169 phy-handle = <&phy5>;
170 phy-mode = "rgmii-rxid";
171
172 pll-data = <0x8e000000 0x80000101 0x80001313>;
173 };