ath79: fix nanobeam ac ethernet interface
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_8dev_lima.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "8dev,lima", "qca,qca9531";
10 model = "8devices Lima";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "reset";
17 linux-code = "KEY_RESTART";
18 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
19 };
20 };
21 };
22
23 &pcie0 {
24 status = "okay";
25 };
26
27 &uart {
28 status = "okay";
29 };
30
31 &usb0 {
32 status = "okay";
33
34 dr_mode = "host";
35 };
36
37 &usb_phy {
38 status = "okay";
39 };
40
41 &wdt {
42 status = "okay";
43 };
44
45 &spi {
46 status = "okay";
47
48 num-cs = <1>;
49
50 /* Winbond W25Q256 SPI flash */
51 flash@0 {
52 compatible = "jedec,spi-nor";
53 reg = <0>;
54 spi-max-frequency = <45000000>;
55
56 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x000000 0x040000>;
64 read-only;
65 };
66
67 partition@40000 {
68 label = "u-boot-env";
69 reg = <0x040000 0x040000>;
70 };
71
72 art: partition@80000 {
73 label = "art";
74 reg = <0x080000 0x040000>;
75 read-only;
76 };
77
78 partition@c0000 {
79 compatible = "denx,uimage";
80 label = "firmware";
81 reg = <0x0c0000 0xf40000>;
82 };
83 };
84 };
85 };
86
87 &mdio0 {
88 status = "okay";
89 };
90
91 &eth0 {
92 status = "okay";
93
94 phy-handle = <&swphy0>;
95
96 mtd-mac-address = <&art 0x6>;
97
98 gmac-config {
99 device = <&gmac>;
100
101 switch-phy-addr-swap = <1>;
102 switch-phy-swap = <1>;
103 };
104 };
105
106 &eth1 {
107 mtd-mac-address = <&art 0x0>;
108 };
109
110 &wmac {
111 status = "okay";
112
113 mtd-cal-data = <&art 0x1000>;
114 };