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