mediatek: Add support for Xiaomi Redmi Router AX6S
[openwrt/staging/chunkeey.git] / target / linux / bcm4908 / patches-5.4 / 031-v5.12-0006-arm64-dts-broadcom-bcm4908-describe-PMB-block.patch
1 From edcf90801c8e58bd6306d85a4e714a6f09f452df Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 13 Jan 2021 12:15:47 +0100
4 Subject: [PATCH] arm64: dts: broadcom: bcm4908: describe PMB block
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 PMB (Power Management Bus) controls powering connected devices (e.g.
10 PCIe, USB, SATA). In BCM4908 it's a part of the PROCMON block.
11
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
14 ---
15 .../boot/dts/broadcom/bcm4908/bcm4908.dtsi | 17 ++++++++++++++++-
16 1 file changed, 16 insertions(+), 1 deletion(-)
17
18 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi
19 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi
20 @@ -108,7 +108,7 @@
21 compatible = "simple-bus";
22 #address-cells = <1>;
23 #size-cells = <1>;
24 - ranges = <0x00 0x00 0x80000000 0xd0000>;
25 + ranges = <0x00 0x00 0x80000000 0x281000>;
26
27 usb@c300 {
28 compatible = "generic-ehci";
29 @@ -213,6 +213,21 @@
30 };
31 };
32 };
33 +
34 + procmon: syscon@280000 {
35 + compatible = "simple-bus";
36 + reg = <0x280000 0x1000>;
37 + ranges;
38 +
39 + #address-cells = <1>;
40 + #size-cells = <1>;
41 +
42 + power-controller@2800c0 {
43 + compatible = "brcm,bcm4908-pmb";
44 + reg = <0x2800c0 0x40>;
45 + #power-domain-cells = <1>;
46 + };
47 + };
48 };
49
50 bus@ff800000 {