ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_embeddedwireless_dorin.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "Embedded Wireless Dorin";
11 compatible = "embeddedwireless,dorin", "qca,ar9331";
12
13 aliases {
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_status: status {
24 function = LED_FUNCTION_STATUS;
25 color = <LED_COLOR_ID_GREEN>;
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_HIGH>;
37 };
38
39 reset {
40 label = "reset";
41 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
43 };
44 };
45 };
46
47 &usb {
48 dr_mode = "host";
49 status = "okay";
50 };
51
52 &usb_phy {
53 status = "okay";
54 };
55
56 &spi {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 spi-max-frequency = <50000000>;
62 reg = <0>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x000000 0x040000>;
72 read-only;
73 };
74
75 partition@1 {
76 label = "u-boot-env";
77 reg = <0x040000 0x010000>;
78 };
79
80 partition@2 {
81 compatible = "denx,uimage";
82 label = "firmware";
83 reg = <0x050000 0xfa0000>;
84 };
85
86 art: partition@3 {
87 label = "art";
88 reg = <0xff0000 0x010000>;
89 read-only;
90
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 macaddr_art_1002: macaddr@1002 {
97 compatible = "mac-base";
98 reg = <0x1002 0x6>;
99 #nvmem-cell-cells = <1>;
100 };
101 };
102 };
103 };
104 };
105 };
106
107 &eth1 {
108 status = "okay";
109
110 nvmem-cells = <&macaddr_art_1002 0x400000>;
111 nvmem-cell-names = "mac-address";
112 };
113
114 &mdio1 {
115 status = "okay";
116 };
117
118 &wmac {
119 status = "okay";
120
121 mtd-cal-data = <&art 0x1000>;
122 };