ath79: add support for Netgear WNR1000 v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_embeddedwireless_dorin.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 "ar9331.dtsi"
8
9 / {
10 model = "Embedded Wireless Dorin";
11 compatible = "embeddedwireless,dorin", "qca,ar9331";
12
13 aliases {
14 led-boot = &status;
15 led-failsafe = &status;
16 led-running = &status;
17 led-upgrade = &status;
18 serial0 = &uart;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 status: status {
25 label = "dorin:green:status";
26 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 wps {
34 label = "wps";
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
37 };
38
39 reset {
40 label = "reset";
41 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
43 };
44 };
45 };
46
47 &uart {
48 status = "okay";
49 };
50
51 &gpio {
52 status = "okay";
53 };
54
55 &usb {
56 dr_mode = "host";
57 status = "okay";
58 };
59
60 &usb_phy {
61 status = "okay";
62 };
63
64 &spi {
65 num-chipselects = <1>;
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 spi-max-frequency = <104000000>;
71 reg = <0>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x000000 0x040000>;
81 read-only;
82 };
83
84 partition@1 {
85 label = "u-boot-env";
86 reg = <0x040000 0x010000>;
87 };
88
89 partition@2 {
90 compatible = "denx,uimage";
91 label = "firmware";
92 reg = <0x050000 0xfa0000>;
93 };
94
95 art: partition@3 {
96 label = "art";
97 reg = <0xff0000 0x010000>;
98 read-only;
99 };
100 };
101 };
102 };
103
104 &eth1 {
105 status = "okay";
106
107 mtd-mac-address = <&art 0x1002>;
108 mtd-mac-address-increment-byte = <3>;
109 mtd-mac-address-increment = <0x40>;
110 };
111
112 &mdio1 {
113 status = "okay";
114 };
115
116 &wmac {
117 status = "okay";
118 mtd-cal-data = <&art 0x1000>;
119 mtd-mac-address = <&art 0x1002>;
120 };