Linux Audio

Check our new training course

Loading...
v4.17
 1/*
 2 * DTS for Unifi Switch 8 port
 3 *
 4 * Copyright (C) 2017 Florian Fainelli <f.fainelli@gmail.com>
 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		reg = <0x00000000 0x08000000>,
24		      <0x68000000 0x08000000>;
25	};
26};
27
28&uart1 {
29	status = "okay";
30};
31
32&qspi {
33	status = "okay";
34	bspi-sel = <0>;
35
36	flash: m25p80@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};
v5.14.15
 1/*
 2 * DTS for Unifi Switch 8 port
 3 *
 4 * Copyright (C) 2017 Florian Fainelli <f.fainelli@gmail.com>
 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	bspi-sel = <0>;
36
37	flash: m25p80@0 {
38		compatible = "m25p80";
39		reg = <0>;
40		#address-cells = <1>;
41		#size-cells = <1>;
42		spi-max-frequency = <12500000>;
43		spi-cpol;
44		spi-cpha;
45
46		partition@0 {
47			label = "u-boot";
48			reg = <0x0 0xc0000>;
49		};
50
51		partition@c0000 {
52			label = "u-boot-env";
53			reg = <0xc0000 0x10000>;
54		};
55
56		partition@d0000 {
57			label = "shmoo";
58			reg = <0xd0000 0x10000>;
59		};
60
61		partition@e0000 {
62			label = "kernel0";
63			reg = <0xe0000 0xf00000>;
64		};
65
66		partition@fe0000 {
67			label = "kernel1";
68			reg = <0xfe0000 0xf10000>;
69		};
70
71		partition@1ef0000 {
72			label = "cfg";
73			reg = <0x1ef0000 0x100000>;
74		};
75
76		partition@1ff0000 {
77			label = "EEPROM";
78			reg = <0x1ff0000 0x10000>;
79		};
80	};
81};
82
83&pcie0 {
84	/* Attaches to the internal switch */
85	status = "okay";
86};