diff options
author | Jonathan Bakker <xc-racer2@live.ca> | 2020-05-02 01:50:02 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2020-05-04 16:46:27 +0200 |
commit | 6a52e305f2ac66eed32701e8717c1066d2a3c8ff (patch) | |
tree | 67a21f40f06bd5dd07798e78198a990889cb40e7 /arch/arm/boot/dts/s5pv210-pinctrl.dtsi | |
parent | ARM: dts: exynos: Enable WLAN support for the UniversalC210 board (diff) | |
download | linux-6a52e305f2ac66eed32701e8717c1066d2a3c8ff.tar.xz linux-6a52e305f2ac66eed32701e8717c1066d2a3c8ff.zip |
ARM: dts: s5pv210: Add helper define for sleep gpio config
To simplify writing of sleep gpio configs, add a common helper
similar to what is present for other Samsung CPUs.
Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/s5pv210-pinctrl.dtsi')
-rw-r--r-- | arch/arm/boot/dts/s5pv210-pinctrl.dtsi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/s5pv210-pinctrl.dtsi b/arch/arm/boot/dts/s5pv210-pinctrl.dtsi index 7f0c9d447871..609f323d0805 100644 --- a/arch/arm/boot/dts/s5pv210-pinctrl.dtsi +++ b/arch/arm/boot/dts/s5pv210-pinctrl.dtsi @@ -18,6 +18,13 @@ #include <dt-bindings/pinctrl/samsung.h> +#define PIN_SLP(_pin, _mode, _pull) \ + _pin { \ + samsung,pins = #_pin; \ + samsung,pin-con-pdn = <EXYNOS_PIN_PDN_ ##_mode>; \ + samsung,pin-pud-pdn = <S3C64XX_PIN_PULL_ ##_pull>; \ + } + &pinctrl0 { gpa0: gpa0 { gpio-controller; |