MIPS: BMIPS: Add Broadcom STB power management nodes
authorJaedon Shin <jaedon.shin@gmail.com>
Fri, 17 Nov 2017 02:19:42 +0000 (11:19 +0900)
committerJames Hogan <jhogan@kernel.org>
Tue, 6 Mar 2018 00:24:11 +0000 (00:24 +0000)
Adds power management nodes to BCM7xxx MIPS based SoCs.

Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17727/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/boot/dts/brcm/bcm7346.dtsi
arch/mips/boot/dts/brcm/bcm7360.dtsi
arch/mips/boot/dts/brcm/bcm7362.dtsi
arch/mips/boot/dts/brcm/bcm7425.dtsi
arch/mips/boot/dts/brcm/bcm7435.dtsi

index 02e426fe6013227c01a1319e2c2f4bb96dc7046e..8aa5b72d652d28081cab7e9cbc5ba5d613da2be3 100644 (file)
                        brcm,irq-can-wake;
                };
 
+               aon_ctrl: syscon@408000 {
+                       compatible = "brcm,brcmstb-aon-ctrl";
+                       reg = <0x408000 0x100>, <0x408200 0x200>;
+                       reg-names = "aon-ctrl", "aon-sram";
+               };
+
+               timers: timer@4067c0 {
+                       compatible = "brcm,brcmstb-timers";
+                       reg = <0x4067c0 0x40>;
+               };
+
                upg_gio: gpio@406700 {
                        compatible = "brcm,brcmstb-gpio";
                        reg = <0x406700 0x60>;
                        status = "disabled";
                };
        };
+
+       memory_controllers {
+               compatible = "simple-bus";
+               ranges = <0x0 0x103b0000 0xa000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               memory-controller@0 {
+                       compatible = "brcm,brcmstb-memc", "simple-bus";
+                       ranges = <0x0 0x0 0xa000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       memc-arb@1000 {
+                               compatible = "brcm,brcmstb-memc-arb";
+                               reg = <0x1000 0x248>;
+                       };
+
+                       memc-ddr@2000 {
+                               compatible = "brcm,brcmstb-memc-ddr";
+                               reg = <0x2000 0x300>;
+                       };
+
+                       ddr-phy@6000 {
+                               compatible = "brcm,brcmstb-ddr-phy";
+                               reg = <0x6000 0xc8>;
+                       };
+
+                       shimphy@8000 {
+                               compatible = "brcm,brcmstb-ddr-shimphy";
+                               reg = <0x8000 0x13c>;
+                       };
+               };
+       };
 };
index 4b87ebec407af0e9e1e567d72e22b26db7d5e6db..f68285c2dff0127c7f6a15a33f002cb1759f8a70 100644 (file)
                        brcm,irq-can-wake;
                };
 
+               aon_ctrl: syscon@408000 {
+                       compatible = "brcm,brcmstb-aon-ctrl";
+                       reg = <0x408000 0x100>, <0x408200 0x200>;
+                       reg-names = "aon-ctrl", "aon-sram";
+               };
+
+               timers: timer@406680 {
+                       compatible = "brcm,brcmstb-timers";
+                       reg = <0x406680 0x40>;
+               };
+
                upg_gio: gpio@406500 {
                        compatible = "brcm,brcmstb-gpio";
                        reg = <0x406500 0xa0>;
                        status = "disabled";
                };
        };
+
+       memory_controllers {
+               compatible = "simple-bus";
+               ranges = <0x0 0x103b0000 0xa000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               memory-controller@0 {
+                       compatible = "brcm,brcmstb-memc", "simple-bus";
+                       ranges = <0x0 0x0 0xa000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       memc-arb@1000 {
+                               compatible = "brcm,brcmstb-memc-arb";
+                               reg = <0x1000 0x248>;
+                       };
+
+                       memc-ddr@2000 {
+                               compatible = "brcm,brcmstb-memc-ddr";
+                               reg = <0x2000 0x300>;
+                       };
+
+                       ddr-phy@6000 {
+                               compatible = "brcm,brcmstb-ddr-phy";
+                               reg = <0x6000 0xc8>;
+                       };
+
+                       shimphy@8000 {
+                               compatible = "brcm,brcmstb-ddr-shimphy";
+                               reg = <0x8000 0x13c>;
+                       };
+               };
+       };
 };
index ca657df34b6d9e4a0c8fbaee0238de97c907d0c6..a4bfa5f2b0065e8dbf0399844c99568ef69623a3 100644 (file)
                        brcm,irq-can-wake;
                };
 
+               aon_ctrl: syscon@408000 {
+                       compatible = "brcm,brcmstb-aon-ctrl";
+                       reg = <0x408000 0x100>, <0x408200 0x200>;
+                       reg-names = "aon-ctrl", "aon-sram";
+               };
+
+               timers: timer@406680 {
+                       compatible = "brcm,brcmstb-timers";
+                       reg = <0x406680 0x40>;
+               };
+
                upg_gio: gpio@406500 {
                        compatible = "brcm,brcmstb-gpio";
                        reg = <0x406500 0xa0>;
                        status = "disabled";
                };
        };
+
+       memory_controllers {
+               compatible = "simple-bus";
+               ranges = <0x0 0x103b0000 0xa000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               memory-controller@0 {
+                       compatible = "brcm,brcmstb-memc", "simple-bus";
+                       ranges = <0x0 0x0 0xa000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       memc-arb@1000 {
+                               compatible = "brcm,brcmstb-memc-arb";
+                               reg = <0x1000 0x248>;
+                       };
+
+                       memc-ddr@2000 {
+                               compatible = "brcm,brcmstb-memc-ddr";
+                               reg = <0x2000 0x300>;
+                       };
+
+                       ddr-phy@6000 {
+                               compatible = "brcm,brcmstb-ddr-phy";
+                               reg = <0x6000 0xc8>;
+                       };
+
+                       shimphy@8000 {
+                               compatible = "brcm,brcmstb-ddr-shimphy";
+                               reg = <0x8000 0x13c>;
+                       };
+               };
+       };
 };
