ath79: remove 'fakeroot' for Senao devices
[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 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_status: status {
23 label = "green:status";
24 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys";
30
31 wps {
32 label = "wps";
33 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
35 };
36
37 reset {
38 label = "reset";
39 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
41 };
42 };
43 };
44
45 &usb {
46 dr_mode = "host";
47 status = "okay";
48 };
49
50 &usb_phy {
51 status = "okay";
52 };
53
54 &spi {
55 status = "okay";
56
57 flash@0 {
58 compatible = "jedec,spi-nor";
59 spi-max-frequency = <50000000>;
60 reg = <0>;
61
62 partitions {
63 compatible = "fixed-partitions";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x000000 0x040000>;
70 read-only;
71 };
72
73 partition@1 {
74 label = "u-boot-env";
75 reg = <0x040000 0x010000>;
76 };
77
78 partition@2 {
79 compatible = "denx,uimage";
80 label = "firmware";
81 reg = <0x050000 0xfa0000>;
82 };
83
84 art: partition@3 {
85 label = "art";
86 reg = <0xff0000 0x010000>;
87 read-only;
88 };
89 };
90 };
91 };
92
93 &eth1 {
94 status = "okay";
95
96 mtd-mac-address = <&art 0x1002>;
97 mtd-mac-address-increment-byte = <3>;
98 mtd-mac-address-increment = <0x40>;
99 };
100
101 &mdio1 {
102 status = "okay";
103 };
104
105 &wmac {
106 status = "okay";
107
108 mtd-cal-data = <&art 0x1000>;
109 };