ARM: dts: odroidxu3: Enable wake alarm of S2MPS11 RTC
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Sat, 30 May 2015 06:33:21 +0000 (15:33 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 16 May 2016 07:20:38 +0000 (09:20 +0200)
The IRQB of S2MPS11 PMIC is wired to XEINT4 (GPX0-4) through pull-up
resistor.

Add interrupt properties and pinctrl configuration to enable RTC wake
alarm of rtc-s5m driver. This also removes a warning:
sec_pmic 4-0066: No interrupt specified, no interrupts

Change-Id: I3aa4d802ca9ff19f7b9cda2bbb178476aca19a9a
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos5422-odroidxu3.dts

index 8d789eb..6b8f9cc 100644 (file)
@@ -12,6 +12,7 @@
 
 /dts-v1/;
 #include <dt-bindings/clock/samsung,s2mps11.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/sound/samsung-i2s.h>
 #include "exynos5800.dtsi"
 
                        s2mps11,buck3-ramp-enable = <1>;
                        s2mps11,buck4-ramp-enable = <1>;
 
+                       interrupt-parent = <&gpx0>;
+                       interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&s2mps11_irq>;
+
                        s2mps11_osc: clocks {
                                #clock-cells = <1>;
                                clock-output-names = "s2mps11_ap",
                samsung,pin-pud = <1>;
                samsung,pin-drv = <0>;
        };
+
+       s2mps11_irq: s2mps11-irq {
+               samsung,pins = "gpx0-4";
+               samsung,pin-function = <0xf>;
+               samsung,pin-pud = <0>;
+               samsung,pin-drv = <0>;
+       };
 };
 
 &pinctrl_1 {