ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9342_iodata_etg3-r.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 "ar9344.dtsi"
8
9 / {
10 compatible = "iodata,etg3-r", "qca,ar9344";
11 model = "I-O DATA ETG3-R";
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &power;
16 led-running = &power;
17 led-upgrade = &power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 power: power {
24 label = "etg3-r:green:power";
25 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
26 default-state = "on";
27 };
28
29 notification {
30 label = "etg3-r:green:notification";
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 label = "reset";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
43 };
44 };
45 };
46
47 &ref {
48 clock-frequency = <40000000>;
49 };
50
51 &spi {
52 num-cs = <1>;
53 status = "okay";
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 };
75
76 partition@50000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x050000 0x780000>;
80 };
81
82 partition@7d0000 {
83 label = "Config";
84 reg = <0x07d0000 0x10000>;
85 read-only;
86 };
87
88 partition@7e0000 {
89 label = "Rsv";
90 reg = <0x07e0000 0x10000>;
91 read-only;
92 };
93
94 partition@7f0000 {
95 label = "art";
96 reg = <0x7f0000 0x010000>;
97 read-only;
98 };
99 };
100 };
101 };
102
103 &mdio0 {
104 status = "okay";
105
106 phy0: ethernet-phy@0 {
107 reg = <0>;
108 phy-mode = "rgmii";
109
110 qca,ar8327-initvals = <
111 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
112 0x50 0xffb7ffb7 /* LED_CTRL0 */
113 0x54 0xffb7ffb7 /* LED_CTRL1 */
114 0x58 0xffb7ffb7 /* LED_CTRL2 */
115 0x5c 0x03ffff00 /* LED_CTRL3 */
116 0x7c 0x0000007e /* PORT0_STATUS */
117 >;
118 };
119 };
120
121 &eth0 {
122 status = "okay";
123
124 pll-data = <0x0e000000 0x00000101 0x00001616>;
125
126 phy-mode = "rgmii";
127 phy-handle = <&phy0>;
128
129 gmac-config {
130 device = <&gmac>;
131
132 rgmii-gmac0 = <1>;
133 rxd-delay = <3>;
134 rxdv-delay = <3>;
135 };
136 };
137
138 &uart {
139 status = "okay";
140 };