ath79: qca: convert to nvmem-layout
[openwrt/staging/blocktrron.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e5.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 = "comfast,cf-e5", "qca,qca9531";
10 model = "COMFAST CF-E5/E7";
11
12 aliases {
13 label-mac-device = &eth0;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 leds {
27 compatible = "gpio-leds";
28 pinctrl-names = "default";
29 pinctrl-0 = <&jtag_disable_pins &led_wan_pin>;
30
31 wan {
32 label = "blue:wan";
33 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
34 };
35
36 lan {
37 label = "blue:lan";
38 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
39 };
40
41 wlan {
42 label = "blue:wlan";
43 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46
47 rssi0 {
48 label = "blue:rssi0";
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 };
51
52 rssi1 {
53 label = "blue:rssi1";
54 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
55 };
56
57 rssi2 {
58 label = "blue:rssi2";
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &usb0 {
65 status = "okay";
66 };
67
68 &usb_phy {
69 status = "okay";
70 };
71
72 &spi {
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <25000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x000000 0x010000>;
88 read-only;
89 };
90
91 art: partition@10000 {
92 label = "art";
93 reg = <0x010000 0x010000>;
94 read-only;
95
96 nvmem-layout {
97 compatible = "fixed-layout";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 macaddr_art_0: macaddr@0 {
102 reg = <0x0 0x6>;
103 };
104
105 macaddr_art_6: macaddr@6 {
106 reg = <0x6 0x6>;
107 };
108 };
109 };
110
111 partition@20000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x020000 0xfd0000>;
115 };
116
117 partition@ff0000 {
118 label = "art-backup";
119 reg = <0xff0000 0x010000>;
120 read-only;
121 };
122 };
123 };
124 };
125
126 &eth0 {
127 status = "okay";
128
129 phy-handle = <&swphy4>;
130
131 nvmem-cells = <&macaddr_art_0>;
132 nvmem-cell-names = "mac-address";
133 };
134
135 &eth1 {
136 nvmem-cells = <&macaddr_art_6>;
137 nvmem-cell-names = "mac-address";
138 };
139
140 &wmac {
141 status = "okay";
142
143 mtd-cal-data = <&art 0x1000>;
144 };
145
146 &pinmux {
147 led_wan_pin: pinmux_led_wan_pin {
148 pinctrl-single,bits = <0x4 0x0 0xff>;
149 };
150 };