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