Phytec phyFLEX-i.MX6 : Added USB_OTG Support
Subsystems (2)
PATCH v3 1/4 Phytec phyFLEX-i.MX6 : Added USB_OTG Support
This patch adds support for USB_OTG on Phytec phyFLEX-i.MX6 Quad module.
--- arch/arm/boot/dts/imx6q-phytec-pbab01.dts | 4 ++++ arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi | 17 +++++++++++++++++ 2 files changed, 21 insertions(+)
arch/arm/boot/dts/imx6q-phytec-pbab01.dts +4 -0
@@ -25,6 +25,10 @@ status = "okay"; }; +&usbotg { + status = "okay"; +}; + &usdhc2 { status = "okay"; };
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +17 -0
@@ -18,6 +18,14 @@ memory { reg = <0x10000000 0x80000000>; }; + + reg_usb_otg_vbus: regulator at 0 { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 15 0>; + }; }; &ecspi3 {
@@ -134,6 +142,7 @@ MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x80000000 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* SPI NOR chipselect */ MX6QDL_PAD_DI0_PIN15__GPIO4_IO17 0x80000000 /* PMIC interrupt */ + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x80000000 /* USB_OTG_PWR_EN */ >; }; };
@@ -162,6 +171,14 @@ status = "disabled"; }; +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg_1>; + disable-over-current; + status = "disabled"; +}; + &usdhc2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc2_2>;
Signature · 1 line
1.7.9.5
PATCH v2 2/4 Phytec phyFLEX-i.MX6 : Added USB_HOST Support
This patch adds support for USB_HOST on Phytec phyFLEX-i.MX6 Quad module.
--- arch/arm/boot/dts/imx6q-phytec-pbab01.dts | 4 ++++ arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi | 14 ++++++++++++++ 2 files changed, 18 insertions(+)
arch/arm/boot/dts/imx6q-phytec-pbab01.dts +4 -0
@@ -25,6 +25,10 @@ status = "okay"; }; +&usbh1 { + status = "okay"; +}; + &usbotg { status = "okay"; };
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +14 -0
@@ -26,6 +26,14 @@ regulator-max-microvolt = <5000000>; gpio = <&gpio4 15 0>; }; + + reg_usb_h1_vbus: regulator at 1 { + compatible = "regulator-fixed"; + regulator-name = "usb_h1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio1 0 0>; + }; }; &ecspi3 {
@@ -143,6 +151,7 @@ MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* SPI NOR chipselect */ MX6QDL_PAD_DI0_PIN15__GPIO4_IO17 0x80000000 /* PMIC interrupt */ MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x80000000 /* USB_OTG_PWR_EN */ + MX6QDL_PAD_GPIO_0__USB_H1_PWR 0x80000000 /* USB_H1_PWR_EN */ >; }; };
@@ -171,6 +180,11 @@ status = "disabled"; }; +&usbh1 { + vbus-supply = <®_usb_h1_vbus>; + status = "disabled"; +}; + &usbotg { vbus-supply = <®_usb_otg_vbus>; pinctrl-names = "default";
Signature · 1 line
1.7.9.5
PATCH v2 3/4 Phytec phyFLEX-i.MX6 : Added GPMI-NAND Support
In reply to Ashutosh singhThis patch adds support for GPMI-NAND on Phytec phyFLEX-i.MX6 Quad module.
--- arch/arm/boot/dts/imx6q-phytec-pbab01.dts | 4 ++++ arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi | 7 +++++++ 2 files changed, 11 insertions(+)
arch/arm/boot/dts/imx6q-phytec-pbab01.dts +4 -0
@@ -21,6 +21,10 @@ status = "okay"; }; +&gpmi { + status = "okay"; +}; + &uart4 { status = "okay"; };
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +7 -0
@@ -174,6 +174,13 @@ status = "disabled"; }; +&gpmi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpmi_nand_1>; + nand-on-flash-bbt; + status = "disabled"; +}; + &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4_1>;
Signature · 1 line
1.7.9.5
PATCH v2 4/4 Phytec phyFLEX-i.MX6 : Added SATA Support
In reply to Ashutosh singhThis patch adds support for SATA on Phytec phyFLEX-i.MX6 Quad module.
--- arch/arm/boot/dts/imx6q-phytec-pbab01.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/imx6q-phytec-pbab01.dts +4 -0
@@ -25,6 +25,10 @@ status = "okay"; }; +&sata { + status = "okay"; +}; + &uart4 { status = "okay"; };
Signature · 1 line
1.7.9.5
PATCH v3 1/4 Phytec phyFLEX-i.MX6 : Added USB_OTG Support
In reply to Ashutosh singhQuoted 3 lines · Ashutosh singh
This patch adds support for
USB_OTGon Phytec phyFLEX-i.MX6 Quad module.Signed-off-by Ashutosh singh <[email protected]>
Please have the prefix of patch subject be 'ARM: dts: imx6q-phytec: ...'
Quoted 25 lines
--- arch/arm/boot/dts/imx6q-phytec-pbab01.dts | 4 ++++ arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi | 17 +++++++++++++++++ 2 files changed, 21 insertions(+)arch/arm/boot/dts/imx6q-phytec-pbab01.dts +4
-0@@ -25,6 +25,10 @@ status = "okay"; }; +&usbotg { + status = "okay"; +}; + &usdhc2 { status = "okay"; };arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +0
-0
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi line 22
Quoted 5 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +2
-0@@ -18,6 +18,14 @@ memory { reg = <0x10000000 0x80000000>; }; + + reg_usb_otg_vbus: regulator at 0 {
You do not have a 'reg' property in the node, so you shouldn't have '@num' in node name. You may want to name it 'regulator-0'.
Quoted 10 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +6
-0+ compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 15 0>; + }; }; &ecspi3 {
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi line 145
Quoted 4 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +1
-0@@ -134,6 +142,7 @@ MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x80000000 MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* SPI NOR chipselect */ MX6QDL_PAD_DI0_PIN15__GPIO4_IO17 0x80000000 /* PMIC interrupt */ + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x80000000 /* USB_OTG_PWR_EN */
Don't add it into hog group. Define a pinctrl state in above regulator node for it.
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi line 177
Quoted 11 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +4
-0>; }; };@@ -162,6 +171,14 @@ status = "disabled"; }; +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg_1>;
pinctrl_usbotg_1 is gone. Please generate the patch against my for-next branch below.
git://git.linaro.org/people/shawnguo/linux-2.6.git for-next
Shawn
Quoted 10 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +4
-0+ disable-over-current; + status = "disabled"; +}; + &usdhc2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc2_2>;Signature · 1 line
1.7.9.5
PATCH v3 1/4 Phytec phyFLEX-i.MX6 : Added USB_OTG Support
Quoted 9 lines · Shawn Guo
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi line 22
Quoted 6 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +2
-0@@ -18,6 +18,14 @@ memory { reg = <0x10000000 0x80000000>; }; + + reg_usb_otg_vbus: regulator at 0 {You do not have a 'reg' property in the node, so you shouldn't have '@num' in node name. You may want to name it 'regulator-0'.
I just saw the talk between Stephen and Mark [1], and I'm with Stephen that neither regulator-0 nor regulator_0 is a good name. Since Mark is giving up the argument on the container, please follow the way we do in other IMX dts today.
Shawn
[1] http://thread.gmane.org/gmane.linux.drivers.devicetree/61894/focus=62405
Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +6
-0+ compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 15 0>; + }; };
Quoted 9 lines · Shawn Guo
Quoted 8 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi line 22
Quoted 6 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +2
-0@@ -18,6 +18,14 @@ memory { reg = <0x10000000 0x80000000>; }; + + reg_usb_otg_vbus: regulator@0 {You do not have a 'reg' property in the node, so you shouldn't have '@num' in node name. You may want to name it 'regulator-0'.
Quoted 9 lines
I just saw the talk between Stephen and Mark [1], and I'm with Stephen that neither regulator-0 nor
regulator_0is a good name. Since Mark is giving up the argument on the container, please follow the way we do in other IMX dts today.Shawn
[1] http://thread.gmane.org/gmane.linux.drivers.devicetree/61894/focus=62405
By seeing the discussion would the below changes is appropriate
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
reg_usb_otg_vbus: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
regulator-name = "usb_otg_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio4 15 0>;
};But as Mark [1] suggested not to use simple bus. Which one is more appropriate ?
[1] http://www.spinics.net/lists/linux-usb/msg101477.html
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +6
-0+ compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 15 0>; + }; };
PATCH v3 1/4 Phytec phyFLEX-i.MX6 : Added USB_OTG Support
Do not send email in html.
Quoted 16 lines · Ashutosh
By seeing the discussion would the below changes is appropriate
regulators { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <0>; reg_usb_otg_vbus: regulator at 0 { compatible = "regulator-fixed"; reg = <0>; regulator-name = "usb_otg_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&gpio4 15 0>; };
Quoted 2 lines
But as Mark [1] suggested not to use simple bus. Which one is more appropriate ?
Since it's already been used so widely and provided us a nice way to use the generic node name, I believe Mark is giving up his position.
Shawn
Quoted 2 lines
-----Shawn Guo <[email protected]> wrote: -----
To: Ashutosh singh <[email protected]>
From: Shawn Guo <[email protected]>
Date: 02/19/2014 11:28AM
Cc: <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>
Subject: Re: [PATCH v3 1/4] Phytec phyFLEX-i.MX6 : Added USB_OTG Support
Quoted 9 lines · Shawn Guo
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi line 22
Quoted 6 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +2
-0@@ -18,6 +18,14 @@ memory { reg = <0x10000000 0x80000000>; }; + + reg_usb_otg_vbus: regulator@0 {You do not have a 'reg' property in the node, so you shouldn't have '@num' in node name. You may want to name it 'regulator-0'.
I just saw the talk between Stephen and Mark [1], and I'm with Stephen that neither regulator-0 nor regulator_0 is a good name. Since Mark is giving up the argument on the container, please follow the way we do in other IMX dts today.
Shawn
[1] http://thread.gmane.org/gmane.linux.drivers.devicetree/61894/focus=62405
By seeing the discussion would the below changes is appropriate regulators { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <0>; reg_usb_otg_vbus: regulator@0 { compatible = "regulator-fixed"; reg = <0>; regulator-name = "usb_otg_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&gpio4 15 0>; };But as Mark [1] suggested not to use simple bus. Which one is more appropriate ? [1] http://www.spinics.net/lists/linux-usb/msg101477.html
Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/imx6q-phytec-pfla02.dtsi +6
-0+ compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 15 0>; + }; };