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