ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 &usb0 {
28 status = "okay";
29
30 dr_mode = "host";
31 };
32
33 &usb_phy {
34 status = "okay";
35 };
36
37 &wdt {
38 status = "okay";
39 };
40
41 &spi {
42 status = "okay";
43
44 /* Winbond W25Q256 SPI flash */
45 flash@0 {
46 compatible = "jedec,spi-nor";
47 reg = <0>;
48 spi-max-frequency = <45000000>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "u-boot";
57 reg = <0x000000 0x040000>;
58 read-only;
59 };
60
61 partition@40000 {
62 label = "u-boot-env";
63 reg = <0x040000 0x040000>;
64 };
65
66 art: partition@80000 {
67 label = "art";
68 reg = <0x080000 0x040000>;
69 read-only;
70
71 nvmem-layout {
72 compatible = "fixed-layout";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 macaddr_art_0: macaddr@0 {
77 reg = <0x0 0x6>;
78 };
79
80 macaddr_art_6: macaddr@6 {
81 reg = <0x6 0x6>;
82 };
83 };
84 };
85
86 partition@c0000 {
87 compatible = "denx,uimage";
88 label = "firmware";
89 reg = <0x0c0000 0xf40000>;
90 };
91 };
92 };
93 };
94
95 &mdio0 {
96 status = "okay";
97 };
98
99 &eth0 {
100 status = "okay";
101
102 phy-handle = <&swphy0>;
103
104 nvmem-cells = <&macaddr_art_6>;
105 nvmem-cell-names = "mac-address";
106
107 gmac-config {
108 device = <&gmac>;
109
110 switch-phy-addr-swap = <1>;
111 switch-phy-swap = <1>;
112 };
113 };
114
115 &eth1 {
116 nvmem-cells = <&macaddr_art_0>;
117 nvmem-cell-names = "mac-address";
118 };
119
120 &wmac {
121 status = "okay";
122
123 mtd-cal-data = <&art 0x1000>;
124 };