ath79: drop num-cs for SPI controller
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_hak5_lan-turtle.dtsi
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 aliases {
10 serial0 = &uart;
11 };
12
13 keys: keys {
14 compatible = "gpio-keys";
15
16 pinctrl-names = "default";
17 pinctrl-0 = <&enable_gpio11>;
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25 };
26 };
27
28 &eth0 {
29 status = "okay";
30
31 mtd-mac-address = <&uboot 0x1fc00>;
32 mtd-mac-address-increment = <(-1)>;
33
34 gmac-config {
35 device = <&gmac>;
36
37 switch-phy-addr-swap = <1>;
38 switch-phy-swap = <1>;
39 };
40 };
41
42 &eth1 {
43 status = "okay";
44
45 mtd-mac-address = <&uboot 0x1fc00>;
46 mtd-mac-address-increment = <1>;
47 };
48
49 &pinmux {
50 enable_gpio11: pinmux_enable_gpio11 {
51 pinctrl-single,bits = <0x0 0x0 0x4>;
52 };
53 };
54
55 &spi {
56 status = "okay";
57
58 flash@0 {
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <50000000>;
62 m25p,fast-read;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 uboot: partition@0 {
70 label = "u-boot";
71 reg = <0x000000 0x020000>;
72 read-only;
73 };
74
75 partition@20000 {
76 label = "firmware";
77 reg = <0x020000 0xfd0000>;
78 compatible = "tplink,firmware";
79 };
80
81 partition@ff0000 {
82 label = "art";
83 reg = <0xff0000 0x010000>;
84 read-only;
85 };
86 };
87 };
88 };
89
90 &uart {
91 status = "okay";
92 };
93
94 &usb {
95 status = "okay";
96 };
97
98 &usb_phy {
99 status = "okay";
100 };