be958d19a08cc2cf2143d61c2b402a40bcc5ec4c
[openwrt/staging/hauke.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 &spi {
34 status = "okay";
35
36 flash@0 {
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <50000000>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 uboot: partition@0 {
47 label = "u-boot";
48 reg = <0x000000 0x040000>;
49 read-only;
50 };
51
52 partition@40000 {
53 label = "u-boot-env";
54 reg = <0x040000 0x010000>;
55 };
56
57 partition@50000 {
58 /* Dual-Flash layout combined */
59 compatible = "denx,uimage";
60 label = "firmware";
61 reg = <0x050000 0xe80000>;
62 };
63
64 partition@ed0000 {
65 label = "data";
66 reg = <0xed0000 0x110000>;
67 read-only;
68 };
69
70 partition@fe0000 {
71 label = "id";
72 reg = <0xfe0000 0x010000>;
73 read-only;
74 };
75
76 art: partition@ff0000 {
77 label = "art";
78 reg = <0xff0000 0x010000>;
79 read-only;
80 };
81 };
82 };
83 };
84
85 &wmac {
86 status = "okay";
87
88 mtd-cal-data = <&art 0x1000>;
89 nvmem-cells = <&macaddr_art_6>;
90 nvmem-cell-names = "mac-address";
91 };
92
93 &mdio0 {
94 status = "okay";
95
96 phy1: ethernet-phy@1 {
97 reg = <1>;
98 };
99
100 phy2: ethernet-phy@2 {
101 reg = <2>;
102 at803x-override-sgmii-link-check;
103 };
104 };
105
106 &eth0 {
107 status = "okay";
108 nvmem-cells = <&macaddr_art_0>;
109 nvmem-cell-names = "mac-address";
110
111 phy-mode = "rgmii-rxid";
112 phy-handle = <&phy1>;
113 pll-data = <0x8e000000 0x80000101 0x80001313>;
114
115 gmac_config: gmac-config {
116 device = <&gmac>;
117
118 rxdv-delay = <3>;
119 rxd-delay = <3>;
120 txen-delay = <0>;
121 txd-delay = <0>;
122 rgmii-enabled = <1>;
123 };
124 };
125
126 &eth1 {
127 status = "okay";
128 nvmem-cells = <&macaddr_art_12>;
129 nvmem-cell-names = "mac-address";
130 phy-handle = <&phy2>;
131 pll-data = <0x3000101 0x101 0x1313>;
132 qca955x-sgmii-fixup;
133 };
134
135 &art {
136 compatible = "nvmem-cells";
137 #address-cells = <1>;
138 #size-cells = <1>;
139
140 macaddr_art_0: macaddr@0 {
141 reg = <0x0 0x6>;
142 };
143
144 macaddr_art_6: macaddr@6 {
145 reg = <0x6 0x6>;
146 };
147
148 macaddr_art_12: macaddr@12 {
149 reg = <0x12 0x6>;
150 };
151 };