kernel: update 4.4 to 4.4.86
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 047-0006-ARM-dts-BCM5301X-Add-support-for-BCM953012HR.patch
1 From 475dcdec8cd1bb1b73ddfd9f872822bf4ad9c242 Mon Sep 17 00:00:00 2001
2 From: Steve Lin <steven.lin1@broadcom.com>
3 Date: Thu, 23 Feb 2017 14:23:03 -0500
4 Subject: [PATCH] ARM: dts: BCM5301X: Add support for BCM953012HR
5
6 Initial version of DTS to support Broadcom BCM953012HR Northstar
7 HR platform, similar to, but not the same as existing 953012K.
8
9 Signed-off-by: Steve Lin <steven.lin1@broadcom.com>
10 Acked-by: Jon Mason <jon.mason@broadcom.com>
11 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
12 ---
13 arch/arm/boot/dts/Makefile | 1 +
14 arch/arm/boot/dts/bcm953012hr.dts | 99 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 100 insertions(+)
16 create mode 100644 arch/arm/boot/dts/bcm953012hr.dts
17
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -89,6 +89,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
21 bcm94708.dtb \
22 bcm94709.dtb \
23 bcm953012er.dtb \
24 + bcm953012hr.dtb \
25 bcm953012k.dtb
26 dtb-$(CONFIG_ARCH_BCM_53573) += \
27 bcm47189-tenda-ac9.dtb
28 --- /dev/null
29 +++ b/arch/arm/boot/dts/bcm953012hr.dts
30 @@ -0,0 +1,99 @@
31 +/*
32 + * SPDX-License-Identifier: BSD-3-Clause
33 + *
34 + * Copyright(c) 2017 Broadcom
35 + *
36 + * Redistribution and use in source and binary forms, with or without
37 + * modification, are permitted provided that the following conditions
38 + * are met:
39 + *
40 + * * Redistributions of source code must retain the above copyright
41 + * notice, this list of conditions and the following disclaimer.
42 + * * Redistributions in binary form must reproduce the above copyright
43 + * notice, this list of conditions and the following disclaimer in
44 + * the documentation and/or other materials provided with the
45 + * distribution.
46 + * * Neither the name of Broadcom nor the names of its contributors
47 + * may be used to endorse or promote products derived from this
48 + * software without specific prior written permission.
49 + *
50 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
51 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
52 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
53 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
54 + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
55 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
56 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
57 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
58 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
59 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
60 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61 + */
62 +
63 +/dts-v1/;
64 +
65 +#include "bcm4708.dtsi"
66 +#include "bcm5301x-nand-cs0-bch4.dtsi"
67 +
68 +/ {
69 + model = "NorthStar HR (BCM953012HR)";
70 + compatible = "brcm,bcm953012hr", "brcm,brcm53012", "brcm,bcm4708";
71 +
72 + aliases {
73 + serial0 = &uart0;
74 + };
75 +
76 + chosen {
77 + stdout-path = "serial0:115200n8";
78 + };
79 +
80 + memory@80000000 {
81 + reg = <0x80000000 0x10000000>;
82 + };
83 +};
84 +
85 +&nandcs {
86 + partition@0 {
87 + label = "nboot";
88 + reg = <0x00000000 0x00200000>;
89 + read-only;
90 + };
91 + partition@200000 {
92 + label = "nenv";
93 + reg = <0x00200000 0x00400000>;
94 + };
95 + partition@600000 {
96 + label = "nsystem";
97 + reg = <0x00600000 0x00a00000>;
98 + };
99 + partition@1000000 {
100 + label = "nrootfs";
101 + reg = <0x01000000 0x07000000>;
102 + };
103 +};
104 +
105 +&spi_nor {
106 + status = "okay";
107 + spi-max-frequency = <62500000>;
108 + m25p,default-addr-width = <3>;
109 +
110 + #address-cells = <1>;
111 + #size-cells = <1>;
112 +
113 + partition@0 {
114 + label = "boot";
115 + reg = <0x00000000 0x000d0000>;
116 + };
117 + partition@d000 {
118 + label = "env";
119 + reg = <0x000d0000 0x00030000>;
120 + };
121 + partition@100000 {
122 + label = "system";
123 + reg = <0x00100000 0x00600000>;
124 + };
125 + partition@700000 {
126 + label = "rootfs";
127 + reg = <0x00700000 0x00900000>;
128 + };
129 +};