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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user