Commit 0e2774e1 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

ARM: dts: s5pv210: use defines for GPIO flags in Aquila

Replace hard-coded flags with defines for readability.  No functional
change.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200907161141.31034-17-krzk@kernel.org
parent fd595722
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
*/ */
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include "s5pv210.dtsi" #include "s5pv210.dtsi"
...@@ -50,7 +51,7 @@ vtf_reg: fixed-regulator@0 { ...@@ -50,7 +51,7 @@ vtf_reg: fixed-regulator@0 {
regulator-name = "V_TF_2.8V"; regulator-name = "V_TF_2.8V";
regulator-min-microvolt = <2800000>; regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>; regulator-max-microvolt = <2800000>;
gpio = <&mp05 4 0>; gpio = <&mp05 4 GPIO_ACTIVE_HIGH>;
enable-active-high; enable-active-high;
}; };
...@@ -73,8 +74,8 @@ bat_reg: fixed-regulator@2 { ...@@ -73,8 +74,8 @@ bat_reg: fixed-regulator@2 {
i2c_pmic: i2c-pmic { i2c_pmic: i2c-pmic {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = <&gpj4 0 0>, /* sda */ gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>, /* sda */
<&gpj4 3 0>; /* scl */ <&gpj4 3 GPIO_ACTIVE_HIGH>; /* scl */
i2c-gpio,delay-us = <2>; /* ~100 kHz */ i2c-gpio,delay-us = <2>; /* ~100 kHz */
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -84,13 +85,13 @@ pmic@66 { ...@@ -84,13 +85,13 @@ pmic@66 {
reg = <0x66>; reg = <0x66>;
max8998,pmic-buck1-default-dvs-idx = <0>; max8998,pmic-buck1-default-dvs-idx = <0>;
max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>, max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>,
<&gph0 4 0>; <&gph0 4 GPIO_ACTIVE_HIGH>;
max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>, max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
<1200000>, <1200000>; <1200000>, <1200000>;
max8998,pmic-buck2-default-dvs-idx = <0>; 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>; max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
regulators { regulators {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment