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