diff options
author | Clemens Hopfer <openwrt@wireloss.net> | 2022-05-28 21:34:48 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2022-06-24 23:59:14 +0200 |
commit | 8c0930b70b4f8d7447e34a59d52b1a5485aa4d49 (patch) | |
tree | 6a8625b642e6a1d79752a8f540d346f35528ac78 /target/linux/octeon/files/arch/mips | |
parent | 29ed58c8bee1de5b1779494e88620862edc44700 (diff) | |
download | upstream-8c0930b70b4f8d7447e34a59d52b1a5485aa4d49.tar.gz upstream-8c0930b70b4f8d7447e34a59d52b1a5485aa4d49.tar.bz2 upstream-8c0930b70b4f8d7447e34a59d52b1a5485aa4d49.zip |
octeon: add support for Ubiquiti UniFi Security Gateway
Ubiquiti UniFi Security Gateway (USG) is largely identical to
the EdgeRouter Lite (ERLite-3) apart from a different board ID
and two dome leds.
Device data (from WikiDev):
CPU: Cavium Octeon Plus CN5020 @500MHz 2-cores
Ethernet: 3x Atheros AR8035-A GbE PHY's
Flash: On-board 4MB Flash
Storage: Internal 3.8GB USB Flash (Kingston ID) drive
w/ 1.5GB free for use occupies single internal USB port.
Serial: 1x RJ45 port on front panel. 115200, 8N1
Buttons: 1x Reset
Flash instructions are identical to EdgeRouter Lite.
Signed-off-by: Clemens Hopfer <openwrt@wireloss.net>
Diffstat (limited to 'target/linux/octeon/files/arch/mips')
-rw-r--r-- | target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn5020_ubnt_usg.dts | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn5020_ubnt_usg.dts b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn5020_ubnt_usg.dts new file mode 100644 index 0000000000..24d8abe4ad --- /dev/null +++ b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn5020_ubnt_usg.dts @@ -0,0 +1,97 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Device tree source for Ubiquity UniFi Security Gateway. + * + * Written for EdgeRouter Lite by: Aaro Koskinen <aaro.koskinen@iki.fi> + * Adapted for USG by: Clemens Hopfer <openwrt@wireloss.net> + */ + +/include/ "octeon_3xxx.dtsi" +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> + +/ { + compatible = "ubnt,usg"; + model = "Ubiquiti UniFi Security Gateway"; + + soc@0 { + smi0: mdio@1180000001800 { + phy5: ethernet-phy@5 { + reg = <5>; + compatible = "ethernet-phy-ieee802.3-c22"; + }; + phy6: ethernet-phy@6 { + reg = <6>; + compatible = "ethernet-phy-ieee802.3-c22"; + }; + phy7: ethernet-phy@7 { + reg = <7>; + compatible = "ethernet-phy-ieee802.3-c22"; + }; + }; + + pip: pip@11800a0000000 { + interface@0 { + ethernet@0 { + phy-handle = <&phy7>; + rx-delay = <0>; + tx-delay = <0x10>; + }; + ethernet@1 { + phy-handle = <&phy6>; + rx-delay = <0>; + tx-delay = <0x10>; + }; + ethernet@2 { + phy-handle = <&phy5>; + rx-delay = <0>; + tx-delay = <0x10>; + }; + }; + }; + + uart0: serial@1180000000800 { + clock-frequency = <500000000>; + }; + + usbn: usbn@1180068000000 { + refclk-frequency = <12000000>; + refclk-type = "crystal"; + }; + + }; + + leds { + compatible = "gpio-leds"; + + led_dome_white: led-0 { + label = "white:dome"; + gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; + }; + + led_dome_blue: led-1 { + label = "blue:dome"; + gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys-polled"; + poll-interval = <20>; + + key-restart { + label = "reset"; + linux,code = <KEY_RESTART>; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + debounce-interval = <60>; + }; + }; + + aliases { + pip = &pip; + led-boot = &led_dome_white; + led-failsafe = &led_dome_blue; + led-running = &led_dome_blue; + led-upgrade = &led_dome_blue; + }; +}; |