3c2a1b2147bba88c9847849d9bd8e4f104e21284
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_ew_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";
12
13 aliases {
14 serial0 = &uart;
15 };
16
17 memory@0 {
18 device_type = "memory";
19 reg = <0x0 0x4000000>;
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 status {
26 label = "dorin:green:status";
27 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
28 default-state = "off";
29 };
30 };
31
32 keys {
33 compatible = "gpio-keys-polled";
34 #address-cells = <1>;
35 #size-cells = <0>;
36 poll-interval = <100>;
37
38 wps {
39 label = "wps";
40 linux,code = <KEY_WPS_BUTTON>;
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42 };
43
44 reset {
45 label = "reset";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
48 };
49 };
50 };
51
52 &uart {
53 status = "okay";
54 };
55
56 &gpio {
57 status = "okay";
58 };
59
60 &usb {
61 dr_mode = "host";
62 status = "okay";
63 };
64
65 &usb_phy {
66 status = "okay";
67 };
68
69 &spi {
70 num-chipselects = <1>;
71 status = "okay";
72
73 spiflash {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 compatible = "jedec,spi-nor";
77 spi-max-frequency = <104000000>;
78 reg = <0>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x000000 0x040000>;
83 read-only;
84 };
85
86 partition@1 {
87 label = "u-boot-env";
88 reg = <0x040000 0x010000>;
89 };
90
91 partition@2 {
92 label = "firmware";
93 reg = <0x050000 0xfa0000>;
94 };
95
96 art: partition@3 {
97 label = "ART";
98 reg = <0xff0000 0x010000>;
99 read-only;
100 };
101 };
102 };
103
104 &eth1 {
105 status = "okay";
106
107 mtd-mac-address = <&art 0x1002>;
108
109 fixed-link {
110 speed = <1000>;
111 full-duplex;
112 };
113
114 gmac-config {
115 device = <&gmac>;
116
117 switch-phy-addr-swap = <1>;
118 switch-phy-swap = <1>;
119 };
120 };
121
122 &mdio1 {
123 status = "okay";
124 };