ARM: dts: Add power and lid GPIO keys pinctrl for exynos5250-snow
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Wed, 14 Jan 2015 15:30:35 +0000 (00:30 +0900)
committerKukjin Kim <kgene@kernel.org>
Wed, 14 Jan 2015 15:30:35 +0000 (00:30 +0900)
The Exynos5250 Snow Chromebook has GPIO keys for power and lid
so the SoC I/O pins have to be configured in external interrupt
mode. Currently, this is working without setting the pinctrl
lines but is better to set it explicitly instead of relying on
the previous state of the I/O pins.

The DTS snippets were taken from the downstream ChromeOS tree.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos5250-snow.dts

index effaf2af41bc007b4c284ddec8100ffe731a9ea7..b9aeec430527e3afd5aeb2c2b1af8f3a1b102682 100644 (file)
@@ -33,6 +33,8 @@
 
        gpio-keys {
                compatible = "gpio-keys";
+               pinctrl-names = "default";
+               pinctrl-0 = <&power_key_irq &lid_irq>;
 
                power {
                        label = "Power";
 };
 
 &pinctrl_0 {
+       power_key_irq: power-key-irq {
+               samsung,pins = "gpx1-3";
+               samsung,pin-function = <0xf>;
+               samsung,pin-pud = <0>;
+               samsung,pin-drv = <0>;
+       };
+
        ec_irq: ec-irq {
                samsung,pins = "gpx1-6";
                samsung,pin-function = <0>;
                samsung,pin-drv = <0>;
        };
 
+       lid_irq: lid-irq {
+               samsung,pins = "gpx3-5";
+               samsung,pin-function = <0xf>;
+               samsung,pin-pud = <0>;
+               samsung,pin-drv = <0>;
+       };
+
        hdmi_hpd_irq: hdmi-hpd-irq {
                samsung,pins = "gpx3-7";
                samsung,pin-function = <0>;