From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] mips: bmips: add bcm6328-power-domain driver support for BCM6328
Date: Sun, 7 May 2017 20:28:37 +0200 [thread overview]
Message-ID: <1494181719-16360-3-git-send-email-noltari@gmail.com> (raw)
In-Reply-To: <1494181719-16360-1-git-send-email-noltari@gmail.com>
This driver can control up to 32 power domains.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
---
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
diff --git a/arch/mips/dts/brcm,bcm6328.dtsi b/arch/mips/dts/brcm,bcm6328.dtsi
index 9b76a23..4adc83f 100644
--- a/arch/mips/dts/brcm,bcm6328.dtsi
+++ b/arch/mips/dts/brcm,bcm6328.dtsi
@@ -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>;
diff --git a/include/dt-bindings/power-domain/bcm6328-power-domain.h b/include/dt-bindings/power-domain/bcm6328-power-domain.h
new file mode 100644
index 0000000..006806c
--- /dev/null
+++ b/include/dt-bindings/power-domain/bcm6328-power-domain.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
+ *
+ * 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 */
--
2.1.4
next prev parent reply other threads:[~2017-05-07 18:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-07 18:28 [U-Boot] [PATCH 0/4] dm: power: domain: add BCM6328 power domain driver Álvaro Fernández Rojas
2017-05-07 18:28 ` [U-Boot] [PATCH 1/4] " Álvaro Fernández Rojas
2017-05-07 18:28 ` Álvaro Fernández Rojas [this message]
2017-05-07 18:28 ` [U-Boot] [PATCH 3/4] mips: bmips: add bcm6328-power-domain driver support for BCM63268 Álvaro Fernández Rojas
2017-05-07 18:28 ` [U-Boot] [PATCH 4/4] mips: bmips: enable bcm6328-power-domain driver for BCM6328 and BCM63268 boards Álvaro Fernández Rojas
2017-05-10 14:21 ` [U-Boot] [PATCH 0/4] dm: power: domain: add BCM6328 power domain driver Daniel Schwierzeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1494181719-16360-3-git-send-email-noltari@gmail.com \
--to=noltari@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox