ath79: Add support for Buffalo WZR-HP-G300NH
[openwrt/openwrt.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 = <25000000>;
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 mtd-mac-address = <&art 0x06>;
99 };
100
101 &mdio0 {
102 status = "okay";
103
104 phy1: ethernet-phy@1 {
105 reg = <1>;
106 };
107
108 phy2: ethernet-phy@2 {
109 reg = <2>;
110 at803x-override-sgmii-link-check;
111 };
112 };
113
114 &eth0 {
115 status = "okay";
116 mtd-mac-address = <&art 0x00>;
117
118 phy-mode = "rgmii-rxid";
119 phy-handle = <&phy1>;
120 pll-data = <0x8e000000 0x80000101 0x80001313>;
121
122 gmac_config: gmac-config {
123 device = <&gmac>;
124
125 rxdv-delay = <3>;
126 rxd-delay = <3>;
127 txen-delay = <0>;
128 txd-delay = <0>;
129 rgmii-enabled = <1>;
130 };
131 };
132
133 &eth1 {
134 status = "okay";
135 mtd-mac-address = <&art 0x12>;
136 phy-handle = <&phy2>;
137 pll-data = <0x3000101 0x101 0x1313>;
138 qca955x-sgmii-fixup;
139 };