d37e1aed37cf892cf744f247f2d589432b8c4ee3
[openwrt/staging/ynezz.git] / target / linux / ath79 / dts / qca9563_rosinson_wr818.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "ROSINSON WR818";
10 compatible = "rosinson,wr818", "qca,qca9563";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_system: system {
23 label = "wr818:red:system";
24 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
25 };
26
27 wifi_2g {
28 label = "wr818:red:wifi2g";
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy0tpt";
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 reset {
38 label = "reset";
39 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
42 };
43 };
44 };
45
46 &uart {
47 status = "okay";
48 };
49
50 &spi {
51 status = "okay";
52
53 num-cs = <1>;
54
55 flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <25000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x000000 0x040000>;
68 read-only;
69 };
70
71 partition@40000 {
72 label = "u-boot-env";
73 reg = <0x040000 0x010000>;
74 read-only;
75 };
76
77 info: partition@50000 {
78 label = "factory";
79 reg = <0x050000 0x010000>;
80 read-only;
81 };
82
83 partition@60000 {
84 compatible = "denx,uimage";
85 label = "firmware";
86 reg = <0x060000 0xf80000>;
87 };
88
89 art: partition@ff0000 {
90 label = "art";
91 reg = <0xff0000 0x010000>;
92 read-only;
93 };
94 };
95 };
96 };
97
98 &mdio0 {
99 status = "okay";
100
101 phy-mask = <0>;
102 phy0: ethernet-phy@0 {
103 reg = <0>;
104 phy-mode = "sgmii";
105
106 qca,ar8327-initvals = <
107 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
108 0x7c 0x0000007e /* PORT0_STATUS */
109 >;
110 };
111 };
112
113 &eth0 {
114 status = "okay";
115
116 mtd-mac-address = <&info 0x0>;
117 phy-mode = "sgmii";
118 phy-handle = <&phy0>;
119 };
120
121 &wmac {
122 status = "okay";
123
124 mtd-cal-data = <&art 0x1000>;
125 };
126
127 &usb_phy0 {
128 status = "okay";
129 };
130
131 &usb0 {
132 #address-cells = <1>;
133 #size-cells = <0>;
134 status = "okay";
135
136 port@1 {
137 reg = <1>;
138 #trigger-source-cells = <0>;
139 };
140 };
141
142 &usb_phy1 {
143 status = "okay";
144 };
145
146 &usb1 {
147 #address-cells = <1>;
148 #size-cells = <0>;
149 status = "okay";
150
151 port@2 {
152 reg = <2>;
153 #trigger-source-cells = <0>;
154 };
155 };