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;
30 device_type = "memory";
33 board_lbc: lbc: localbus@ffe05000 {
34 reg = <0 0xffe05000 0 0x1000>;
35 ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
40 compatible = "cfi-flash";
41 reg = <0x0 0x0 0x4000000>;
46 compatible = "fixed-partitions";
51 reg = <0x0 0x3f00000>;
54 * This unknown/invalid compatible prevents
55 * openwrt's mtdsplit_fit to go off a tangent if it
56 * finds a magic value inside the uncompressed kernel
57 * at a blocksized aligned place.
59 compatible = "areohive,hiveap-330-image";
68 compatible = "openwrt,uimage", "denx,uimage";
69 reg = <0x40000 0x3ec0000>;
74 reg = <0x3f00000 0x20000>;
78 compatible = "nvmem-cells";
82 macaddr_hwinfo_0: macaddr@0 {
88 reg = <0x3f20000 0x20000>;
94 reg = <0x3f40000 0x20000>;
95 label = "boot-info-backup";
100 reg = <0x3f60000 0x20000>;
101 label = "u-boot-env";
105 reg = <0x3f80000 0x80000>;
113 board_soc: soc: soc@ffe00000 {
114 ranges = <0x0 0x0 0xffe00000 0x100000>;
118 compatible = "atmel,at97sc3204t";
123 compatible = "national,lp5521";
125 clock-mode = /bits/ 8 <2>;
127 led_fault_red: led@0 {
129 chan-name = "fault:red";
130 led-cur = /bits/ 8 <0x2f>;
131 max-cur = /bits/ 8 <0x5f>;
132 color = <LED_COLOR_ID_RED>;
133 function = LED_FUNCTION_FAULT;
135 led_power_green: led@1 {
137 chan-name = "power:green";
138 led-cur = /bits/ 8 <0x2f>;
139 max-cur = /bits/ 8 <0x5f>;
140 color = <LED_COLOR_ID_GREEN>;
141 function = LED_FUNCTION_POWER;
146 led-cur = /bits/ 8 <0x2f>;
147 max-cur = /bits/ 8 <0x5f>;
148 color = <LED_COLOR_ID_BLUE>;
152 * openwrt isn't ready to handle multi-intensity leds yet
153 * # echo 255 255 255 > /sys/class/leds/tricolor/multi_intensity
154 * # echo 255 > /sys/class/leds/tricolor/brightness
158 function = LED_FUNCTION_POWER;
159 color = <LED_COLOR_ID_RGB>;
160 #address-cells = <1>;
165 chan-name = "tricolor";
166 led-cur = /bits/ 8 <0x2f>;
167 max-cur = /bits/ 8 <0x5f>;
168 color = <LED_COLOR_ID_RED>;
172 chan-name = "tricolor";
173 led-cur = /bits/ 8 <0x2f>;
174 max-cur = /bits/ 8 <0x5f>;
175 color = <LED_COLOR_ID_GREEN>;
179 chan-name = "tricolor";
180 led-cur = /bits/ 8 <0x2f>;
181 max-cur = /bits/ 8 <0x5f>;
182 color = <LED_COLOR_ID_BLUE>;
190 * 1Kbit I2C/SMBus EEPROM with SHA-1 Engine
191 * Aerohive calls it "dallas".
193 compatible = "adi,ds28cn01";
200 phy0: ethernet-phy@0 {
201 interrupts = <3 1 0 0>;
205 phy1: ethernet-phy@1 {
206 interrupts = <2 1 0 0>;
219 enet0: ethernet@b0000 {
221 phy-handle = <&phy0>;
222 phy-connection-type = "rgmii-id";
223 nvmem-cells = <&macaddr_hwinfo_0>;
224 nvmem-cell-names = "mac-address";
227 enet1: ethernet@b1000 {
231 enet2: ethernet@b2000 {
233 phy-handle = <&phy1>;
234 phy-connection-type = "rgmii-id";
235 nvmem-cells = <&macaddr_hwinfo_0>;
236 nvmem-cell-names = "mac-address";
237 mac-address-increment = <1>;
240 gpio0: gpio-controller@fc00 {
253 pci0: pcie@ffe09000 {
254 reg = <0x0 0xffe09000 0x0 0x1000>;
255 ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x20000000
256 0x1000000 0x0 0x00000000 0x0 0xffc30000 0x0 0x10000>;
258 ranges = <0x2000000 0x0 0xa0000000
259 0x2000000 0x0 0xa0000000
268 pci1: pcie@ffe0a000 {
269 reg = <0x0 0xffe0a000 0x0 0x1000>;
270 ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
271 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
273 ranges = <0x2000000 0x0 0xc0000000
274 0x2000000 0x0 0xc0000000
284 compatible = "gpio-keys";
287 label = "Reset button";
288 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
289 linux,code = <KEY_RESTART>;
293 /include/ "fsl/p1020si-post.dtsi"