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