ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.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";
54
55 reset {
56 label = "reset";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &pcie0 {
64 status = "okay";
65 };
66
67 &uart {
68 status = "okay";
69 };
70
71 &pll {
72 clocks = <&extosc>;
73 };
74
75 &spi {
76 status = "okay";
77 num-cs = <1>;
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-max-frequency = <25000000>;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 uboot: partition@0 {
90 label = "u-boot";
91 reg = <0x000000 0x040000>;
92 read-only;
93 };
94
95 partition@40000 {
96 label = "u-boot-env";
97 reg = <0x040000 0x010000>;
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x050000 0x740000>;
104 };
105
106 partition@790000 {
107 label = "vendor";
108 reg = <0x790000 0x740000>;
109 read-only;
110 };
111
112 partition@ed0000 {
113 label = "data";
114 reg = <0xed0000 0x110000>;
115 read-only;
116 };
117
118 partition@fe0000 {
119 label = "id";
120 reg = <0xfe0000 0x010000>;
121 read-only;
122 };
123
124 art: partition@ff0000 {
125 label = "art";
126 reg = <0xff0000 0x010000>;
127 read-only;
128 };
129 };
130 };
131 };
132
133 &wmac {
134 status = "okay";
135
136 mtd-cal-data = <&art 0x1000>;
137 mtd-mac-address = <&art 0x06>;
138 };
139
140 &mdio0 {
141 status = "okay";
142
143 phy5: ethernet-phy@5 {
144 reg = <5>;
145 at803x-disable-smarteee;
146 };
147 };
148
149 &eth0 {
150 status = "okay";
151
152 mtd-mac-address = <&art 0x00>;
153
154 phy-handle = <&phy5>;
155 phy-mode = "rgmii-rxid";
156
157 pll-data = <0x8e000000 0x80000101 0x80001313>;
158 };