Skip to contentSkip to conversation

Add USB DRD 3.0 device node for Exynos7

PATCH Superseded Pankaj Dubey 3 participants 9 messages Jan 17, 2017 – Jan 18, 2017 1 message not in the archive

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20170117150119epcas1p30b5cfc4e4be8f0dc300fa587e6cac7f1@epcas1p3.samsung.com

#1 lore raw

v2 cover Add USB DRD 3.0 device node for Exynos7

This patch series adds USB 3.0 DRD device node for Exynos7 and required Vbus and Vbus-boost support for espresso dev boards. These patches are part of patch series [1] earlier submitted by Vivek

[1]: https://lkml.org/lkml/2014/11/21/247

While other patches in these series got merged, DTS related change were left. I have prepared and tested these patches on top of krzk/for-next.

Changes since v1:
- Updated S-o-B order and Authorship of patches.
- Added Javier's Reviewed-by.
- Replaced GPIO polarity values with appropriate macros.

Vivek Gautam (2):
arm64: dts: exynos: Add USB 3.0 controller node for Exynos7
arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost

 arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++
 arch/arm64/boot/dts/exynos/exynos7.dtsi         | 34 +++++++++++++++++++
 2 files changed, 79 insertions(+)
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 1/2 arm64: dts: exynos: Add USB 3.0 controller node for Exynos7

From: Vivek Gautam <[email protected]>

Add USB 3.0 DRD controller device node, with its clock and phy information to enable the same on Exynos7.

---
 arch/arm64/boot/dts/exynos/exynos7.dtsi | 34 +++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm64/boot/dts/exynos/exynos7.dtsi +34 -0
index 9080a11..a2d8d11 100644
@@ -603,6 +603,40 @@
 				#include "exynos7-trip-points.dtsi"
 			};
 		};
+
+		usbdrd_phy: phy@15500000 {
+			compatible = "samsung,exynos7-usbdrd-phy";
+			reg = <0x15500000 0x100>;
+			clocks = <&clock_fsys0 ACLK_USBDRD300>,
+			       <&clock_fsys0 OSCCLK_PHY_CLKOUT_USB30_PHY>,
+			       <&clock_fsys0 PHYCLK_USBDRD300_UDRD30_PIPE_PCLK_USER>,
+			       <&clock_fsys0 PHYCLK_USBDRD300_UDRD30_PHYCLK_USER>,
+			       <&clock_fsys0 SCLK_USBDRD300_REFCLK>;
+			clock-names = "phy", "ref", "phy_pipe",
+				"phy_utmi", "itp";
+			samsung,pmu-syscon = <&pmu_system_controller>;
+			#phy-cells = <1>;
+		};
+
+		usbdrd3: usb@15400000 {
+			compatible = "samsung,exynos7-dwusb3";
+			clocks = <&clock_fsys0 ACLK_USBDRD300>,
+			       <&clock_fsys0 SCLK_USBDRD300_SUSPENDCLK>,
+			       <&clock_fsys0 ACLK_AXIUS_USBDRD30X_FSYS0X>;
+			clock-names = "usbdrd30", "usbdrd30_susp_clk",
+				"usbdrd30_axius_clk";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			dwc3 {
+				compatible = "snps,dwc3";
+				reg = <0x15400000 0x10000>;
+				interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
+				phys = <&usbdrd_phy 0>, <&usbdrd_phy 1>;
+				phy-names = "usb2-phy", "usb3-phy";
+			};
+		};
 	};
 };
 
Signature · 1 line
2.7.4
#3 lore raw

PATCH v2 1/2 arm64: dts: exynos: Add USB 3.0 controller node for Exynos7

Quoted 8 lines · Pankaj Dubey

From: Vivek Gautam <[email protected]>

Add USB 3.0 DRD controller device node, with its clock and phy information to enable the same on Exynos7.

Javier's Reviewed-by should be at the end.

Quoted 29 lines
---
 arch/arm64/boot/dts/exynos/exynos7.dtsi | 34 +++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm64/boot/dts/exynos/exynos7.dtsi +17 -0
index 9080a11..a2d8d11 100644
@@ -603,6 +603,40 @@
 				#include "exynos7-trip-points.dtsi"
 			};
 		};
