dm: power: domain: add BCM6328 power domain driver
Subsystems (2)
cover dm: power: domain: add BCM6328 power domain driver
BCM6328 SoCs have power domain controllers which supports enabling and disabling power for the different peripherals.
Álvaro Fernández Rojas (4):
dm: power: domain: add BCM6328 power domain driver
mips: bmips: add bcm6328-power-domain driver support for BCM6328
mips: bmips: add bcm6328-power-domain driver support for BCM63268
mips: bmips: enable bcm6328-power-domain driver for BCM6328 and
BCM63268 boards
arch/mips/dts/brcm,bcm63268.dtsi | 7 ++ arch/mips/dts/brcm,bcm6328.dtsi | 7 ++ configs/comtrend_ar5387un_ram_defconfig | 2 + configs/comtrend_vr3032u_ram_defconfig | 2 + drivers/power/domain/Kconfig | 7 ++ drivers/power/domain/Makefile | 1 + drivers/power/domain/bcm6328-power-domain.c | 83 ++++++++++++++++++++++ .../power-domain/bcm63268-power-domain.h | 25 +++++++ .../power-domain/bcm6328-power-domain.h | 21 ++++++ 9 files changed, 155 insertions(+) create mode 100644 drivers/power/domain/bcm6328-power-domain.c create mode 100644 include/dt-bindings/power-domain/bcm63268-power-domain.h create mode 100644 include/dt-bindings/power-domain/bcm6328-power-domain.h
Signature · 1 line
2.1.4
PATCH 1/4 dm: power: domain: add BCM6328 power domain driver
This allows controlling MISC IDDQ register on BCM6328 SoCs.
--- drivers/power/domain/Kconfig | 7 +++ drivers/power/domain/Makefile | 1 + drivers/power/domain/bcm6328-power-domain.c | 83 +++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 drivers/power/domain/bcm6328-power-domain.c
drivers/power/domain/Kconfig +7 -0
@@ -9,6 +9,13 @@ config POWER_DOMAIN domains). This may be used to save power. This API provides the means to control such power management hardware. +config BCM6328_POWER_DOMAIN + bool "Enable the BCM6328 power domain driver" + depends on POWER_DOMAIN && ARCH_BMIPS + help + Enable support for manipulating BCM6345 power domains via MMIO + mapped registers. + config SANDBOX_POWER_DOMAIN bool "Enable the sandbox power domain test driver" depends on POWER_DOMAIN && SANDBOX
drivers/power/domain/Makefile +1 -0
@@ -3,6 +3,7 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_POWER_DOMAIN) += power-domain-uclass.o +obj-$(CONFIG_BCM6328_POWER_DOMAIN) += bcm6328-power-domain.o obj-$(CONFIG_SANDBOX_POWER_DOMAIN) += sandbox-power-domain.o obj-$(CONFIG_SANDBOX_POWER_DOMAIN) += sandbox-power-domain-test.o obj-$(CONFIG_TEGRA186_POWER_DOMAIN) += tegra186-power-domain.o
drivers/power/domain/bcm6328-power-domain.c new file +83 -0
83 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 2/4 mips: bmips: add bcm6328-power-domain driver support for BCM6328
In reply to Álvaro Fernández RojasThis driver can control up to 32 power domains.
--- arch/mips/dts/brcm,bcm6328.dtsi | 7 +++++++ .../dt-bindings/power-domain/bcm6328-power-domain.h | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 include/dt-bindings/power-domain/bcm6328-power-domain.h
arch/mips/dts/brcm,bcm6328.dtsi +7 -0
@@ -6,6 +6,7 @@ #include <dt-bindings/clock/bcm6328-clock.h> #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/power-domain/bcm6328-power-domain.h> #include <dt-bindings/reset/bcm6328-reset.h> #include "skeleton.dtsi"
@@ -111,6 +112,12 @@ status = "disabled"; }; + periph_pwr: power-controller at 10001848 { + compatible = "brcm,bcm6328-power-domain"; + reg = <0x10001848 0x4>; + #power-domain-cells = <1>; + }; + memory-controller at 10003000 { compatible = "brcm,bcm6328-mc"; reg = <0x10003000 0x1000>;
include/dt-bindings/power-domain/bcm6328-power-domain.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef __DT_BINDINGS_POWER_DOMAIN_BCM6328_H +#define __DT_BINDINGS_POWER_DOMAIN_BCM6328_H + +#define BCM6328_PWR_ADSL2_MIPS 0 +#define BCM6328_PWR_ADSL2_PHY 1 +#define BCM6328_PWR_ADSL2_AFE 2 +#define BCM6328_PWR_SAR 3 +#define BCM6328_PWR_PCM 4 +#define BCM6328_PWR_USBD 5 +#define BCM6328_PWR_USBH 6 +#define BCM6328_PWR_PCIE 7 +#define BCM6328_PWR_ROBOSW 8 +#define BCM6328_PWR_EPHY 9 + +#endif /* __DT_BINDINGS_POWER_DOMAIN_BCM6328_H */
Signature · 1 line
2.1.4
PATCH 3/4 mips: bmips: add bcm6328-power-domain driver support for BCM63268
In reply to Álvaro Fernández RojasThis driver can control up to 32 power domains.
--- arch/mips/dts/brcm,bcm63268.dtsi | 7 ++++++ .../power-domain/bcm63268-power-domain.h | 25 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 include/dt-bindings/power-domain/bcm63268-power-domain.h
arch/mips/dts/brcm,bcm63268.dtsi +7 -0
@@ -6,6 +6,7 @@ #include <dt-bindings/clock/bcm63268-clock.h> #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/power-domain/bcm63268-power-domain.h> #include <dt-bindings/reset/bcm63268-reset.h> #include "skeleton.dtsi"
@@ -118,6 +119,12 @@ status = "disabled"; }; + periph_pwr: power-controller at 1000184c { + compatible = "brcm,bcm6328-power-domain"; + reg = <0x1000184c 0x4>; + #power-domain-cells = <1>; + }; + leds: led-controller at 10001900 { compatible = "brcm,bcm6328-leds"; reg = <0x10001900 0x24>;
include/dt-bindings/power-domain/bcm63268-power-domain.h new file +25 -0
@@ -0,0 +1,25 @@ +/* +* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef __DT_BINDINGS_POWER_DOMAIN_BCM63268_H +#define __DT_BINDINGS_POWER_DOMAIN_BCM63268_H + +#define BCM63268_PWR_SAR 0 +#define BCM63268_PWR_IPSEC 1 +#define BCM63268_PWR_MIPS 2 +#define BCM63268_PWR_DECT 3 +#define BCM63268_PWR_USBH 4 +#define BCM63268_PWR_USBD 5 +#define BCM63268_PWR_ROBOSW 6 +#define BCM63268_PWR_PCM 7 +#define BCM63268_PWR_PERIPH 8 +#define BCM63268_PWR_VDSL_PHY 9 +#define BCM63268_PWR_VDSL_MIPS 10 +#define BCM63268_PWR_FAP 11 +#define BCM63268_PWR_PCIE 12 +#define BCM63268_PWR_WLAN_PADS 13 + +#endif /* __DT_BINDINGS_POWER_DOMAIN_BCM63268_H */
Signature · 1 line
2.1.4
PATCH 4/4 mips: bmips: enable bcm6328-power-domain driver for BCM6328 and BCM63268 boards
In reply to Álvaro Fernández Rojas--- configs/comtrend_ar5387un_ram_defconfig | 2 ++ configs/comtrend_vr3032u_ram_defconfig | 2 ++ 2 files changed, 4 insertions(+)
configs/comtrend_ar5387un_ram_defconfig +2 -0
@@ -1,5 +1,6 @@ CONFIG_ARCH_BMIPS=y CONFIG_BAUDRATE=115200 +CONFIG_BCM6328_POWER_DOMAIN=y CONFIG_BCM6345_CLK=y CONFIG_BCM6345_SERIAL=y CONFIG_BMIPS_BOOT_RAM=y
@@ -42,6 +43,7 @@ CONFIG_MIPS=y # CONFIG_MIPS_BOOT_ENV_LEGACY is not set CONFIG_MIPS_BOOT_FDT=y CONFIG_OF_STDOUT_VIA_ALIAS=y +CONFIG_POWER_DOMAIN=y CONFIG_RESET=y CONFIG_RESET_BCM6345=y CONFIG_SOC_BMIPS_BCM6328=y
configs/comtrend_vr3032u_ram_defconfig +2 -0
@@ -1,5 +1,6 @@ CONFIG_ARCH_BMIPS=y CONFIG_BAUDRATE=115200 +CONFIG_BCM6328_POWER_DOMAIN=y CONFIG_BCM6345_CLK=y CONFIG_BCM6345_SERIAL=y CONFIG_BMIPS_BOOT_RAM=y
@@ -42,6 +43,7 @@ CONFIG_MIPS=y # CONFIG_MIPS_BOOT_ENV_LEGACY is not set CONFIG_MIPS_BOOT_FDT=y CONFIG_OF_STDOUT_VIA_ALIAS=y +CONFIG_POWER_DOMAIN=y CONFIG_RESET=y CONFIG_RESET_BCM6345=y CONFIG_SOC_BMIPS_BCM63268=y
Signature · 1 line
2.1.4
cover dm: power: domain: add BCM6328 power domain driver
In reply to Álvaro Fernández RojasAm 07.05.2017 um 20:28 schrieb Álvaro Fernández Rojas:
Quoted 10 lines
BCM6328 SoCs have power domain controllers which supports enabling and disabling power for the different peripherals.
Álvaro Fernández Rojas (4):
dm: power: domain: add BCM6328 power domain driver
mips: bmips: add bcm6328-power-domain driver support for BCM6328
mips: bmips: add bcm6328-power-domain driver support for BCM63268
mips: bmips: enable bcm6328-power-domain driver for BCM6328 andBCM63268 boards
Quoted 14 lines
arch/mips/dts/brcm,bcm63268.dtsi | 7 ++ arch/mips/dts/brcm,bcm6328.dtsi | 7 ++ configs/comtrend_ar5387un_ram_defconfig | 2 + configs/comtrend_vr3032u_ram_defconfig | 2 + drivers/power/domain/Kconfig | 7 ++ drivers/power/domain/Makefile | 1 + drivers/power/domain/bcm6328-power-domain.c | 83 ++++++++++++++++++++++ .../power-domain/bcm63268-power-domain.h | 25 +++++++ .../power-domain/bcm6328-power-domain.h | 21 ++++++ 9 files changed, 155 insertions(+) create mode 100644 drivers/power/domain/bcm6328-power-domain.c create mode 100644 include/dt-bindings/power-domain/bcm63268-power-domain.h create mode 100644 include/dt-bindings/power-domain/bcm6328-power-domain.h
series applied to u-boot-mips/next, thanks
Signature · 9 lines
- Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170510/4fb02ce5/attachment.sig>