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