ath79: remove num-chipselects from SPI controller
[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 flash@0 {
63 compatible = "jedec,spi-nor";
64 spi-max-frequency = <50000000>;
65 reg = <0>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x000000 0x040000>;
75 read-only;
76 };
77
78 partition@1 {
79 label = "u-boot-env";
80 reg = <0x040000 0x010000>;
81 };
82
83 partition@2 {
84 compatible = "denx,uimage";
85 label = "firmware";
86 reg = <0x050000 0xfa0000>;
87 };
88
89 art: partition@3 {
90 label = "art";
91 reg = <0xff0000 0x010000>;
92 read-only;
93 };
94 };
95 };
96 };
97
98 &eth1 {
99 status = "okay";
100
101 mtd-mac-address = <&art 0x1002>;
102 mtd-mac-address-increment-byte = <3>;
103 mtd-mac-address-increment = <0x40>;
104 };
105
106 &mdio1 {
107 status = "okay";
108 };
109
110 &wmac {
111 status = "okay";
112
113 mtd-cal-data = <&art 0x1000>;
114 };