2 * Aerohive HiveAP-330 Device Tree Source
4 * Copyright (C) 2017 Chris Blake <chrisrblake93@gmail.com>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/gpio/gpio.h>
16 /include/ "fsl/p1020si-pre.dtsi"
18 model = "Aerohive HiveAP-330";
19 compatible = "aerohive,hiveap-330";
22 led-boot = &led_power_green;
23 led-failsafe = &led_fault_red;
24 led-running = &led_power_green;
25 led-upgrade = &led_fault_red;
26 label-mac-device = &enet0;
31 device_type = "memory";
34 board_lbc: lbc: localbus@ffe05000 {
35 reg = <0 0xffe05000 0 0x1000>;
36 ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
41 compatible = "cfi-flash";
42 reg = <0x0 0x0 0x4000000>;
47 compatible = "fixed-partitions";
52 reg = <0x0 0x3f00000>;
55 * This unknown/invalid compatible prevents
56 * openwrt's mtdsplit_fit to go off a tangent if it
57 * finds a magic value inside the uncompressed kernel
58 * at a blocksized aligned place.
60 compatible = "areohive,hiveap-330-image";
69 compatible = "openwrt,uimage", "denx,uimage";
70 reg = <0x40000 0x3ec0000>;
75 reg = <0x3f00000 0x20000>;
80 compatible = "fixed-layout";
84 macaddr_hwinfo_0: macaddr@0 {
85 compatible = "mac-base";
87 #nvmem-cell-cells = <1>;
93 reg = <0x3f20000 0x20000>;
99 reg = <0x3f40000 0x20000>;
100 label = "boot-info-backup";
105 reg = <0x3f60000 0x20000>;
106 label = "u-boot-env";
110 reg = <0x3f80000 0x80000>;
118 board_soc: soc: soc@ffe00000 {
119 ranges = <0x0 0x0 0xffe00000 0x100000>;
122 temperature-sensor@1 {
123 compatible = "ti,tmp125";
125 spi-max-frequency = <5000000>;
131 compatible = "atmel,at97sc3204t";
136 compatible = "national,lp5521";
138 clock-mode = /bits/ 8 <2>;
140 led_fault_red: led@0 {
142 chan-name = "fault:red";
143 led-cur = /bits/ 8 <0x2f>;
144 max-cur = /bits/ 8 <0x5f>;
145 color = <LED_COLOR_ID_RED>;
146 function = LED_FUNCTION_FAULT;
148 led_power_green: led@1 {
150 chan-name = "power:green";
151 led-cur = /bits/ 8 <0x2f>;
152 max-cur = /bits/ 8 <0x5f>;
153 color = <LED_COLOR_ID_GREEN>;
154 function = LED_FUNCTION_POWER;
159 led-cur = /bits/ 8 <0x2f>;
160 max-cur = /bits/ 8 <0x5f>;
161 color = <LED_COLOR_ID_BLUE>;
165 * openwrt isn't ready to handle multi-intensity leds yet
166 * # echo 255 255 255 > /sys/class/leds/tricolor/multi_intensity
167 * # echo 255 > /sys/class/leds/tricolor/brightness
171 function = LED_FUNCTION_POWER;
172 color = <LED_COLOR_ID_RGB>;
173 #address-cells = <1>;
178 chan-name = "tricolor";
179 led-cur = /bits/ 8 <0x2f>;
180 max-cur = /bits/ 8 <0x5f>;
181 color = <LED_COLOR_ID_RED>;
185 chan-name = "tricolor";
186 led-cur = /bits/ 8 <0x2f>;
187 max-cur = /bits/ 8 <0x5f>;
188 color = <LED_COLOR_ID_GREEN>;
192 chan-name = "tricolor";
193 led-cur = /bits/ 8 <0x2f>;
194 max-cur = /bits/ 8 <0x5f>;
195 color = <LED_COLOR_ID_BLUE>;
203 * 1Kbit I2C/SMBus EEPROM with SHA-1 Engine
204 * Aerohive calls it "dallas".
206 compatible = "adi,ds28cn01";
213 phy0: ethernet-phy@0 {
214 /* interrupts = <3 1 0 0>; */
218 phy1: ethernet-phy@1 {
219 /* interrupts = <2 1 0 0>; */
232 enet0: ethernet@b0000 {
234 phy-handle = <&phy0>;
235 phy-connection-type = "rgmii-id";
236 nvmem-cells = <&macaddr_hwinfo_0 0>;
237 nvmem-cell-names = "mac-address";
240 enet1: ethernet@b1000 {
244 enet2: ethernet@b2000 {
246 phy-handle = <&phy1>;
247 phy-connection-type = "rgmii-id";
248 nvmem-cells = <&macaddr_hwinfo_0 1>;
249 nvmem-cell-names = "mac-address";
252 gpio0: gpio-controller@fc00 {
265 pci0: pcie@ffe09000 {
266 reg = <0x0 0xffe09000 0x0 0x1000>;
267 ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x20000000
268 0x1000000 0x0 0x00000000 0x0 0xffc30000 0x0 0x10000>;
270 ranges = <0x2000000 0x0 0xa0000000
271 0x2000000 0x0 0xa0000000
280 pci1: pcie@ffe0a000 {
281 reg = <0x0 0xffe0a000 0x0 0x1000>;
282 ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
283 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
285 ranges = <0x2000000 0x0 0xc0000000
286 0x2000000 0x0 0xc0000000
296 compatible = "gpio-keys";
299 label = "Reset button";
300 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
301 linux,code = <KEY_RESTART>;
305 /include/ "fsl/p1020si-post.dtsi"
308 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
309 * aliases to determine PCI domain numbers, drop aliases so as not to
310 * change the sysfs path of our wireless netdevs.
315 /delete-property/ pci0;
316 /delete-property/ pci1;