0001 /*
0002 * DTS for Unifi Switch 8 port
0003 *
0004 * Copyright (C) 2017 Florian Fainelli <f.fainelli@gmail.com>
0005 *
0006 * Licensed under the GNU/GPL. See COPYING for details.
0007 */
0008
0009 /dts-v1/;
0010
0011 #include "bcm-hr2.dtsi"
0012
0013 / {
0014 compatible = "ubnt,unifi-switch8", "brcm,bcm53342", "brcm,hr2";
0015 model = "Ubiquiti UniFi Switch 8 (BCM53342)";
0016
0017 /* Hurricane 2 designs use the second UART */
0018 chosen {
0019 bootargs = "console=ttyS1,115200 earlyprintk";
0020 };
0021
0022 memory@0 {
0023 device_type = "memory";
0024 reg = <0x00000000 0x08000000>,
0025 <0x68000000 0x08000000>;
0026 };
0027 };
0028
0029 &uart1 {
0030 status = "okay";
0031 };
0032
0033 &qspi {
0034 status = "okay";
0035 bspi-sel = <0>;
0036
0037 flash: flash@0 {
0038 compatible = "m25p80";
0039 reg = <0>;
0040 #address-cells = <1>;
0041 #size-cells = <1>;
0042 spi-max-frequency = <12500000>;
0043 spi-cpol;
0044 spi-cpha;
0045
0046 partition@0 {
0047 label = "u-boot";
0048 reg = <0x0 0xc0000>;
0049 };
0050
0051 partition@c0000 {
0052 label = "u-boot-env";
0053 reg = <0xc0000 0x10000>;
0054 };
0055
0056 partition@d0000 {
0057 label = "shmoo";
0058 reg = <0xd0000 0x10000>;
0059 };
0060
0061 partition@e0000 {
0062 label = "kernel0";
0063 reg = <0xe0000 0xf00000>;
0064 };
0065
0066 partition@fe0000 {
0067 label = "kernel1";
0068 reg = <0xfe0000 0xf10000>;
0069 };
0070
0071 partition@1ef0000 {
0072 label = "cfg";
0073 reg = <0x1ef0000 0x100000>;
0074 };
0075
0076 partition@1ff0000 {
0077 label = "EEPROM";
0078 reg = <0x1ff0000 0x10000>;
0079 };
0080 };
0081 };
0082
0083 &pcie0 {
0084 /* Attaches to the internal switch */
0085 status = "okay";
0086 };