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>;
49 compatible = "cfi-flash";
50 reg = <0x0 0x0 0x4000000>;
55 compatible = "fixed-partitions";
65 reg = <0x40000 0x40000>;
70 reg = <0x80000 0x27c0000>;
75 reg = <0x2840000 0x800000>;
80 reg = <0x3040000 0xec0000>;
81 label = "stock-jffs2";
86 reg = <0x3f00000 0x20000>;
90 compatible = "nvmem-cells";
94 macaddr_hwinfo_0: macaddr@0 {
100 reg = <0x3f20000 0x20000>;
106 reg = <0x3f40000 0x20000>;
107 label = "boot-info-backup";
112 reg = <0x3f60000 0x20000>;
113 label = "u-boot-env";
117 reg = <0x3f80000 0x80000>;
123 reg = <0x0 0x3040000>;
130 board_soc: soc: soc@ffe00000 {
131 ranges = <0x0 0x0 0xffe00000 0x100000>;
156 compatible = "qca,qca8327";
157 #address-cells = <1>;
160 reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
163 #address-cells = <1>;
169 phy-handle = <&phy_port1>;
170 nvmem-cells = <&macaddr_hwinfo_0>;
171 nvmem-cell-names = "mac-address";
172 mac-address-increment = <2>;
178 phy-handle = <&phy_port2>;
179 nvmem-cells = <&macaddr_hwinfo_0>;
180 nvmem-cell-names = "mac-address";
181 mac-address-increment = <3>;
187 phy-handle = <&phy_port3>;
188 nvmem-cells = <&macaddr_hwinfo_0>;
189 nvmem-cell-names = "mac-address";
190 mac-address-increment = <4>;
196 phy-handle = <&phy_port4>;
197 nvmem-cells = <&macaddr_hwinfo_0>;
198 nvmem-cell-names = "mac-address";
199 mac-address-increment = <5>;
205 phy-handle = <&phy_port5>;
206 nvmem-cells = <&macaddr_hwinfo_0>;
207 nvmem-cell-names = "mac-address";
213 phy-mode = "rgmii-id";
232 enet0: ethernet@b0000 {
234 phy-connection-type = "rgmii-id";
235 nvmem-cells = <&macaddr_hwinfo_0>;
236 nvmem-cell-names = "mac-address";
244 enet1: ethernet@b1000 {
248 enet2: ethernet@b2000 {
252 gpio0: gpio-controller@fc00 {
265 pci0: pcie@ffe09000 {
269 pci1: pcie@ffe0a000 {
270 reg = <0x0 0xffe0a000 0x0 0x1000>;
271 ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
272 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
274 reset-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
277 ranges = <0x2000000 0x0 0xc0000000
278 0x2000000 0x0 0xc0000000
286 reg = <0x0000 0 0 0 0>;
289 nvmem-cells = <&macaddr_hwinfo_0>;
290 nvmem-cell-names = "mac-address";
291 mac-address-increment = <16>;
297 compatible = "gpio-leds";
299 led_attention: led-0 {
300 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
301 label = "amber:status";
302 color = <LED_COLOR_ID_AMBER>;
303 function = LED_FUNCTION_STATUS;
307 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
308 label = "white:status";
309 color = <LED_COLOR_ID_WHITE>;
310 function = LED_FUNCTION_STATUS;
315 compatible = "gpio-keys";
318 label = "Reset button";
319 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
320 linux,code = <KEY_RESTART>;
325 /include/ "fsl/p1020si-post.dtsi"
329 linux,stdout-path = "/soc@ffe00000/serial@4500";
334 i-cache-sets = <0x80>;
335 i-cache-size = <0x8000>;
336 i-cache-block-size = <0x20>;
337 d-cache-sets = <0x80>;
338 d-cache-size = <0x8000>;
339 d-cache-block-size = <0x20>;
340 clock-frequency = <0x2756cd00>;
341 bus-frequency = <0x13ab6680>;
342 timebase-frequency = <0x2756cd0>;
347 reg = <0x00 0x00 0x00 0x10000000>;
351 bus-frequency = <0x13ab668>;
355 bus-frequency = <0x13ab6680>;
358 clock-frequency = <0x13ab6680>;
362 clock-frequency = <0x13ab6680>;
367 clock-frequency = <0x1fca055>;
371 clock-frequency = <0x1fca055>;