ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar934x_ruckus_zf73xx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
9
10 / {
11 aliases {
12 led-boot = &power_green;
13 led-failsafe = &power_red;
14 led-running = &power_green;
15 led-upgrade = &power_red;
16 };
17
18 firmware-concat {
19 compatible = "mtd-concat";
20 devices = <&fwconcat0 &fwconcat1>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 reg = <0x0 0x1f00000>;
29 label = "firmware";
30 compatible = "openwrt,uimage", "denx,uimage";
31 };
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys";
37
38 reset {
39 linux,code = <KEY_RESTART>;
40 label = "Reset button";
41 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
42 debounce-interval = <50>;
43 };
44 };
45
46 leds {
47 compatible = "gpio-leds";
48 pinctrl-names = "default";
49 pinctrl-0 = <&enable_gpio_11>,
50 <&enable_gpio_16>,
51 <&enable_gpio_4>,
52 <&clks_disable_pins>;
53
54 power_green: power-green {
55 function = LED_FUNCTION_POWER;
56 color = <LED_COLOR_ID_GREEN>;
57 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
58 default-state = "on";
59 };
60 };
61
62 reserved-memory {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 ranges;
66
67 ruckus-himem@7ff0000 {
68 /* Ruckus Himem area used to control
69 * redundant boot image selection
70 */
71 compatible = "nvmem-rmem";
72 reg = <0x7ff0000 0x10000>;
73 no-map;
74 };
75 };
76 };
77
78 &ref {
79 clock-frequency = <40000000>;
80 };
81
82 &spi {
83 status = "okay";
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <25000000>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 partition@0 {
96 label = "u-boot";
97 reg = <0x000000 0x040000>;
98 read-only;
99 };
100
101 fwconcat0: partition@40000 {
102 label = "fwconcat0";
103 reg = <0x040000 0xf00000>;
104 };
105
106 partition@f40000 {
107 compatible = "u-boot,env";
108 label = "u-boot-env";
109 reg = <0xf40000 0x040000>;
110 };
111
112 board_data: partition@f80000 {
113 label = "board-data";
114 reg = <0xf80000 0x080000>;
115 read-only;
116 };
117
118 fwconcat1: partition@1000000 {
119 label = "fwconcat1";
120 reg = <0x1000000 0x1000000>;
121 };
122 };
123 };
124 };
125
126 &mdio0 {
127 status = "okay";
128
129 phy: ethernet-phy@6 {
130 compatible = "ethernet-phy-ieee802.3-c22";
131 reg = <6>;
132 };
133 };
134
135 &eth0 {
136 status = "okay";
137 pll-data = <0x02000000 0x00000101 0x00001313>;
138 phy-mode = "rgmii-id";
139 phy-handle = <&phy>;
140
141 nvmem-cell-names = "mac-address";
142
143 gmac-config {
144 device = <&gmac>;
145 rgmii-gmac0 = <1>;
146 rxdv-delay = <3>;
147 rxd-delay = <3>;
148 };
149 };
150
151 &pinmux {
152 clks_disable_pins: pinmux_clks_disable_pins {
153 pinctrl-single,bits = <0x40 0x0 0x20>;
154 };
155
156 enable_gpio_4: pinctrl_enable_gpio_4 {
157 pinctrl-single,bits = <0x4 0x0 0xff>;
158 };
159
160 enable_gpio_11: pinctrl_enable_gpio_11 {
161 pinctrl-single,bits = <0x8 0x0 0xff000000>;
162 };
163
164 enable_gpio_16: pinctrl_enable_gpio_16 {
165 pinctrl-single,bits = <0x10 0x0 0xff>;
166 };
167 };
168
169 &wmac {
170 status = "okay";
171
172 nvmem-cells = <&macaddr_board_data_60>, <&cal_board_data_41000>;
173 nvmem-cell-names = "mac-address", "calibration";
174 };
175
176 &usb {
177 status = "okay";
178 };
179
180 &usb_phy {
181 status = "okay";
182 };