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