ARM: dts: mt8135: Add pmic wrapper nodes
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 7 Jul 2015 12:45:11 +0000 (14:45 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 17 Jul 2015 19:43:04 +0000 (21:43 +0200)
This adds the pmic wrapper node to the MediaTek MT8135 dtsi file.

This unit is used to access the PMIC on MediaTek boards.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt8135.dtsi

index b99e48803e53c9a043836c64e5acb98a1b400f90..36ff82aceacbcef5ee7a5013fa3a7d6f183bef12 100644 (file)
@@ -15,6 +15,7 @@
 #include <dt-bindings/clock/mt8135-clk.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/reset-controller/mt8135-resets.h>
 #include "skeleton64.dtsi"
 #include "mt8135-pinfunc.h"
 
                        clock-names = "system-clk", "rtc-clk";
                };
 
+               pwrap: pwrap@1000f000 {
+                       compatible = "mediatek,mt8135-pwrap";
+                       reg = <0 0x1000f000 0 0x1000>,
+                               <0 0x11017000 0 0x1000>;
+                       reg-names = "pwrap", "pwrap-bridge";
+                       interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>,
+                                       <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>;
+                       reset-names = "pwrap", "pwrap-bridge";
+                       clocks = <&clk26m>, <&clk26m>;
+                       clock-names = "spi", "wrap";
+               };
+
                sysirq: interrupt-controller@10200030 {
                        compatible = "mediatek,mt8135-sysirq",
                                     "mediatek,mt6577-sysirq";