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