ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9558_ocedo_ursus.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,ursus", "qca,qca9558";
11         model = "OCEDO Ursus";
12
13         leds {
14                 compatible = "gpio-leds";
15
16                 wifi2 {
17                         label = "ursus:green:wlan2g";
18                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
19                         linux,default-trigger = "phy1tpt";
20                 };
21
22                 wifi5 {
23                         label = "ursus:green:wlan5g";
24                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
25                         linux,default-trigger = "phy0tpt";
26                 };
27         };
28 };
29
30 &pcie1 {
31         status = "okay";
32 };
33
34 &uart {
35         status = "okay";
36 };
37
38 &pll {
39         clocks = <&extosc>;
40 };
41
42 &spi {
43         status = "okay";
44         num-cs = <1>;
45
46         flash@0 {
47                 compatible = "jedec,spi-nor";
48                 reg = <0>;
49                 spi-max-frequency = <25000000>;
50
51                 partitions {
52                         compatible = "fixed-partitions";
53                         #address-cells = <1>;
54                         #size-cells = <1>;
55
56                         uboot: partition@0 {
57                                 label = "u-boot";
58                                 reg = <0x000000 0x040000>;
59                                 read-only;
60                         };
61
62                         partition@40000 {
63                                 label = "u-boot-env";
64                                 reg = <0x040000 0x010000>;
65                         };
66
67                         partition@50000 {
68                                 compatible = "denx,uimage";
69                                 label = "firmware";
70                                 reg = <0x050000 0x740000>;
71                         };
72
73                         partition@790000 {
74                                 label = "vendor";
75                                 reg = <0x790000 0x740000>;
76                                 read-only;
77                         };
78
79                         partition@ed0000 {
80                                 label = "data";
81                                 reg = <0xed0000 0x110000>;
82                                 read-only;
83                         };
84
85                         partition@fe0000 {
86                                 label = "id";
87                                 reg = <0xfe0000 0x010000>;
88                                 read-only;
89                         };
90
91                         art: partition@ff0000 {
92                                 label = "art";
93                                 reg = <0xff0000 0x010000>;
94                                 read-only;
95                         };
96                 };
97         };
98 };
99
100 &wmac {
101         status = "okay";
102
103         mtd-cal-data = <&art 0x1000>;
104         mtd-mac-address = <&art 0x06>;
105 };
106
107 &mdio0 {
108         status = "okay";
109
110         phy1: ethernet-phy@1 {
111                 reg = <1>;
112         };
113
114         phy2: ethernet-phy@2 {
115                 reg = <2>;
116                 at803x-override-sgmii-link-check;
117         };
118 };
119
120 &eth0 {
121         status = "okay";
122         mtd-mac-address = <&art 0x00>;
123
124         phy-mode = "rgmii-rxid";
125         phy-handle = <&phy1>;
126         pll-data = <0x8e000000 0x80000101 0x80001313>;
127
128         gmac_config: gmac-config {
129                 device = <&gmac>;
130
131                 rxdv-delay = <3>;
132                 rxd-delay = <3>;
133                 txen-delay = <0>;
134                 txd-delay = <0>;
135                 rgmii-enabled = <1>;
136         };
137 };
138
139 &eth1 {
140         status = "okay";
141         mtd-mac-address = <&art 0x12>;
142         phy-handle = <&phy2>;
143         pll-data = <0x3000101 0x101 0x1313>;
144         qca955x-sgmii-fixup;
145 };