Re: [U-Boot] [U-Boot, 7/9] ARM: dts: rockchip: Add usb host for rk3288-vyasa

2017-11-08 Thread Philipp Tomsich
> Add usb host support for rk3288-vyasa, board support hub power
> through phy_pwr_en and usb2 host power through usb2_pwr_en and
> naming conversion followed as per schematic.
> 
> Signed-off-by: Jagan Teki 
> Acked-by: Philipp Tomsich 
> ---
>  arch/arm/dts/rk3288-vyasa.dts  | 48 
> ++
>  include/dt-bindings/pinctrl/rockchip.h |  1 +
>  2 files changed, 49 insertions(+)
> 

Reviewed-by: Philipp Tomsich 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [U-Boot, 7/9] ARM: dts: rockchip: Add usb host for rk3288-vyasa

2017-11-08 Thread Jagan Teki
On Wed, Nov 8, 2017 at 4:24 PM, Philipp Tomsich
 wrote:
>
>
> On Sat, 4 Nov 2017, Jagan Teki wrote:
>
>> Add usb host support for rk3288-vyasa, board support hub power
>> through phy_pwr_en and usb2 host power through usb2_pwr_en and
>> naming conversion followed as per schematic.
>>
>> Signed-off-by: Jagan Teki 
>> ---
>> arch/arm/dts/rk3288-vyasa.dts  | 48
>> ++
>> include/dt-bindings/pinctrl/rockchip.h |  1 +
>> 2 files changed, 49 insertions(+)
>>
>> diff --git a/arch/arm/dts/rk3288-vyasa.dts b/arch/arm/dts/rk3288-vyasa.dts
>> index 47fdd91..4113687 100644
>> --- a/arch/arm/dts/rk3288-vyasa.dts
>> +++ b/arch/arm/dts/rk3288-vyasa.dts
>> @@ -105,6 +105,30 @@
>> vin-supply = <_vbat>;
>> };
>>
>> +   vsus_5v: vsus-5v {
>> +   compatible = "regulator-fixed";
>> +   regulator-name = "vsus_5v";
>> +   regulator-min-microvolt = <500>;
>> +   regulator-max-microvolt = <500>;
>> +   regulator-always-on;
>> +   regulator-boot-on;
>> +   vin-supply = <_io>;
>> +   };
>> +
>> +   vusb2_5v: vusb2-5v {
>> +   compatible = "regulator-fixed";
>> +   regulator-name = "vusb2_5v";
>> +   enable-active-high;
>> +   gpio = < RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */
>> +   pinctrl-names = "default";
>> +   pinctrl-0 = <_pwr_en>;
>> +   regulator-min-microvolt = <500>;
>> +   regulator-max-microvolt = <500>;
>> +   regulator-always-on;
>> +   regulator-boot-on;
>> +   vin-supply = <_5v>;
>> +   };
>> +
>> ext_gmac: external-gmac-clock {
>> compatible = "fixed-clock";
>> #clock-cells = <0>;
>> @@ -357,6 +381,20 @@
>> status = "okay";
>> };
>>
>> + {
>> +   status = "okay";
>> +};
>> +
>> +_host0_ehci {
>> +   status = "okay";
>> +};
>> +
>> +_host1 {
>> +   pinctrl-names = "default";
>> +   pinctrl-0 = <_pwr_en>;
>> +   status = "okay";
>> +};
>> +
>>  {
>> status = "okay";
>> };
>> @@ -401,4 +439,14 @@
>> rockchip,pins = > _pull_up>;
>> };
>> };
>> +
>> +   usb_host {
>> +   phy_pwr_en: phy-pwr-en {
>> +   rockchip,pins = > _output_high>;
>> +   };
>> +
>> +   usb2_pwr_en: usb2-pwr-en {
>> +   rockchip,pins = > _pull_none>;
>> +   };
>> +   };
>> };
>> diff --git a/include/dt-bindings/pinctrl/rockchip.h
>> b/include/dt-bindings/pinctrl/rockchip.h
>> index 0798287..fb59d23 100644
>> --- a/include/dt-bindings/pinctrl/rockchip.h
>> +++ b/include/dt-bindings/pinctrl/rockchip.h
>> @@ -16,6 +16,7 @@
>> #define RK_GPIO33
>> #define RK_GPIO44
>> #define RK_GPIO66
>> +#define RK_GPIO8   8
>
>
> This file is shared with Linux (and the way I understand it, the Linux side
> is leading): has the same already been committed on the Linux side?

