1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Aerohive BR200-WP Device Tree Source
5 * Based on: Aerohive HiveAP-330 Device Tree Source
7 * Copyright (C) 2017 Chris Blake <chrisrblake93@gmail.com>
8 * Copyright (C) 2023 Pawel Dembicki <paweldembicki@gmail.com>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/gpio/gpio.h>
15 /include/ "fsl/p1020si-pre.dtsi"
18 model = "Aerohive BR200-WP";
19 compatible = "aerohive,br200-wp";
22 bootargs = "console=ttyS0,9600";
23 bootargs-override = "console=ttyS0,9600 noinitrd";
27 led-boot = &led_attention;
28 led-failsafe = &led_attention;
29 led-running = &led_status;
30 led-upgrade = &led_status;
31 label-mac-device = &enet0;
35 device_type = "memory";
39 /delete-property/ PowerPC,P1020@1; /* P1011 have one core only */
42 board_lbc: lbc: localbus@ffe05000 {
43 reg = <0 0xffe05000 0 0x1000>;
44 ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
47 compatible = "cfi-flash";
48 reg = <0x0 0x0 0x4000000>;
53 compatible = "fixed-partitions";
63 reg = <0x40000 0x40000>;
68 reg = <0x80000 0x27c0000>;
73 reg = <0x2840000 0x800000>;
78 reg = <0x3040000 0xec0000>;
79 label = "stock-jffs2";
84 reg = <0x3f00000 0x20000>;
89 compatible = "fixed-layout";
93 macaddr_hwinfo_0: macaddr@0 {
94 compatible = "mac-base";
96 #nvmem-cell-cells = <1>;
102 reg = <0x3f20000 0x20000>;
108 reg = <0x3f40000 0x20000>;
109 label = "boot-info-backup";
114 reg = <0x3f60000 0x20000>;
115 label = "u-boot-env";
119 reg = <0x3f80000 0x80000>;
125 reg = <0x0 0x3040000>;
132 board_soc: soc: soc@ffe00000 {
133 ranges = <0x0 0x0 0xffe00000 0x100000>;
158 compatible = "qca,qca8327";
160 reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
163 #address-cells = <1>;
169 phy-handle = <&phy_port1>;
170 nvmem-cells = <&macaddr_hwinfo_0 2>;
171 nvmem-cell-names = "mac-address";
177 phy-handle = <&phy_port2>;
178 nvmem-cells = <&macaddr_hwinfo_0 3>;
179 nvmem-cell-names = "mac-address";
185 phy-handle = <&phy_port3>;
186 nvmem-cells = <&macaddr_hwinfo_0 4>;
187 nvmem-cell-names = "mac-address";
193 phy-handle = <&phy_port4>;
194 nvmem-cells = <&macaddr_hwinfo_0 5>;
195 nvmem-cell-names = "mac-address";
201 phy-handle = <&phy_port5>;
202 nvmem-cells = <&macaddr_hwinfo_0 0>;
203 nvmem-cell-names = "mac-address";
209 phy-mode = "rgmii-id";
228 enet0: ethernet@b0000 {
230 phy-connection-type = "rgmii-id";
231 nvmem-cells = <&macaddr_hwinfo_0 0>;
232 nvmem-cell-names = "mac-address";
240 enet1: ethernet@b1000 {
244 enet2: ethernet@b2000 {
248 gpio0: gpio-controller@fc00 {
261 pci0: pcie@ffe09000 {
265 pci1: pcie@ffe0a000 {
266 reg = <0x0 0xffe0a000 0x0 0x1000>;
267 ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
268 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
270 reset-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
273 ranges = <0x2000000 0x0 0xc0000000
274 0x2000000 0x0 0xc0000000
282 reg = <0x0000 0 0 0 0>;
285 nvmem-cells = <&macaddr_hwinfo_0 16>;
286 nvmem-cell-names = "mac-address";
292 compatible = "gpio-leds";
294 led_attention: led-0 {
295 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
296 color = <LED_COLOR_ID_AMBER>;
297 function = LED_FUNCTION_STATUS;
301 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
302 color = <LED_COLOR_ID_WHITE>;
303 function = LED_FUNCTION_STATUS;
308 compatible = "gpio-keys";
311 label = "Reset button";
312 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
313 linux,code = <KEY_RESTART>;
318 /include/ "fsl/p1020si-post.dtsi"
322 stdout-path = "/soc@ffe00000/serial@4500";
327 i-cache-sets = <0x80>;
328 i-cache-size = <0x8000>;
329 i-cache-block-size = <0x20>;
330 d-cache-sets = <0x80>;
331 d-cache-size = <0x8000>;
332 d-cache-block-size = <0x20>;
333 clock-frequency = <0x2756cd00>;
334 bus-frequency = <0x13ab6680>;
335 timebase-frequency = <0x2756cd0>;
340 reg = <0x00 0x00 0x00 0x10000000>;
344 bus-frequency = <0x13ab668>;
348 bus-frequency = <0x13ab6680>;
351 clock-frequency = <0x13ab6680>;
355 clock-frequency = <0x13ab6680>;
360 clock-frequency = <0x1fca055>;
364 clock-frequency = <0x1fca055>;