diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2014-11-07 00:10:13 +0100 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-11-07 00:10:13 +0100 |
commit | 18073d6e47f24a18c9309a14c2b8b10275afd3a0 (patch) | |
tree | d0dde66304db4c938d71bace89e50ebf7d522715 /arch/arm/boot/dts/exynos3250-pinctrl.dtsi | |
parent | ARM: dts: Add board dts file for exynos3250-rinato (diff) | |
download | linux-18073d6e47f24a18c9309a14c2b8b10275afd3a0.tar.xz linux-18073d6e47f24a18c9309a14c2b8b10275afd3a0.zip |
ARM: dts: Add sleep mode pin configuration for exynos3250-rinato
This patch add sleep mode pin configuration using pinctrl subsystem
to reduce leakage power-consumption of gpio pin in sleep state.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/boot/dts/exynos3250-pinctrl.dtsi')
-rw-r--r-- | arch/arm/boot/dts/exynos3250-pinctrl.dtsi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos3250-pinctrl.dtsi b/arch/arm/boot/dts/exynos3250-pinctrl.dtsi index 47b92c150f4e..5ab81c39e2c9 100644 --- a/arch/arm/boot/dts/exynos3250-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos3250-pinctrl.dtsi @@ -12,6 +12,22 @@ * published by the Free Software Foundation. */ +#define PIN_PULL_NONE 0 +#define PIN_PULL_DOWN 1 +#define PIN_PULL_UP 3 + +#define PIN_PDN_OUT0 0 +#define PIN_PDN_OUT1 1 +#define PIN_PDN_INPUT 2 +#define PIN_PDN_PREV 3 + +#define PIN_SLP(_pin, _mode, _pull) \ + _pin { \ + samsung,pins = #_pin; \ + samsung,pin-con-pdn = <PIN_PDN_ ##_mode>; \ + samsung,pin-pud-pdn = <PIN_PULL_ ##_pull>; \ + } + &pinctrl_0 { gpa0: gpa0 { gpio-controller; |