Yeah, it's committed in linux-next.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [U-Boot, 7/9] ARM: dts: rockchip: Add usb host for rk3288-vyasa

2017-11-08 Thread Philipp Tomsich



On Sat, 4 Nov 2017, Jagan Teki wrote:


Add usb host support for rk3288-vyasa, board support hub power
through phy_pwr_en and usb2 host power through usb2_pwr_en and
naming conversion followed as per schematic.

Signed-off-by: Jagan Teki 
---
arch/arm/dts/rk3288-vyasa.dts  | 48 ++
include/dt-bindings/pinctrl/rockchip.h |  1 +
2 files changed, 49 insertions(+)

diff --git a/arch/arm/dts/rk3288-vyasa.dts b/arch/arm/dts/rk3288-vyasa.dts
index 47fdd91..4113687 100644
--- a/arch/arm/dts/rk3288-vyasa.dts
+++ b/arch/arm/dts/rk3288-vyasa.dts
@@ -105,6 +105,30 @@
vin-supply = <_vbat>;
};

+   vsus_5v: vsus-5v {
+   compatible = "regulator-fixed";
+   regulator-name = "vsus_5v";
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+   regulator-always-on;
+   regulator-boot-on;
+   vin-supply = <_io>;
+   };
+
+   vusb2_5v: vusb2-5v {
+   compatible = "regulator-fixed";
+   regulator-name = "vusb2_5v";
+   enable-active-high;
+   gpio = < RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */
+   pinctrl-names = "default";
+   pinctrl-0 = <_pwr_en>;
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+   regulator-always-on;
+   regulator-boot-on;
+   vin-supply = <_5v>;
+   };
+
ext_gmac: external-gmac-clock {
compatible = "fixed-clock";
#clock-cells = <0>;
@@ -357,6 +381,20 @@
status = "okay";
};

+ {
+   status = "okay";
+};
+
+_host0_ehci {
+   status = "okay";
+};
+
+_host1 {
+   pinctrl-names = "default";
+   pinctrl-0 = <_pwr_en>;
+   status = "okay";
+};
+
 {
status = "okay";
};
@@ -401,4 +439,14 @@
rockchip,pins = ;
};
};
+
+   usb_host {
+   phy_pwr_en: phy-pwr-en {
+   rockchip,pins = ;
+   };
+
+   usb2_pwr_en: usb2-pwr-en {
+   rockchip,pins = ;
+   };
+   };
};
diff --git a/include/dt-bindings/pinctrl/rockchip.h 
b/include/dt-bindings/pinctrl/rockchip.h
index 0798287..fb59d23 100644
--- a/include/dt-bindings/pinctrl/rockchip.h
+++ b/include/dt-bindings/pinctrl/rockchip.h
@@ -16,6 +16,7 @@
#define RK_GPIO33
#define RK_GPIO44
#define RK_GPIO66
+#define RK_GPIO8   8


This file is shared with Linux (and the way I understand it, the Linux 
side is leading): has the same already been committed on the Linux side?




#define RK_PA0  0
#define RK_PA1  1


___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [U-Boot, 7/9] ARM: dts: rockchip: Add usb host for rk3288-vyasa

2017-11-08 Thread Philipp Tomsich
> Add usb host support for rk3288-vyasa, board support hub power
> through phy_pwr_en and usb2 host power through usb2_pwr_en and
> naming conversion followed as per schematic.
> 
> Signed-off-by: Jagan Teki 
> ---
>  arch/arm/dts/rk3288-vyasa.dts  | 48 
> ++
>  include/dt-bindings/pinctrl/rockchip.h |  1 +
>  2 files changed, 49 insertions(+)
> 

Acked-by: Philipp Tomsich 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot