ath79: ar: convert to mac-base
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9558_comfast_cf-e380ac-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "comfast,cf-e380ac-v2", "qca,qca9558";
10 model = "COMFAST CF-E380AC";
11
12 aliases {
13 serial0 = &uart;
14 label-mac-device = &eth1;
15 led-boot = &led_lan;
16 led-failsafe = &led_lan;
17 led-upgrade = &led_lan;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 pinctrl-names = "default";
35 pinctrl-0 = <&jtag_disable_pins>;
36
37 led_lan: lan {
38 label = "green:lan";
39 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
40 };
41
42 wlan2g {
43 label = "blue:wlan2g";
44 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "phy1tpt";
46 };
47
48 wlan5g {
49 label = "red:wlan5g";
50 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
52 };
53 };
54
55 watchdog {
56 compatible = "linux,wdt-gpio";
57
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59 hw_algo = "toggle";
60 hw_margin_ms = <1200>;
61 always-running;
62 };
63 };
64
65 &eth0 {
66 status = "okay";
67 mtd-mac-address = <&art 0x0>;
68 };
69
70
71 &spi {
72 status = "okay";
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <50000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 art: partition@40000 {
91 label = "art";
92 reg = <0x040000 0x010000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 macaddr_art_0: macaddr@0 {
101 compatible = "mac-base";
102 reg = <0x0 0x6>;
103 #nvmem-cell-cells = <1>;
104 };
105 };
106 };
107
108 partition@50000 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x050000 0x0fa0000>;
112 };
113
114 partition@ff0000 {
115 label = "art-backup";
116 reg = <0xff0000 0x010000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125
126 nvmem-cells = <&macaddr_art_0 0>;
127 nvmem-cell-names = "mac-address";
128
129 pll-data = <0xbe000000 0xb0000101 0xb0001313>;
130
131 fixed-link {
132 speed = <1000>;
133 full-duplex;
134 };
135 };
136
137 &pcie0 {
138 status = "okay";
139 };
140
141 &wdt {
142 status = "okay";
143 };
144
145 &wmac {
146 status = "okay";
147
148 mtd-cal-data = <&art 0x1000>;
149 nvmem-cells = <&macaddr_art_0 10>;
150 nvmem-cell-names = "mac-address";
151 };