aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-09-07 18:11:32 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2020-09-09 21:42:24 +0200
commit0e2774e180817bd2925f508a48e1e2a28aea5265 (patch)
treefed36e9f9689c8f2e517d4da7e92719234bb5801
parentARM: dts: s5pv210: add RTC 32 KHz clock in Torbreck (diff)
downloadlinux-dev-0e2774e180817bd2925f508a48e1e2a28aea5265.tar.xz
linux-dev-0e2774e180817bd2925f508a48e1e2a28aea5265.zip
ARM: dts: s5pv210: use defines for GPIO flags in Aquila
Replace hard-coded flags with defines for readability. No functional change. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20200907161141.31034-17-krzk@kernel.org
-rw-r--r--arch/arm/boot/dts/s5pv210-aquila.dts13
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/s5pv210-aquila.dts b/arch/arm/boot/dts/s5pv210-aquila.dts
index eaeb0e921aaa..25d4ab4a52c5 100644
--- a/arch/arm/boot/dts/s5pv210-aquila.dts
+++ b/arch/arm/boot/dts/s5pv210-aquila.dts
@@ -11,6 +11,7 @@
*/
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "s5pv210.dtsi"
@@ -50,7 +51,7 @@
regulator-name = "V_TF_2.8V";
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
- gpio = <&mp05 4 0>;
+ gpio = <&mp05 4 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
@@ -73,8 +74,8 @@
i2c_pmic: i2c-pmic {
compatible = "i2c-gpio";
- gpios = <&gpj4 0 0>, /* sda */
- <&gpj4 3 0>; /* scl */
+ gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>, /* sda */
+ <&gpj4 3 GPIO_ACTIVE_HIGH>; /* scl */
i2c-gpio,delay-us = <2>; /* ~100 kHz */
#address-cells = <1>;
#size-cells = <0>;
@@ -84,13 +85,13 @@
reg = <0x66>;
max8998,pmic-buck1-default-dvs-idx = <0>;
- max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>,
- <&gph0 4 0>;
+ max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>,
+ <&gph0 4 GPIO_ACTIVE_HIGH>;
max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
<1200000>, <1200000>;
max8998,pmic-buck2-default-dvs-idx = <0>;
- max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>;
+ max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>;
max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
regulators {