ath79: add support for Netgear WNR1000 v2
[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 &pcie1 {
35 status = "okay";
36 };
37
38 &uart {
39 status = "okay";
40 };
41
42 &pll {
43 clocks = <&extosc>;
44 };
45
46 &spi {
47 status = "okay";
48 num-cs = <1>;
49
50 flash@0 {
51 compatible = "jedec,spi-nor";
52 reg = <0>;
53 spi-max-frequency = <25000000>;
54
55 partitions {
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 uboot: partition@0 {
61 label = "u-boot";
62 reg = <0x000000 0x040000>;
63 read-only;
64 };
65
66 partition@40000 {
67 label = "u-boot-env";
68 reg = <0x040000 0x010000>;
69 };
70
71 partition@50000 {
72 compatible = "denx,uimage";
73 label = "firmware";
74 reg = <0x050000 0x740000>;
75 };
76
77 partition@790000 {
78 label = "vendor";
79 reg = <0x790000 0x740000>;
80 read-only;
81 };
82
83 partition@ed0000 {
84 label = "data";
85 reg = <0xed0000 0x110000>;
86 read-only;
87 };
88
89 partition@fe0000 {
90 label = "id";
91 reg = <0xfe0000 0x010000>;
92 read-only;
93 };
94
95 art: partition@ff0000 {
96 label = "art";
97 reg = <0xff0000 0x010000>;
98 read-only;
99 };
100 };
101 };
102 };
103
104 &wmac {
105 status = "okay";
106
107 mtd-cal-data = <&art 0x1000>;
108 mtd-mac-address = <&art 0x06>;
109 };
110
111 &mdio0 {
112 status = "okay";
113
114 phy1: ethernet-phy@1 {
115 reg = <1>;
116 };
117
118 phy2: ethernet-phy@2 {
119 reg = <2>;
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125 mtd-mac-address = <&art 0x00>;
126
127 phy-mode = "rgmii-rxid";
128 phy-handle = <&phy1>;
129 pll-data = <0x8e000000 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 };