ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 = "red:system";
24 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
25 };
26
27 wifi_2g {
28 label = "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 &spi {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <25000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x000000 0x040000>;
62 read-only;
63 };
64
65 partition@40000 {
66 label = "u-boot-env";
67 reg = <0x040000 0x010000>;
68 read-only;
69 };
70
71 info: partition@50000 {
72 label = "factory";
73 reg = <0x050000 0x010000>;
74 read-only;
75
76 nvmem-layout {
77 compatible = "fixed-layout";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 macaddr_info_0: macaddr@0 {
82 reg = <0x0 0x6>;
83 };
84 };
85 };
86
87 partition@60000 {
88 compatible = "denx,uimage";
89 label = "firmware";
90 reg = <0x060000 0xf80000>;
91 };
92
93 art: partition@ff0000 {
94 label = "art";
95 reg = <0xff0000 0x010000>;
96 read-only;
97 };
98 };
99 };
100 };
101
102 &mdio0 {
103 status = "okay";
104
105 phy0: ethernet-phy@0 {
106 reg = <0>;
107 phy-mode = "sgmii";
108
109 qca,ar8327-initvals = <
110 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
111 0x7c 0x0000007e /* PORT0_STATUS */
112 >;
113 };
114 };
115
116 &eth0 {
117 status = "okay";
118
119 nvmem-cells = <&macaddr_info_0>;
120 nvmem-cell-names = "mac-address";
121 phy-mode = "sgmii";
122 phy-handle = <&phy0>;
123 };
124
125 &wmac {
126 status = "okay";
127
128 mtd-cal-data = <&art 0x1000>;
129 };
130
131 &usb_phy0 {
132 status = "okay";
133 };
134
135 &usb0 {
136 status = "okay";
137 };
138
139 &usb_phy1 {
140 status = "okay";
141 };
142
143 &usb1 {
144 status = "okay";
145 };