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>;
79 compatible = "nvmem-cells";
83 macaddr_hwinfo_0: macaddr@0 {
89 reg = <0x3f20000 0x20000>;
95 reg = <0x3f40000 0x20000>;
96 label = "boot-info-backup";
101 reg = <0x3f60000 0x20000>;
102 label = "u-boot-env";
106 reg = <0x3f80000 0x80000>;
114 board_soc: soc: soc@ffe00000 {
115 ranges = <0x0 0x0 0xffe00000 0x100000>;
118 temperature-sensor@1 {
119 compatible = "ti,tmp125";
121 spi-max-frequency = <5000000>;
127 compatible = "atmel,at97sc3204t";
132 compatible = "national,lp5521";
134 clock-mode = /bits/ 8 <2>;
136 led_fault_red: led@0 {
138 chan-name = "fault:red";
139 led-cur = /bits/ 8 <0x2f>;
140 max-cur = /bits/ 8 <0x5f>;
141 color = <LED_COLOR_ID_RED>;
142 function = LED_FUNCTION_FAULT;
144 led_power_green: led@1 {
146 chan-name = "power:green";
147 led-cur = /bits/ 8 <0x2f>;
148 max-cur = /bits/ 8 <0x5f>;
149 color = <LED_COLOR_ID_GREEN>;
150 function = LED_FUNCTION_POWER;
155 led-cur = /bits/ 8 <0x2f>;
156 max-cur = /bits/ 8 <0x5f>;
157 color = <LED_COLOR_ID_BLUE>;
161 * openwrt isn't ready to handle multi-intensity leds yet
162 * # echo 255 255 255 > /sys/class/leds/tricolor/multi_intensity
163 * # echo 255 > /sys/class/leds/tricolor/brightness
167 function = LED_FUNCTION_POWER;
168 color = <LED_COLOR_ID_RGB>;
169 #address-cells = <1>;
174 chan-name = "tricolor";
175 led-cur = /bits/ 8 <0x2f>;
176 max-cur = /bits/ 8 <0x5f>;
177 color = <LED_COLOR_ID_RED>;
181 chan-name = "tricolor";
182 led-cur = /bits/ 8 <0x2f>;
183 max-cur = /bits/ 8 <0x5f>;
184 color = <LED_COLOR_ID_GREEN>;
188 chan-name = "tricolor";
189 led-cur = /bits/ 8 <0x2f>;
190 max-cur = /bits/ 8 <0x5f>;
191 color = <LED_COLOR_ID_BLUE>;
199 * 1Kbit I2C/SMBus EEPROM with SHA-1 Engine
200 * Aerohive calls it "dallas".
202 compatible = "adi,ds28cn01";
209 phy0: ethernet-phy@0 {
210 interrupts = <3 1 0 0>;
214 phy1: ethernet-phy@1 {
215 interrupts = <2 1 0 0>;
228 enet0: ethernet@b0000 {
230 phy-handle = <&phy0>;
231 phy-connection-type = "rgmii-id";
232 nvmem-cells = <&macaddr_hwinfo_0>;
233 nvmem-cell-names = "mac-address";
236 enet1: ethernet@b1000 {
240 enet2: ethernet@b2000 {
242 phy-handle = <&phy1>;
243 phy-connection-type = "rgmii-id";
244 nvmem-cells = <&macaddr_hwinfo_0>;
245 nvmem-cell-names = "mac-address";
246 mac-address-increment = <1>;
249 gpio0: gpio-controller@fc00 {
262 pci0: pcie@ffe09000 {
263 reg = <0x0 0xffe09000 0x0 0x1000>;
264 ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x20000000
265 0x1000000 0x0 0x00000000 0x0 0xffc30000 0x0 0x10000>;
267 ranges = <0x2000000 0x0 0xa0000000
268 0x2000000 0x0 0xa0000000
277 pci1: pcie@ffe0a000 {
278 reg = <0x0 0xffe0a000 0x0 0x1000>;
279 ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
280 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
282 ranges = <0x2000000 0x0 0xc0000000
283 0x2000000 0x0 0xc0000000
293 compatible = "gpio-keys";
296 label = "Reset button";
297 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
298 linux,code = <KEY_RESTART>;
302 /include/ "fsl/p1020si-post.dtsi"
305 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
306 * aliases to determine PCI domain numbers, drop aliases so as not to
307 * change the sysfs path of our wireless netdevs.
312 /delete-property/ pci0;
313 /delete-property/ pci1;