ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9330_ziking_cpe46b.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9330.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "ZiKing CPE46B";
11 compatible = "ziking,cpe46b", "qca,ar9330";
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 wlan {
21 function = LED_FUNCTION_WLAN;
22 color = <LED_COLOR_ID_GREEN>;
23 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
24 linux,default-trigger = "phy0tpt";
25 };
26
27 rssi1 {
28 label = "green:rssi1";
29 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
30 };
31
32 rssi2 {
33 label = "green:rssi2";
34 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 linux,code = <KEY_RESTART>;
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 };
46 };
47 };
48
49 &spi {
50 status = "okay";
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 spi-max-frequency = <50000000>;
55 reg = <0>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 partition@0 {
63 label = "u-boot";
64 reg = <0x000000 0x010000>;
65 read-only;
66 };
67
68 partition@10000 {
69 label = "u-boot-env";
70 reg = <0x010000 0x010000>;
71 };
72
73 partition@20000 {
74 compatible = "denx,uimage";
75 label = "firmware";
76 reg = <0x020000 0x7d0000>;
77 };
78
79 art: partition@7f0000 {
80 label = "art";
81 reg = <0x7f0000 0x010000>;
82 read-only;
83
84 nvmem-layout {
85 compatible = "fixed-layout";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 macaddr_art_0: macaddr@0 {
90 compatible = "mac-base";
91 reg = <0x0 0x6>;
92 #nvmem-cell-cells = <1>;
93 };
94 };
95 };
96 };
97 };
98 };
99
100 &eth0 {
101 status = "okay";
102
103 nvmem-cells = <&macaddr_art_0 0>;
104 nvmem-cell-names = "mac-address";
105 };
106
107 &eth1 {
108 status = "okay";
109
110 nvmem-cells = <&macaddr_art_0 2>;
111 nvmem-cell-names = "mac-address";
112 };
113
114 &wmac {
115 status = "okay";
116
117 mtd-cal-data = <&art 0x1000>;
118 };