Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c10d3290 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Kukjin Kim
Browse files

ARM: dts: Use GPIO constants for flags cells in exynos4412 boards



The board DTS are using numeric values instead of the defined GPIO
constanst to express polarity, use them to make the DTS more clear.

Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene@kernel.org>
parent 39c1c413
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
#include <dt-bindings/input/input.h>
#include <dt-bindings/clock/maxim,max77686.h>
#include "exynos4412.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
	chosen {
@@ -30,7 +31,7 @@
		power_key {
			interrupt-parent = <&gpx1>;
			interrupts = <3 0>;
			gpios = <&gpx1 3 1>;
			gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_POWER>;
			label = "power key";
			debounce-interval = <10>;
@@ -70,7 +71,7 @@
		pinctrl-0 = <&sd1_cd>;
		pinctrl-names = "default";
		compatible = "mmc-pwrseq-emmc";
		reset-gpios = <&gpk1 2 1>;
		reset-gpios = <&gpk1 2 GPIO_ACTIVE_LOW>;
	};

	camera {
@@ -181,7 +182,7 @@
};

&hdmi {
	hpd-gpio = <&gpx3 7 0>;
	hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
	pinctrl-names = "default";
	pinctrl-0 = <&hdmi_hpd>;
	vdd-supply = <&ldo8_reg>;
@@ -207,9 +208,9 @@
		compatible = "smsc,usb3503";
		reg = <0x08>;

		intn-gpios = <&gpx3 0 0>;
		connect-gpios = <&gpx3 4 0>;
		reset-gpios = <&gpx3 5 0>;
		intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
		connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
		reset-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
		initial-mode = <1>;
	};

@@ -482,7 +483,7 @@
	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
	pinctrl-names = "default";
	vmmc-supply = <&ldo4_reg &ldo21_reg>;
	cd-gpios = <&gpk2 2 0>;
	cd-gpios = <&gpk2 2 GPIO_ACTIVE_HIGH>;
	cd-inverted;
	status = "okay";
};
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@
		compatible = "gpio-leds";
		led1 {
			label = "led1:heart";
			gpios = <&gpc1 0 1>;
			gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
			default-state = "on";
			linux,default-trigger = "heartbeat";
		};
+4 −4
Original line number Diff line number Diff line
@@ -26,13 +26,13 @@
		compatible = "gpio-leds";
		led1 {
			label = "led1:heart";
			gpios = <&gpc1 0 1>;
			gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
			default-state = "on";
			linux,default-trigger = "heartbeat";
		};
		led2 {
			label = "led2:mmc0";
			gpios = <&gpc1 2 1>;
			gpios = <&gpc1 2 GPIO_ACTIVE_LOW>;
			default-state = "on";
			linux,default-trigger = "mmc0";
		};
@@ -44,7 +44,7 @@
		home_key {
			interrupt-parent = <&gpx2>;
			interrupts = <2 0>;
			gpios = <&gpx2 2 0>;
			gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
			linux,code = <KEY_HOME>;
			label = "home key";
			debounce-interval = <10>;
@@ -57,7 +57,7 @@
		regulator-name = "p3v3_en";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		gpio = <&gpa1 1 1>;
		gpio = <&gpa1 1 GPIO_ACTIVE_LOW>;
		enable-active-high;
		regulator-always-on;
	};
+8 −7
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@

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

/ {
@@ -45,7 +46,7 @@
			regulator-name = "VMEM_VDD_2.8V";
			regulator-min-microvolt = <2800000>;
			regulator-max-microvolt = <2800000>;
			gpio = <&gpx1 1 0>;
			gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
			enable-active-high;
		};
	};
@@ -107,13 +108,13 @@

		s5m8767,pmic-buck-default-dvs-idx = <3>;

		s5m8767,pmic-buck-dvs-gpios = <&gpx2 3 0>,
						 <&gpx2 4 0>,
						 <&gpx2 5 0>;
		s5m8767,pmic-buck-dvs-gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>,
						 <&gpx2 4 GPIO_ACTIVE_HIGH>,
						 <&gpx2 5 GPIO_ACTIVE_HIGH>;

		s5m8767,pmic-buck-ds-gpios = <&gpm3 5 0>,
						<&gpm3 6 0>,
						<&gpm3 7 0>;
		s5m8767,pmic-buck-ds-gpios = <&gpm3 5 GPIO_ACTIVE_HIGH>,
						<&gpm3 6 GPIO_ACTIVE_HIGH>,
						<&gpm3 7 GPIO_ACTIVE_HIGH>;

		s5m8767,pmic-buck2-dvs-voltage = <1250000>, <1200000>,
						 <1200000>, <1200000>,
+5 −4
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@

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

/ {
	model = "FriendlyARM TINY4412 board based on Exynos4412";
@@ -31,26 +32,26 @@

		led1 {
			label = "led1";
			gpios = <&gpm4 0 1>;
			gpios = <&gpm4 0 GPIO_ACTIVE_LOW>;
			default-state = "off";
			linux,default-trigger = "heartbeat";
		};

		led2 {
			label = "led2";
			gpios = <&gpm4 1 1>;
			gpios = <&gpm4 1 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		led3 {
			label = "led3";
			gpios = <&gpm4 2 1>;
			gpios = <&gpm4 2 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		led4 {
			label = "led4";
			gpios = <&gpm4 3 1>;
			gpios = <&gpm4 3 GPIO_ACTIVE_LOW>;
			default-state = "off";
			linux,default-trigger = "mmc0";
		};
Loading