Commit 0f2e43cf authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski
Browse files

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



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-18-krzk@kernel.org
parent 0e2774e1
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
 */

/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "s5pv210.dtsi"

@@ -51,7 +52,7 @@
			regulator-min-microvolt = <2800000>;
			regulator-max-microvolt = <2800000>;
			reg = <0>;
			gpio = <&mp05 4 0>;
			gpio = <&mp05 4 GPIO_ACTIVE_HIGH>;
			enable-active-high;
		};

@@ -77,15 +78,15 @@
			regulator-min-microvolt = <2800000>;
			regulator-max-microvolt = <2800000>;
			reg = <3>;
			gpio = <&gpj1 3 0>;
			gpio = <&gpj1 3 GPIO_ACTIVE_HIGH>;
			enable-active-high;
		};
	};

	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>;
@@ -95,13 +96,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 {
@@ -395,8 +396,8 @@
		clock-frequency = <16000000>;
		clocks = <&camera 0>;
		clock-names = "mclk";
		nreset-gpios = <&gpb 2 0>;
		nstby-gpios = <&gpb 0 0>;
		nreset-gpios = <&gpb 2 GPIO_ACTIVE_HIGH>;
		nstby-gpios = <&gpb 0 GPIO_ACTIVE_HIGH>;

		port {
			noon010pc30_ep: endpoint {