* [PATCH v2 0/2] Add USB DRD 3.0 device node for Exynos7 [not found] <CGME20170117150119epcas1p30b5cfc4e4be8f0dc300fa587e6cac7f1@epcas1p3.samsung.com> @ 2017-01-17 15:04 ` Pankaj Dubey [not found] ` <CGME20170117150121epcas1p102bd1355f780a56e14a0a7a81bd6dfaf@epcas1p1.samsung.com> [not found] ` <CGME20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe@epcas1p1.samsung.com> 0 siblings, 2 replies; 9+ messages in thread From: Pankaj Dubey @ 2017-01-17 15:04 UTC (permalink / raw) To: linux-samsung-soc, linux-arm-kernel, devicetree Cc: krzk, kgene, robh+dt, sanath, javier, Pankaj Dubey 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(+) -- 2.7.4 ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <CGME20170117150121epcas1p102bd1355f780a56e14a0a7a81bd6dfaf@epcas1p1.samsung.com>]
* [PATCH v2 1/2] arm64: dts: exynos: Add USB 3.0 controller node for Exynos7 [not found] ` <CGME20170117150121epcas1p102bd1355f780a56e14a0a7a81bd6dfaf@epcas1p1.samsung.com> @ 2017-01-17 15:04 ` Pankaj Dubey 2017-01-17 18:23 ` Krzysztof Kozlowski 0 siblings, 1 reply; 9+ messages in thread From: Pankaj Dubey @ 2017-01-17 15:04 UTC (permalink / raw) To: linux-samsung-soc, linux-arm-kernel, devicetree Cc: krzk, kgene, robh+dt, sanath, javier, Vivek Gautam, Pankaj Dubey From: Vivek Gautam <gautamvivek1987@gmail.com> Add USB 3.0 DRD controller device node, with its clock and phy information to enable the same on Exynos7. Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Vivek Gautam <gautamvivek1987@gmail.com> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> --- arch/arm64/boot/dts/exynos/exynos7.dtsi | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi index 9080a11..a2d8d11 100644 --- a/arch/arm64/boot/dts/exynos/exynos7.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi @@ -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"; + }; + }; }; }; -- 2.7.4 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: exynos: Add USB 3.0 controller node for Exynos7 2017-01-17 15:04 ` [PATCH v2 1/2] arm64: dts: exynos: Add USB 3.0 controller " Pankaj Dubey @ 2017-01-17 18:23 ` Krzysztof Kozlowski 2017-01-18 3:16 ` pankaj.dubey 0 siblings, 1 reply; 9+ messages in thread From: Krzysztof Kozlowski @ 2017-01-17 18:23 UTC (permalink / raw) To: Pankaj Dubey Cc: devicetree, linux-samsung-soc, robh+dt, Vivek Gautam, javier, kgene, krzk, sanath, linux-arm-kernel On Tue, Jan 17, 2017 at 08:34:03PM +0530, Pankaj Dubey wrote: > From: Vivek Gautam <gautamvivek1987@gmail.com> > > Add USB 3.0 DRD controller device node, with its clock > and phy information to enable the same on Exynos7. > > Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> > Signed-off-by: Vivek Gautam <gautamvivek1987@gmail.com> > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Javier's Reviewed-by should be at the end. > --- > arch/arm64/boot/dts/exynos/exynos7.dtsi | 34 +++++++++++++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi > index 9080a11..a2d8d11 100644 > --- a/arch/arm64/boot/dts/exynos/exynos7.dtsi > +++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi > @@ -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 { dtc should complain here - you need: dwc3@15400000 In the same time I think the address node does not have to be put after parent's usb. Best regards, Krzysztof > + 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"; > + }; > + }; > }; > }; > > -- > 2.7.4 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: exynos: Add USB 3.0 controller node for Exynos7 2017-01-17 18:23 ` Krzysztof Kozlowski @ 2017-01-18 3:16 ` pankaj.dubey [not found] ` <9f45a921-ebfb-c252-20bb-3a7adf508343-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: pankaj.dubey @ 2017-01-18 3:16 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: devicetree, linux-samsung-soc, Vivek Gautam, javier, robh+dt, kgene, sanath, linux-arm-kernel On Tuesday 17 January 2017 11:53 PM, Krzysztof Kozlowski wrote: > On Tue, Jan 17, 2017 at 08:34:03PM +0530, Pankaj Dubey wrote: >> From: Vivek Gautam <gautamvivek1987@gmail.com> >> >> Add USB 3.0 DRD controller device node, with its clock >> and phy information to enable the same on Exynos7. >> >> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> >> Signed-off-by: Vivek Gautam <gautamvivek1987@gmail.com> >> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> > > Javier's Reviewed-by should be at the end. > OK, will update. >> --- >> arch/arm64/boot/dts/exynos/exynos7.dtsi | 34 +++++++++++++++++++++++++++++++++ >> 1 file changed, 34 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/exynos/exynos7.dtsi b/arch/arm64/boot/dts/exynos/exynos7.dtsi >> index 9080a11..a2d8d11 100644 >> --- a/arch/arm64/boot/dts/exynos/exynos7.dtsi >> +++ b/arch/arm64/boot/dts/exynos/exynos7.dtsi >> @@ -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 { > > dtc should complain here - you need: > dwc3@15400000 No, it didn't complain. Anyway, I will update as it's already taken care in other Exynos SoC DTSi files. > 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 > Best regards, > Krzysztof > >> + 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"; >> + }; >> + }; >> }; >> }; >> >> -- >> 2.7.4 >> > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <9f45a921-ebfb-c252-20bb-3a7adf508343-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v2 1/2] arm64: dts: exynos: Add USB 3.0 controller node for Exynos7 [not found] ` <9f45a921-ebfb-c252-20bb-3a7adf508343-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2017-01-18 4:27 ` Javier Martinez Canillas 0 siblings, 0 replies; 9+ messages in thread From: Javier Martinez Canillas @ 2017-01-18 4:27 UTC (permalink / raw) To: pankaj.dubey Cc: Krzysztof Kozlowski, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Vivek Gautam, Javier Martinez Canillas, Rob Herring, Kukjin Kim, sanath-Sze3O3UU22JBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Hello Pankaj, On Wed, Jan 18, 2017 at 12:16 AM, pankaj.dubey <pankaj.dubey-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> wrote: > On Tuesday 17 January 2017 11:53 PM, Krzysztof Kozlowski wrote: [snip] >>> + >>> + dwc3 { >> >> dtc should complain here - you need: >> dwc3@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <CGME20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe@epcas1p1.samsung.com>]
* [PATCH v2 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost [not found] ` <CGME20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe@epcas1p1.samsung.com> @ 2017-01-17 15:04 ` Pankaj Dubey 2017-01-17 18:28 ` Krzysztof Kozlowski 0 siblings, 1 reply; 9+ messages in thread From: Pankaj Dubey @ 2017-01-17 15:04 UTC (permalink / raw) To: linux-samsung-soc, linux-arm-kernel, devicetree Cc: krzk, kgene, robh+dt, sanath, javier, Vivek Gautam, Pankaj Dubey From: Vivek Gautam <gautamvivek1987@gmail.com> Adding fixed voltage regulators for Vbus and Vbus-boost required by USB 3.0 DRD controller on Exynos7-espresso board. Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Vivek Gautam <gautamvivek1987@gmail.com> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> --- arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts index 9cf73cf..8d5abdd 100644 --- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts +++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts @@ -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>; + }; +}; -- 2.7.4 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost 2017-01-17 15:04 ` [PATCH v2 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost Pankaj Dubey @ 2017-01-17 18:28 ` Krzysztof Kozlowski 2017-01-18 3:20 ` pankaj.dubey 0 siblings, 1 reply; 9+ messages in thread From: Krzysztof Kozlowski @ 2017-01-17 18:28 UTC (permalink / raw) To: Pankaj Dubey Cc: devicetree, linux-samsung-soc, robh+dt, Vivek Gautam, javier, kgene, krzk, sanath, linux-arm-kernel On Tue, Jan 17, 2017 at 08:34:04PM +0530, Pankaj Dubey wrote: > From: Vivek Gautam <gautamvivek1987@gmail.com> > > Adding fixed voltage regulators for Vbus and Vbus-boost required > by USB 3.0 DRD controller on Exynos7-espresso board. > > Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> > Signed-off-by: Vivek Gautam <gautamvivek1987@gmail.com> > Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Same as patch 1. > --- > arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts > index 9cf73cf..8d5abdd 100644 > --- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts > +++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts > @@ -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>; Javier mentioned it, please use EXYNOS_PIN_FUNC_OUTPUT > + samsung,pin-pud = <0>; EXYNOS_PIN_PULL_NONE > + samsung,pin-drv = <0>; I think these are the same as in Exynos5422, so EXYNOS5420_PIN_DRV_LV1 Best regards, Krzysztof > + }; > + > + usb3drd_boost_en: usb3drd-boost-en { > + samsung,pins = "gpf4-1"; > + samsung,pin-function = <1>; > + samsung,pin-pud = <0>; > + samsung,pin-drv = <0>; > + }; > +}; > -- > 2.7.4 > ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost 2017-01-17 18:28 ` Krzysztof Kozlowski @ 2017-01-18 3:20 ` pankaj.dubey [not found] ` <68177964-890d-7061-dac0-f37717b1a254-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 9+ messages in thread From: pankaj.dubey @ 2017-01-18 3:20 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: devicetree, linux-samsung-soc, Vivek Gautam, javier, robh+dt, kgene, sanath, linux-arm-kernel On Tuesday 17 January 2017 11:58 PM, Krzysztof Kozlowski wrote: > On Tue, Jan 17, 2017 at 08:34:04PM +0530, Pankaj Dubey wrote: >> From: Vivek Gautam <gautamvivek1987@gmail.com> >> >> Adding fixed voltage regulators for Vbus and Vbus-boost required >> by USB 3.0 DRD controller on Exynos7-espresso board. >> >> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> >> Signed-off-by: Vivek Gautam <gautamvivek1987@gmail.com> >> Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> > > Same as patch 1. > OK, will update. >> --- >> arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++ >> 1 file changed, 45 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts >> index 9cf73cf..8d5abdd 100644 >> --- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts >> +++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts >> @@ -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>; > > 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 >> + samsung,pin-pud = <0>; > > EXYNOS_PIN_PULL_NONE > >> + samsung,pin-drv = <0>; > > I think these are the same as in Exynos5422, so EXYNOS5420_PIN_DRV_LV1 > > Best regards, > Krzysztof > > >> + }; >> + >> + usb3drd_boost_en: usb3drd-boost-en { >> + samsung,pins = "gpf4-1"; >> + samsung,pin-function = <1>; >> + samsung,pin-pud = <0>; >> + samsung,pin-drv = <0>; >> + }; >> +}; >> -- >> 2.7.4 >> > > > ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <68177964-890d-7061-dac0-f37717b1a254-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v2 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost [not found] ` <68177964-890d-7061-dac0-f37717b1a254-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2017-01-18 5:17 ` Krzysztof Kozlowski 0 siblings, 0 replies; 9+ messages in thread From: Krzysztof Kozlowski @ 2017-01-18 5:17 UTC (permalink / raw) To: pankaj.dubey Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, kgene-DgEjT+Ai2ygdnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, sanath-Sze3O3UU22JBDgjK7y7TUQ, Javier Martinez Canillas, Vivek Gautam On Wed, Jan 18, 2017 at 5:20 AM, pankaj.dubey <pankaj.dubey-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> wrote: > > > On Tuesday 17 January 2017 11:58 PM, Krzysztof Kozlowski wrote: >> On Tue, Jan 17, 2017 at 08:34:04PM +0530, Pankaj Dubey wrote: >>> From: Vivek Gautam <gautamvivek1987-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> >>> Adding fixed voltage regulators for Vbus and Vbus-boost required >>> by USB 3.0 DRD controller on Exynos7-espresso board. >>> >>> Reviewed-by: Javier Martinez Canillas <javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> >>> Signed-off-by: Vivek Gautam <gautamvivek1987-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> Signed-off-by: Pankaj Dubey <pankaj.dubey-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> >> >> Same as patch 1. >> > > OK, will update. > >>> --- >>> arch/arm64/boot/dts/exynos/exynos7-espresso.dts | 45 +++++++++++++++++++++++++ >>> 1 file changed, 45 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts >>> index 9cf73cf..8d5abdd 100644 >>> --- a/arch/arm64/boot/dts/exynos/exynos7-espresso.dts >>> +++ b/arch/arm64/boot/dts/exynos/exynos7-espresso.dts >>> @@ -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>; >> >> 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. 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2017-01-18 5:17 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20170117150119epcas1p30b5cfc4e4be8f0dc300fa587e6cac7f1@epcas1p3.samsung.com>
2017-01-17 15:04 ` [PATCH v2 0/2] Add USB DRD 3.0 device node for Exynos7 Pankaj Dubey
[not found] ` <CGME20170117150121epcas1p102bd1355f780a56e14a0a7a81bd6dfaf@epcas1p1.samsung.com>
2017-01-17 15:04 ` [PATCH v2 1/2] arm64: dts: exynos: Add USB 3.0 controller " Pankaj Dubey
2017-01-17 18:23 ` Krzysztof Kozlowski
2017-01-18 3:16 ` pankaj.dubey
[not found] ` <9f45a921-ebfb-c252-20bb-3a7adf508343-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2017-01-18 4:27 ` Javier Martinez Canillas
[not found] ` <CGME20170117150123epcas1p12709f99a0993ae58ea1fe294df5a12fe@epcas1p1.samsung.com>
2017-01-17 15:04 ` [PATCH v2 2/2] arm64: dts: exynos: Add regulators for Vbus and Vbus-Boost Pankaj Dubey
2017-01-17 18:28 ` Krzysztof Kozlowski
2017-01-18 3:20 ` pankaj.dubey
[not found] ` <68177964-890d-7061-dac0-f37717b1a254-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2017-01-18 5:17 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).