1 From c8b404fb05dcfadff477e49b7ea6b500e015f101 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Tue, 8 Dec 2020 08:03:04 +0100
4 Subject: [PATCH 2/4] arm64: dts: broadcom: bcm4908: add BCM4906 Netgear R8000P
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 Netgear R8000P is home router based on BCM4906 that is a cheaper variant
11 of BCM4908 (e.g. 2 cores instead of 4).
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
16 arch/arm64/boot/dts/broadcom/bcm4908/Makefile | 1 +
17 .../bcm4908/bcm4906-netgear-r8000p.dts | 52 +++++++++++++++++++
18 .../boot/dts/broadcom/bcm4908/bcm4906.dtsi | 18 +++++++
19 3 files changed, 71 insertions(+)
20 create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-netgear-r8000p.dts
21 create mode 100644 arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi
23 --- a/arch/arm64/boot/dts/broadcom/bcm4908/Makefile
24 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/Makefile
26 # SPDX-License-Identifier: GPL-2.0
27 +dtb-$(CONFIG_ARCH_BCM4908) += bcm4906-netgear-r8000p.dtb
28 dtb-$(CONFIG_ARCH_BCM4908) += bcm4908-asus-gt-ac5300.dtb
30 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906-netgear-r8000p.dts
32 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
34 +#include <dt-bindings/gpio/gpio.h>
35 +#include <dt-bindings/input/input.h>
36 +#include <dt-bindings/leds/common.h>
38 +#include "bcm4906.dtsi"
41 + compatible = "netgear,r8000p", "brcm,bcm4906", "brcm,bcm4908";
42 + model = "Netgear R8000P";
45 + device_type = "memory";
46 + reg = <0x00 0x00 0x00 0x20000000>;
50 + compatible = "gpio-leds";
53 + function = LED_FUNCTION_WPS;
54 + color = <LED_COLOR_ID_WHITE>;
55 + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
61 + nand-ecc-strength = <4>;
62 + nand-ecc-step-size = <512>;
65 + #address-cells = <1>;
69 + compatible = "fixed-partitions";
70 + #address-cells = <1>;
75 + reg = <0x0 0x100000>;
80 + reg = <0x100000 0x4400000>;
85 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4906.dtsi
87 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
89 +#include "bcm4908.dtsi"
93 + /delete-node/ cpu@2;
95 + /delete-node/ cpu@3;
99 + compatible = "arm,cortex-a53-pmu";
100 + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
101 + <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
102 + interrupt-affinity = <&cpu0>, <&cpu1>;