1/*
2 * DTS for Unifi Switch 8 port
3 *
4 * Copyright (C) 2017 Florian Fainelli <[email protected]>
5 *
6 * Licensed under the GNU/GPL. See COPYING for details.
7 */
8
9/dts-v1/;
10
11#include "bcm-hr2.dtsi"
12
13/ {
14	compatible = "ubnt,unifi-switch8", "brcm,bcm53342", "brcm,hr2";
15	model = "Ubiquiti UniFi Switch 8 (BCM53342)";
16
17	/* Hurricane 2 designs use the second UART */
18	chosen {
19		bootargs = "console=ttyS1,115200 earlyprintk";
20	};
21
22	memory@0 {
23		device_type = "memory";
24		reg = <0x00000000 0x08000000>,
25		      <0x68000000 0x08000000>;
26	};
27};
28
29&uart1 {
30	status = "okay";
31};
32
33&qspi {
34	status = "okay";
35
36	flash: flash@0 {
37		compatible = "m25p80";
38		reg = <0>;
39		#address-cells = <1>;
40		#size-cells = <1>;
41		spi-max-frequency = <12500000>;
42		spi-cpol;
43		spi-cpha;
44
45		partition@0 {
46			label = "u-boot";
47			reg = <0x0 0xc0000>;
48		};
49
50		partition@c0000 {
51			label = "u-boot-env";
52			reg = <0xc0000 0x10000>;
53		};
54
55		partition@d0000 {
56			label = "shmoo";
57			reg = <0xd0000 0x10000>;
58		};
59
60		partition@e0000 {
61			label = "kernel0";
62			reg = <0xe0000 0xf00000>;
63		};
64
65		partition@fe0000 {
66			label = "kernel1";
67			reg = <0xfe0000 0xf10000>;
68		};
69
70		partition@1ef0000 {
71			label = "cfg";
72			reg = <0x1ef0000 0x100000>;
73		};
74
75		partition@1ff0000 {
76			label = "EEPROM";
77			reg = <0x1ff0000 0x10000>;
78		};
79	};
80};
81
82&pcie0 {
83	/* Attaches to the internal switch */
84	status = "okay";
85};
86