c08291560bfde4b59efd6b4372b8c4768e89f66a
[openwrt/staging/dedeckeh.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
77 partition@60000 {
78 compatible = "denx,uimage";
79 label = "firmware";
80 reg = <0x060000 0xf80000>;
81 };
82
83 art: partition@ff0000 {
84 label = "art";
85 reg = <0xff0000 0x010000>;
86 read-only;
87 };
88 };
89 };
90 };
91
92 &mdio0 {
93 status = "okay";
94
95 phy-mask = <0>;
96 phy0: ethernet-phy@0 {
97 reg = <0>;
98 phy-mode = "sgmii";
99
100 qca,ar8327-initvals = <
101 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
102 0x7c 0x0000007e /* PORT0_STATUS */
103 >;
104 };
105 };
106
107 &eth0 {
108 status = "okay";
109
110 nvmem-cells = <&macaddr_info_0>;
111 nvmem-cell-names = "mac-address";
112 phy-mode = "sgmii";
113 phy-handle = <&phy0>;
114 };
115
116 &wmac {
117 status = "okay";
118
119 mtd-cal-data = <&art 0x1000>;
120 };
121
122 &usb_phy0 {
123 status = "okay";
124 };
125
126 &usb0 {
127 #address-cells = <1>;
128 #size-cells = <0>;
129 status = "okay";
130
131 port@1 {
132 reg = <1>;
133 #trigger-source-cells = <0>;
134 };
135 };
136
137 &usb_phy1 {
138 status = "okay";
139 };
140
141 &usb1 {
142 #address-cells = <1>;
143 #size-cells = <0>;
144 status = "okay";
145
146 port@2 {
147 reg = <2>;
148 #trigger-source-cells = <0>;
149 };
150 };
151
152 &info {
153 compatible = "nvmem-cells";
154 #address-cells = <1>;
155 #size-cells = <1>;
156
157 macaddr_info_0: macaddr@0 {
158 reg = <0x0 0x6>;
159 };
160 };