+
+		usbdrd_phy: phy at 15500000 {
+			compatible = "samsung,exynos7-usbdrd-phy";
+			reg = <0x15500000 0x100>;
+			clocks = <&clock_fsys0 ACLK_USBDRD300>,
+			       <&clock_fsys0 OSCCLK_PHY_CLKOUT_USB30_PHY>,
+			       <&clock_fsys0 PHYCLK_USBDRD300_UDRD30_PIPE_PCLK_USER>,
+			       <&clock_fsys0 PHYCLK_USBDRD300_UDRD30_PHYCLK_USER>,
+			       <&clock_fsys0 SCLK_USBDRD300_REFCLK>;
+			clock-names = "phy", "ref", "phy_pipe",
+				"phy_utmi", "itp";
+			samsung,pmu-syscon = <&pmu_system_controller>;
+			#phy-cells = <1>;
+		};
+
+		usbdrd3: usb at 15400000 {
+			compatible = "samsung,exynos7-dwusb3";

arch/arm64/boot/dts/exynos/exynos7.dtsi line 632

Quoted 10 lines
arch/arm64/boot/dts/exynos/exynos7.dtsi +10 -0
+			clocks = <&clock_fsys0 ACLK_USBDRD300>,
+			       <&clock_fsys0 SCLK_USBDRD300_SUSPENDCLK>,
+			       <&clock_fsys0 ACLK_AXIUS_USBDRD30X_FSYS0X>;
+			clock-names = "usbdrd30", "usbdrd30_susp_clk",
+				"usbdrd30_axius_clk";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			dwc3 {

dtc should complain here - you need:

	dwc3 at 15400000

In the same time I think the address node does not have to be put after parent's usb.

Best regards,
Krzysztof

Quoted 13 lines
arch/arm64/boot/dts/exynos/exynos7.dtsi +7 -0
+				compatible = "snps,dwc3";
+				reg = <0x15400000 0x10000>;
+				interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
+				phys = <&usbdrd_phy 0>, <&usbdrd_phy 1>;
+				phy-names = "usb2-phy", "usb3-phy";
+			};
+		};
 	};
 };
 
Signature · 1 line
2.7.4
#4 lore raw

PATCH v2 1/2 arm64: dts: exynos: Add USB 3.0 controller node for Exynos7

Quoted 12 lines · Krzysztof Kozlowski
Quoted 8 lines · Pankaj Dubey

From: Vivek Gautam <[email protected]>

Add USB 3.0 DRD controller device node, with its clock and phy information to enable the same on Exynos7.

Javier's Reviewed-by should be at the end.

OK, will update.

Quoted 41 lines
Quoted 29 lines
---
 arch/arm64/boot/dts/exynos/exynos7.dtsi | 34 +++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm64/boot/dts/exynos/exynos7.dtsi +17 -0
index 9080a11..a2d8d11 100644
@@ -603,6 +603,40 @@
 				#include "exynos7-trip-points.dtsi"
 			};
 		};
+
+		usbdrd_phy: phy at 15500000 {
+			compatible = "samsung,exynos7-usbdrd-phy";
+			reg = <0x15500000 0x100>;
+			clocks = <&clock_fsys0 ACLK_USBDRD300>,
+			       <&clock_fsys0 OSCCLK_PHY_CLKOUT_USB30_PHY>,
+			       <&clock_fsys0 PHYCLK_USBDRD300_UDRD30_PIPE_PCLK_USER>,
+			       <&clock_fsys0 PHYCLK_USBDRD300_UDRD30_PHYCLK_USER>,
+			       <&clock_fsys0 SCLK_USBDRD300_REFCLK>;
+			clock-names = "phy", "ref", "phy_pipe",
+				"phy_utmi", "itp";
+			samsung,pmu-syscon = <&pmu_system_controller>;
+			#phy-cells = <1>;
+		};
+
+		usbdrd3: usb at 15400000 {
+			compatible = "samsung,exynos7-dwusb3";

arch/arm64/boot/dts/exynos/exynos7.dtsi line 632

Quoted 10 lines
arch/arm64/boot/dts/exynos/exynos7.dtsi +10 -0
+			clocks = <&clock_fsys0 ACLK_USBDRD300>,
+			       <&clock_fsys0 SCLK_USBDRD300_SUSPENDCLK>,
+			       <&clock_fsys0 ACLK_AXIUS_USBDRD30X_FSYS0X>;
+			clock-names = "usbdrd30", "usbdrd30_susp_clk",
+				"usbdrd30_axius_clk";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			dwc3 {

dtc should complain here - you need:

Quoted 1 line
	dwc3 at 15400000

No, it didn't complain. Anyway, I will update as it's already taken care in other Exynos SoC DTSi files.

Quoted 3 lines

In the same time I think the address node does not have to be put after parent's usb.

OK, will update.

Thanks,
Pankaj Dubey

Quoted 19 lines

Best regards,
Krzysztof

Quoted 13 lines
arch/arm64/boot/dts/exynos/exynos7.dtsi +7 -0
+				compatible = "snps,dwc3";
+				reg = <0x15400000 0x10000>;
+				interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
+				phys = <&usbdrd_phy 0>, <&usbdrd_phy 1>;
+				phy-names = "usb2-phy", "usb3-phy";
+			};
+		};
 	};
 };
 
