diff options
author | Tomasz Figa <t.figa@samsung.com> | 2014-09-23 20:19:58 +0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-10-20 19:12:41 +0400 |
commit | 7f41e1cab76e54b218bb7e3282379ed7512c5f7e (patch) | |
tree | 9fe63db5651143d53427293cb6ed4e854cfa00ee /arch/arm/boot/dts/exynos4x12-pinctrl.dtsi | |
parent | 76fe98b900af6c741da63dfecb0de5f7b52ddb02 (diff) | |
download | linux-7f41e1cab76e54b218bb7e3282379ed7512c5f7e.tar.xz |
ARM: dts: Add utility macro to define pin sleep states for exynos4x12-pinctrl
This patch adds a convenient macro which constructs an Exynos pinctrl
pinconf node containing properties needed to configure sleep state of
given pin with given parameters. It will be used by further patch which
adds a large number of sleep states for pins that need such
configuration on certain boards.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/boot/dts/exynos4x12-pinctrl.dtsi')
-rw-r--r-- | arch/arm/boot/dts/exynos4x12-pinctrl.dtsi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos4x12-pinctrl.dtsi b/arch/arm/boot/dts/exynos4x12-pinctrl.dtsi index 0865a2e33f97..c141931378e7 100644 --- a/arch/arm/boot/dts/exynos4x12-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos4x12-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@11400000 { gpa0: gpa0 { |