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>
14 /include/ "fsl/p1020si-pre.dtsi"
16 model = "Aerohive HiveAP-330";
17 compatible = "aerohive,hiveap-330";
20 led-boot = &led_power_green;
21 led-failsafe = &led_fault_red;
22 led-running = &led_power_green;
23 led-upgrade = &led_fault_red;
24 label-mac-device = &enet0;
28 device_type = "memory";
31 board_lbc: lbc: localbus@ffe05000 {
32 reg = <0 0xffe05000 0 0x1000>;
33 ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
38 compatible = "cfi-flash";
39 reg = <0x0 0x0 0x4000000>;
44 compatible = "fixed-partitions";
49 reg = <0x0 0x3f00000>;
52 * This unknown/invalid compatible prevents
53 * openwrt's mtdsplit_fit to go off a tangent if it
54 * finds a magic value inside the uncompressed kernel
55 * at a blocksized aligned place.
57 compatible = "areohive,hiveap-330-image";
66 compatible = "openwrt,uimage", "denx,uimage";
67 reg = <0x40000 0x3ec0000>;
72 reg = <0x3f00000 0x20000>;
76 compatible = "nvmem-cells";
80 macaddr_hwinfo_0: macaddr@0 {
86 reg = <0x3f20000 0x20000>;
92 reg = <0x3f40000 0x20000>;
93 label = "boot-info-backup";
98 reg = <0x3f60000 0x20000>;
103 reg = <0x3f80000 0x80000>;
111 board_soc: soc: soc@ffe00000 {
112 ranges = <0x0 0x0 0xffe00000 0x100000>;
116 compatible = "atmel,at97sc3204t";
121 compatible = "national,lp5521";
123 clock-mode = /bits/ 8 <2>;
125 led_fault_red: led@0 {
127 chan-name = "fault:red";
128 led-cur = /bits/ 8 <0x2f>;
129 max-cur = /bits/ 8 <0x5f>;
130 color = <LED_COLOR_ID_RED>;
131 function = LED_FUNCTION_FAULT;
133 led_power_green: led@1 {
135 chan-name = "power:green";
136 led-cur = /bits/ 8 <0x2f>;
137 max-cur = /bits/ 8 <0x5f>;
138 color = <LED_COLOR_ID_GREEN>;
139 function = LED_FUNCTION_POWER;
144 led-cur = /bits/ 8 <0x2f>;
145 max-cur = /bits/ 8 <0x5f>;
146 color = <LED_COLOR_ID_BLUE>;
150 * openwrt isn't ready to handle multi-intensity leds yet
151 * # echo 255 255 255 > /sys/class/leds/tricolor/multi_intensity
152 * # echo 255 > /sys/class/leds/tricolor/brightness
156 function = LED_FUNCTION_POWER;
157 color = <LED_COLOR_ID_RGB>;
158 #address-cells = <1>;
163 chan-name = "tricolor";
164 led-cur = /bits/ 8 <0x2f>;
165 max-cur = /bits/ 8 <0x5f>;
166 color = <LED_COLOR_ID_RED>;
170 chan-name = "tricolor";
171 led-cur = /bits/ 8 <0x2f>;
172 max-cur = /bits/ 8 <0x5f>;
173 color = <LED_COLOR_ID_GREEN>;
177 chan-name = "tricolor";
178 led-cur = /bits/ 8 <0x2f>;
179 max-cur = /bits/ 8 <0x5f>;
180 color = <LED_COLOR_ID_BLUE>;
188 * 1Kbit I2C/SMBus EEPROM with SHA-1 Engine
189 * Aerohive calls it "dallas".
191 compatible = "adi,ds28cn01";
198 phy0: ethernet-phy@0 {
199 interrupts = <3 1 0 0>;
203 phy1: ethernet-phy@1 {
204 interrupts = <2 1 0 0>;
217 enet0: ethernet@b0000 {
219 phy-handle = <&phy0>;
220 phy-connection-type = "rgmii-id";
221 nvmem-cells = <&macaddr_hwinfo_0>;
222 nvmem-cell-names = "mac-address";
225 enet1: ethernet@b1000 {
229 enet2: ethernet@b2000 {
231 phy-handle = <&phy1>;
232 phy-connection-type = "rgmii-id";
233 nvmem-cells = <&macaddr_hwinfo_0>;
234 nvmem-cell-names = "mac-address";
235 mac-address-increment = <1>;
238 gpio0: gpio-controller@fc00 {
251 pci0: pcie@ffe09000 {
252 reg = <0x0 0xffe09000 0x0 0x1000>;
253 ranges = <0x2000000 0x0 0xa0000000 0x0 0xa0000000 0x0 0x20000000
254 0x1000000 0x0 0x00000000 0x0 0xffc30000 0x0 0x10000>;
256 ranges = <0x2000000 0x0 0xa0000000
257 0x2000000 0x0 0xa0000000
266 pci1: pcie@ffe0a000 {
267 reg = <0x0 0xffe0a000 0x0 0x1000>;
268 ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
269 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
271 ranges = <0x2000000 0x0 0xc0000000
272 0x2000000 0x0 0xc0000000
282 compatible = "gpio-keys";
285 label = "Reset button";
286 gpios = <&gpio0 8 1>; /* active low */
287 linux,code = <0x198>; /* KEY_RESTART */
291 /include/ "fsl/p1020si-post.dtsi"