Signature · 1 line
2.7.4
#5 lore raw

PATCH v2 1/2 arm64: dts: exynos: Add USB 3.0 controller node for Exynos7

Hello Pankaj,

Quoted 1 line · pankaj.dubey

On Tuesday 17 January 2017 11:53 PM, Krzysztof Kozlowski wrote:

[snip]

Quoted 9 lines
Quoted 5 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+
+                    dwc3 {

dtc should complain here - you need:

      dwc3 at 15400000

No, it didn't complain. Anyway, I will update as it's already taken care in other Exynos SoC DTSi files.

It only complains if you run dtc with warnings enabled, i.e: make W=1 exynos7-espresso.dtb

Best regards,
Javier

#6 lore raw

PATCH v2 2/2 arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost

In reply to Pankaj Dubey

From: Vivek Gautam <[email protected]>

Adding fixed voltage regulators for Vbus and Vbus-boost required by USB 3.0 DRD controller on Exynos7-espresso board.

---
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +45 -0
index 9cf73cf..8d5abdd 100644
@@ -13,6 +13,7 @@
 #include "exynos7.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/samsung,s2mps11.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Samsung Exynos7 Espresso board based on EXYNOS7";
@@ -33,6 +34,29 @@
 		device_type = "memory";
 		reg = <0x0 0x40000000 0x0 0xC0000000>;
 	};
+
+	usb30_vbus_reg: regulator-usb30 {
+		compatible = "regulator-fixed";
+		regulator-name = "VBUS_5V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gph1 1 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb30_vbus_en>;
+		enable-active-high;
+	};
+
+	usb3drd_boost_5v: regulator-usb3drd-boost {
+		compatible = "regulator-fixed";
+		regulator-name = "VUSB_VBUS_5V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gpf4 1 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb3drd_boost_en>;
+		enable-active-high;
+	};
+
 };
 
 &fin_pll {
@@ -366,3 +390,24 @@
 	vqmmc-supply = <&ldo2_reg>;
 	disable-wp;
 };
+
+&usbdrd_phy {
+	vbus-supply = <&usb30_vbus_reg>;
+	vbus-boost-supply = <&usb3drd_boost_5v>;
+};
+
+&pinctrl_bus1 {
+	usb30_vbus_en: usb30-vbus-en {
+		samsung,pins = "gph1-1";
+		samsung,pin-function = <1>;
+		samsung,pin-pud = <0>;
+		samsung,pin-drv = <0>;
+	};
+
+	usb3drd_boost_en: usb3drd-boost-en {
+		samsung,pins = "gpf4-1";
+		samsung,pin-function = <1>;
+		samsung,pin-pud = <0>;
+		samsung,pin-drv = <0>;
+	};
+};
Signature · 1 line
2.7.4
#7 lore raw

PATCH v2 2/2 arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost

Quoted 8 lines · Pankaj Dubey

From: Vivek Gautam <[email protected]>

Adding fixed voltage regulators for Vbus and Vbus-boost required by USB 3.0 DRD controller on Exynos7-espresso board.

Same as patch 1.

Quoted 50 lines
---
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +24 -0
index 9cf73cf..8d5abdd 100644
@@ -13,6 +13,7 @@
 #include "exynos7.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/samsung,s2mps11.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Samsung Exynos7 Espresso board based on EXYNOS7";
