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