]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: bmips: add bcm6328-power-domain driver support for BCM63268
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 7 May 2017 18:28:38 +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,bcm63268.dtsi
include/dt-bindings/power-domain/bcm63268-power-domain.h [new file with mode: 0644]

index 8ff13c10fe195585457ae5ef21fc81e63139f835..3d0f8e0ea14c2c9d3ab72330d8a6e09c5d4badbf 100644 (file)
@@ -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"
 
                        status = "disabled";
                };
 
+               periph_pwr: power-controller@1000184c {
+                       compatible = "brcm,bcm6328-power-domain";
+                       reg = <0x1000184c 0x4>;
+                       #power-domain-cells = <1>;
+               };
+
                leds: led-controller@10001900 {
                        compatible = "brcm,bcm6328-leds";
                        reg = <0x10001900 0x24>;
diff --git a/include/dt-bindings/power-domain/bcm63268-power-domain.h b/include/dt-bindings/power-domain/bcm63268-power-domain.h
new file mode 100644 (file)
index 0000000..d9eba44
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
+ *
+ * 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 */