@@ -33,6 +34,29 @@
 		device_type = "memory";
 		reg = <0x0 0x40000000 0x0 0xC0000000>;
 	};
+
+	usb30_vbus_reg: regulator-usb30 {
+		compatible = "regulator-fixed";
+		regulator-name = "VBUS_5V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gph1 1 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb30_vbus_en>;
+		enable-active-high;
+	};
+
+	usb3drd_boost_5v: regulator-usb3drd-boost {
+		compatible = "regulator-fixed";
+		regulator-name = "VUSB_VBUS_5V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gpf4 1 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb3drd_boost_en>;
+		enable-active-high;
+	};
+
 };
 
 &fin_pll {
@@ -366,3 +390,24 @@
 	vqmmc-supply = <&ldo2_reg>;
 	disable-wp;
 };

arch/arm64/boot/dts/exynos/exynos7-espresso.dts line 402

Quoted 10 lines
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +10 -0
+
+&usbdrd_phy {
+	vbus-supply = <&usb30_vbus_reg>;
+	vbus-boost-supply = <&usb3drd_boost_5v>;
+};
+
+&pinctrl_bus1 {
+	usb30_vbus_en: usb30-vbus-en {
+		samsung,pins = "gph1-1";
+		samsung,pin-function = <1>;

Javier mentioned it, please use EXYNOS_PIN_FUNC_OUTPUT

arch/arm64/boot/dts/exynos/exynos7-espresso.dts line 403

Quoted 1 line
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +1 -0
+		samsung,pin-pud = <0>;

EXYNOS_PIN_PULL_NONE

arch/arm64/boot/dts/exynos/exynos7-espresso.dts line 404

Quoted 1 line
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +1 -0
+		samsung,pin-drv = <0>;

I think these are the same as in Exynos5422, so EXYNOS5420_PIN_DRV_LV1

Best regards,
Krzysztof

Quoted 12 lines
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +9 -0
+	};
+
+	usb3drd_boost_en: usb3drd-boost-en {
+		samsung,pins = "gpf4-1";
+		samsung,pin-function = <1>;
+		samsung,pin-pud = <0>;
+		samsung,pin-drv = <0>;
+	};
+};
Signature · 1 line
2.7.4
#8 lore raw

PATCH v2 2/2 arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost

Quoted 12 lines · Krzysztof Kozlowski
Quoted 8 lines · Pankaj Dubey

From: Vivek Gautam <[email protected]>

Adding fixed voltage regulators for Vbus and Vbus-boost required by USB 3.0 DRD controller on Exynos7-espresso board.

Same as patch 1.

OK, will update.

Quoted 54 lines
Quoted 54 lines
---
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +28 -0
index 9cf73cf..8d5abdd 100644
@@ -13,6 +13,7 @@
 #include "exynos7.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/samsung,s2mps11.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Samsung Exynos7 Espresso board based on EXYNOS7";
@@ -33,6 +34,29 @@
 		device_type = "memory";
 		reg = <0x0 0x40000000 0x0 0xC0000000>;
 	};
+
+	usb30_vbus_reg: regulator-usb30 {
+		compatible = "regulator-fixed";
+		regulator-name = "VBUS_5V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gph1 1 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb30_vbus_en>;
+		enable-active-high;
+	};
+
+	usb3drd_boost_5v: regulator-usb3drd-boost {
+		compatible = "regulator-fixed";
+		regulator-name = "VUSB_VBUS_5V";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gpf4 1 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb3drd_boost_en>;
+		enable-active-high;
+	};
+
 };
 
 &fin_pll {
@@ -366,3 +390,24 @@
 	vqmmc-supply = <&ldo2_reg>;
 	disable-wp;
 };
