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