index e4fb9b6e6dce920b283b7418eae5d9cbb067ef87..6cb535235efaacd52087bec31c5265fd4b649057 100644 (file)
                        brcm,irq-can-wake;
                };
 
+               aon_ctrl: syscon@408000 {
+                       compatible = "brcm,brcmstb-aon-ctrl";
+                       reg = <0x408000 0x100>, <0x408200 0x200>;
+                       reg-names = "aon-ctrl", "aon-sram";
+               };
+
+               timers: timer@4067c0 {
+                       compatible = "brcm,brcmstb-timers";
+                       reg = <0x4067c0 0x40>;
+               };
+
                upg_gio: gpio@406700 {
                        compatible = "brcm,brcmstb-gpio";
                        reg = <0x406700 0x80>;
                        status = "disabled";
                };
        };
+
+       memory_controllers {
+               compatible = "simple-bus";
+               ranges = <0x0 0x103b0000 0x1a000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               memory-controller@0 {
+                       compatible = "brcm,brcmstb-memc", "simple-bus";
+                       ranges = <0x0 0x0 0xa000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       memc-arb@1000 {
+                               compatible = "brcm,brcmstb-memc-arb";
+                               reg = <0x1000 0x248>;
+                       };
+
+                       memc-ddr@2000 {
+                               compatible = "brcm,brcmstb-memc-ddr";
+                               reg = <0x2000 0x300>;
+                       };
+
+                       ddr-phy@6000 {
+                               compatible = "brcm,brcmstb-ddr-phy";
+                               reg = <0x6000 0xc8>;
+                       };
+
+                       shimphy@8000 {
+                               compatible = "brcm,brcmstb-ddr-shimphy";
+                               reg = <0x8000 0x13c>;
+                       };
+               };
+
+               memory-controller@1 {
+                       compatible = "brcm,brcmstb-memc", "simple-bus";
+                       ranges = <0x0 0x10000 0xa000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       memc-arb@1000 {
+                               compatible = "brcm,brcmstb-memc-arb";
+                               reg = <0x1000 0x248>;
+                       };
+
+                       memc-ddr@2000 {
+                               compatible = "brcm,brcmstb-memc-ddr";
+                               reg = <0x2000 0x300>;
+                       };
+
+                       ddr-phy@6000 {
+                               compatible = "brcm,brcmstb-ddr-phy";
+                               reg = <0x6000 0xc8>;
+                       };
+
+                       shimphy@8000 {
+                               compatible = "brcm,brcmstb-ddr-shimphy";
+                               reg = <0x8000 0x13c>;
+                       };
+               };
+       };
 };
index 1484e8990e52a11364e9622cff7664a164b31582..1e0545c7f5b77646f873157161a47085b9e76693 100644 (file)
                        brcm,irq-can-wake;
                };
 
+               aon_ctrl: syscon@408000 {
+                       compatible = "brcm,brcmstb-aon-ctrl";
+                       reg = <0x408000 0x100>, <0x408200 0x200>;
+                       reg-names = "aon-ctrl", "aon-sram";
+               };
+
+               timers: timer@4067c0 {
+                       compatible = "brcm,brcmstb-timers";
+                       reg = <0x4067c0 0x40>;
+               };
+
                upg_gio: gpio@406700 {
                        compatible = "brcm,brcmstb-gpio";
                        reg = <0x406700 0x80>;
                        status = "disabled";
                };
        };
+
+       memory_controllers {
+               compatible = "simple-bus";
+               ranges = <0x0 0x103b0000 0x1a000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               memory-controller@0 {
+                       compatible = "brcm,brcmstb-memc", "simple-bus";
+                       ranges = <0x0 0x0 0xa000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       memc-arb@1000 {
+                               compatible = "brcm,brcmstb-memc-arb";
+                               reg = <0x1000 0x248>;
+                       };
+
+                       memc-ddr@2000 {
+                               compatible = "brcm,brcmstb-memc-ddr";
+                               reg = <0x2000 0x300>;
+                       };
+
+                       ddr-phy@6000 {
+                               compatible = "brcm,brcmstb-ddr-phy";
+                               reg = <0x6000 0xc8>;
+                       };
+
+                       shimphy@8000 {
+                               compatible = "brcm,brcmstb-ddr-shimphy";
+                               reg = <0x8000 0x13c>;
+                       };
+               };
+
+               memory-controller@1 {
+                       compatible = "brcm,brcmstb-memc", "simple-bus";
+                       ranges = <0x0 0x10000 0xa000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       memc-arb@1000 {
+                               compatible = "brcm,brcmstb-memc-arb";
+                               reg = <0x1000 0x248>;
+                       };
+
+                       memc-ddr@2000 {
+                               compatible = "brcm,brcmstb-memc-ddr";
+                               reg = <0x2000 0x300>;
+                       };
+
+                       ddr-phy@6000 {
+                               compatible = "brcm,brcmstb-ddr-phy";
+                               reg = <0x6000 0xc8>;
+                       };
+
+                       shimphy@8000 {
+                               compatible = "brcm,brcmstb-ddr-shimphy";
+                               reg = <0x8000 0x13c>;
+                       };
+               };
+       };
 };