bcm53xx: move BCM53573 USB 2.0 patch to use backports prefix
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 040-ARM-dts-BCM5301x-Add-BCM953012ER-board.patch
1 From f8c331bda6a90b239f600020eec1b0defe7249b5 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Wed, 22 Jun 2016 17:00:35 -0700
4 Subject: [PATCH] ARM: dts: BCM5301x: Add BCM953012ER board
5
6 Add support for the Broadcom BCM953012 Enterprise Router reference
7 board, enable the following peripherals:
8
9 - UART0 (UART1 is not populated)
10 - WPS and restart GPIO buttons
11 - Ethernet switch w/ only two facing ports
12 - NAND flash
13 - SPI-NOR flash
14
15 Acked-by: Jon Mason <jon.mason@broadcom.com>
16 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
17 ---
18 arch/arm/boot/dts/Makefile | 1 +
19 arch/arm/boot/dts/bcm953012er.dts | 104 ++++++++++++++++++++++++++++++++++++++
20 2 files changed, 105 insertions(+)
21 create mode 100644 arch/arm/boot/dts/bcm953012er.dts
22
23 --- a/arch/arm/boot/dts/Makefile
24 +++ b/arch/arm/boot/dts/Makefile
25 @@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
26 bcm47094-dlink-dir-885l.dtb \
27 bcm94708.dtb \
28 bcm94709.dtb \
29 + bcm953012er.dtb \
30 bcm953012k.dtb
31 dtb-$(CONFIG_ARCH_BCM_63XX) += \
32 bcm963138dvt.dtb
33 --- /dev/null
34 +++ b/arch/arm/boot/dts/bcm953012er.dts
35 @@ -0,0 +1,104 @@
36 +/*
37 + * BSD LICENSE
38 + *
39 + * Copyright(c) 2016 Broadcom. All rights reserved.
40 + *
41 + * Redistribution and use in source and binary forms, with or without
42 + * modification, are permitted provided that the following conditions
43 + * are met:
44 + *
45 + * * Redistributions of source code must retain the above copyright
46 + * notice, this list of conditions and the following disclaimer.
47 + * * Redistributions in binary form must reproduce the above copyright
48 + * notice, this list of conditions and the following disclaimer in
49 + * the documentation and/or other materials provided with the
50 + * distribution.
51 + * * Neither the name of Broadcom Corporation nor the names of its
52 + * contributors may be used to endorse or promote products derived
53 + * from this software without specific prior written permission.
54 + *
55 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
56 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
57 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
58 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
59 + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
60 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
61 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
62 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
63 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
64 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
65 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
66 + */
67 +
68 +/dts-v1/;
69 +
70 +#include "bcm4708.dtsi"
71 +#include "bcm5301x-nand-cs0-bch8.dtsi"
72 +
73 +/ {
74 + model = "NorthStar Enterprise Router (BCM953012ER)";
75 + compatible = "brcm,bcm953012er", "brcm,brcm53012", "brcm,bcm4708";
76 +
77 + aliases {
78 + serial0 = &uart0;
79 + };
80 +
81 + chosen {
82 + stdout-path = "serial0:115200n8";
83 + };
84 +
85 + memory {
86 + reg = <0x00000000 0x8000000>;
87 + };
88 +
89 + gpio-keys {
90 + compatible = "gpio-keys";
91 + #address-cells = <1>;
92 + #size-cells = <0>;
93 +
94 + wps {
95 + label = "WPS";
96 + linux,code = <KEY_WPS_BUTTON>;
97 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
98 + };
99 +
100 + restart {
101 + label = "Reset";
102 + linux,code = <KEY_RESTART>;
103 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
104 + };
105 + };
106 +};
107 +
108 +&uart0 {
109 + status = "okay";
110 +};
111 +
112 +&spi_nor {
113 + status = "okay";
114 +};
115 +
116 +&srab {
117 + status = "okay";
118 +
119 + ports {
120 + #address-cells = <1>;
121 + #size-cells = <0>;
122 +
123 + port@0 {
124 + reg = <0>;
125 + label = "port0";
126 + };
127 +
128 + port@1 {
129 + reg = <1>;
130 + label = "port1";
131 + };
132 +
133 + port@5 {
134 + reg = <5>;
135 + label = "cpu";
136 + ethernet = <&gmac0>;
137 + };
138 + };
139 +};