summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/exynos4412-smdk4412.dts
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-09-04 13:04:09 +0200
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-09-16 13:31:50 +0200
commitc35bc3f9fa7340187d7b0fc5790623c76c2ceb54 (patch)
treed459f716418fbd1cedcd9031119238f12bc29c5a /arch/arm/boot/dts/exynos4412-smdk4412.dts
parent4b1a9e358693bbef0b5a1a5787e35490022957b9 (diff)
downloadblackbird-obmc-linux-c35bc3f9fa7340187d7b0fc5790623c76c2ceb54.tar.gz
blackbird-obmc-linux-c35bc3f9fa7340187d7b0fc5790623c76c2ceb54.zip
ARM: dts: exynos: Use macros for pinctrl configuration on exynos4x12
Usage of DTS macros instead of hard-coded numbers makes code easier to read. One does not have to remember which value means pull-up/down or specific driver strength. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/exynos4412-smdk4412.dts')
-rw-r--r--arch/arm/boot/dts/exynos4412-smdk4412.dts12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/exynos4412-smdk4412.dts b/arch/arm/boot/dts/exynos4412-smdk4412.dts
index 231ffbdbf9d0..a20b71918405 100644
--- a/arch/arm/boot/dts/exynos4412-smdk4412.dts
+++ b/arch/arm/boot/dts/exynos4412-smdk4412.dts
@@ -115,17 +115,17 @@
&pinctrl_1 {
keypad_rows: keypad-rows {
samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2";
- samsung,pin-function = <3>;
- samsung,pin-pud = <3>;
- samsung,pin-drv = <0>;
+ samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
+ samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
};
keypad_cols: keypad-cols {
samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
"gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
- samsung,pin-function = <3>;
- samsung,pin-pud = <0>;
- samsung,pin-drv = <0>;
+ samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
};
};
OpenPOWER on IntegriCloud