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