+
+&usbdrd_phy {
+	vbus-supply = <&usb30_vbus_reg>;
+	vbus-boost-supply = <&usb3drd_boost_5v>;
Quoted 9 lines

arch/arm64/boot/dts/exynos/exynos7-espresso.dts line 402

Quoted 6 lines
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +6 -0
+};
+
+&pinctrl_bus1 {
+	usb30_vbus_en: usb30-vbus-en {
+		samsung,pins = "gph1-1";
+		samsung,pin-function = <1>;

Javier mentioned it, please use EXYNOS_PIN_FUNC_OUTPUT

Yes, but as it's not taken care in existing dts for other pin definitions, so a Javier mentioned, this can be taken care as a separate patch for all pin definitions? Or do you want me to first add patch converting all these with macros and then on top of add this usb related pin definitions.

Thanks,
Pankaj Dubey

Quoted 27 lines

arch/arm64/boot/dts/exynos/exynos7-espresso.dts line 403

Quoted 1 line
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +1 -0
+		samsung,pin-pud = <0>;

EXYNOS_PIN_PULL_NONE

arch/arm64/boot/dts/exynos/exynos7-espresso.dts line 404

Quoted 1 line
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +1 -0
+		samsung,pin-drv = <0>;

I think these are the same as in Exynos5422, so EXYNOS5420_PIN_DRV_LV1

Best regards,
Krzysztof

Quoted 12 lines
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +9 -0
+	};
+
+	usb3drd_boost_en: usb3drd-boost-en {
+		samsung,pins = "gpf4-1";
+		samsung,pin-function = <1>;
+		samsung,pin-pud = <0>;
+		samsung,pin-drv = <0>;
+	};
+};
Signature · 1 line
2.7.4
#9 lore raw

PATCH v2 2/2 arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost

Quoted 82 lines · pankaj.dubey
Quoted 12 lines · Krzysztof Kozlowski
Quoted 8 lines · Pankaj Dubey

From: Vivek Gautam <[email protected]>

Adding fixed voltage regulators for Vbus and Vbus-boost required by USB 3.0 DRD controller on Exynos7-espresso board.

Same as patch 1.

OK, will update.

Quoted 54 lines
Quoted 54 lines
---
 arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +28 -0
index 9cf73cf..8d5abdd 100644
@@ -13,6 +13,7 @@
 #include "exynos7.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/samsung,s2mps11.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
     model = "Samsung Exynos7 Espresso board based on EXYNOS7";
@@ -33,6 +34,29 @@
             device_type = "memory";
             reg = <0x0 0x40000000 0x0 0xC0000000>;
     };
+
+    usb30_vbus_reg: regulator-usb30 {
+            compatible = "regulator-fixed";
+            regulator-name = "VBUS_5V";
+            regulator-min-microvolt = <5000000>;
+            regulator-max-microvolt = <5000000>;
+            gpio = <&gph1 1 GPIO_ACTIVE_HIGH>;
+            pinctrl-names = "default";
+            pinctrl-0 = <&usb30_vbus_en>;
+            enable-active-high;
+    };
+
+    usb3drd_boost_5v: regulator-usb3drd-boost {
+            compatible = "regulator-fixed";
+            regulator-name = "VUSB_VBUS_5V";
+            regulator-min-microvolt = <5000000>;
+            regulator-max-microvolt = <5000000>;
+            gpio = <&gpf4 1 GPIO_ACTIVE_HIGH>;
+            pinctrl-names = "default";
+            pinctrl-0 = <&usb3drd_boost_en>;
+            enable-active-high;
+    };
+
 };
 
 &fin_pll {
@@ -366,3 +390,24 @@
     vqmmc-supply = <&ldo2_reg>;
     disable-wp;
 };
+
+&usbdrd_phy {
+    vbus-supply = <&usb30_vbus_reg>;
+    vbus-boost-supply = <&usb3drd_boost_5v>;
Quoted 9 lines

arch/arm64/boot/dts/exynos/exynos7-espresso.dts line 402

Quoted 6 lines
arch/arm64/boot/dts/exynos/exynos7-espresso.dts +6 -0
+};
+
+&pinctrl_bus1 {
+    usb30_vbus_en: usb30-vbus-en {
+            samsung,pins = "gph1-1";
+            samsung,pin-function = <1>;

Javier mentioned it, please use EXYNOS_PIN_FUNC_OUTPUT

Quoted 5 lines

Yes, but as it's not taken care in existing dts for other pin definitions, so a Javier mentioned, this can be taken care as a separate patch for all pin definitions? Or do you want me to first add patch converting all these with macros and then on top of add this usb related pin definitions.

For new code let's use the macros even if entire file is not converted (yet). The same like mixture of values and GPIO_ACTIVE_* macros. If you wish to convert the file to macros, feel free to go. But I see it as separate patch.

Best regards,
Krzysztof