]> git.sur5r.net Git - u-boot/commitdiff
mips: bmips: add bcm6328-power-domain driver support for BCM6328
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 7 May 2017 18:28:37 +0000 (20:28 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 10 May 2017 14:16:09 +0000 (16:16 +0200)
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
include/dt-bindings/power-domain/bcm6328-power-domain.h [new file with mode: 0644]

index 9b76a2322ce11fd4b1e21b7a17e81da324d85d26..4adc83fcb43713bebb9cabf624edd600862c9cd9 100644 (file)
@@ -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"
 
                        status = "disabled";
                };
 
+               periph_pwr: power-controller@10001848 {
+                       compatible = "brcm,bcm6328-power-domain";
+                       reg = <0x10001848 0x4>;
+                       #power-domain-cells = <1>;
+               };
+
                memory-controller@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 (file)
index 0000000..006806c
--- /dev/null
@@ -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 */