From: zhangfei.gao@linaro.org (zhangfei)
To: linux-arm-kernel@lists.infradead.org
Subject: [resend PATCH v3 4/4] usb: phy: add phy-hi6220-usb
Date: Wed, 11 Feb 2015 23:17:46 +0800 [thread overview]
Message-ID: <54DB729A.9040306@linaro.org> (raw)
In-Reply-To: <20150210144807.GC16711@saruman.tx.rr.com>
On 02/10/2015 10:48 PM, Felipe Balbi wrote:
>> diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig
>> index c6d0c8e..405a3d0 100644
>> --- a/drivers/usb/phy/Kconfig
>> +++ b/drivers/usb/phy/Kconfig
>> @@ -173,6 +173,15 @@ config USB_MXS_PHY
>>
>> MXS Phy is used by some of the i.MX SoCs, for example imx23/28/6x.
>>
>> +config USB_HI6220_PHY
>> + tristate "hi6220 USB PHY support"
>> + select USB_PHY
>> + select MFD_SYSCON
>> + help
>> + Enable this to support the HISILICON HI6220 USB PHY.
>> +
>> + To compile this driver as a module, choose M here.
>> +
>> config USB_RCAR_PHY
>> tristate "Renesas R-Car USB PHY support"
>> depends on USB || USB_GADGET
>> diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile
>> index 75f2bba..00172d3 100644
>> --- a/drivers/usb/phy/Makefile
>> +++ b/drivers/usb/phy/Makefile
>> @@ -18,6 +18,7 @@ obj-$(CONFIG_SAMSUNG_USBPHY) += phy-samsung-usb.o
>> obj-$(CONFIG_TWL6030_USB) += phy-twl6030-usb.o
>> obj-$(CONFIG_USB_EHCI_TEGRA) += phy-tegra-usb.o
>> obj-$(CONFIG_USB_GPIO_VBUS) += phy-gpio-vbus-usb.o
>> +obj-$(CONFIG_USB_HI6220_PHY) += phy-hi6220-usb.o
>
> new drivers only on drivers/phy/, sorry.
>
One more quesiton.
Should I also move Documentation/devicetree/bindings/usb/hi6220-usb.txt
to Documentation/devicetree/bindings/phy/?
I describing both usb controller and phy here, is it still should be put
under Documentation/devicetree/bindings/usb/?
Hisilicon hi6220 SoC USB controller
-----------------------------
usb controller is inherited from dwc2, refer dwc2.txt
-----
Required properties:
- compatible: "hisilicon,hi6220-usb"
Refer to dwc2.txt for dwc2 usb properties
PHY:
-----
Required properties:
- compatible: "hisilicon,hi6220-usb-phy"
- vcc-supply: phandle to the regulator that provides power to the PHY.
- clocks: phandle and clock specifier of the PHY clock.
- hisilicon,peripheral-syscon: phandle of syscon used to control peripheral.
- hisilicon,vbus-gpios: gpio of detecting vbus.
- hisilicon,id-gpios: gpio of detecting id.
Example:
sys_ctrl: syscon at f7030000 {
compatible = "hisilicon,sysctrl", "syscon";
reg = <0x0 0xf7030000 0x0 0x1000>;
};
usb_phy: usb-phy {
compatible = "hisilicon,hi6220-usb-phy";
vcc-supply = <&fixed_5v_hub>;
hisilicon,vbus-gpios = <&gpio2 6 0>;
hisilicon,id-gpios = <&gpio2 5 0>;
hisilicon,peripheral-syscon = <&sys_ctrl>;
clocks = <&clock_sys HI6220_USBOTG_HCLK>;
};
usb: usb at f72c0000 {
compatible = "hisilicon,hi6220-usb";
reg = <0x0 0xf72c0000 0x0 0x40000>;
phys = <&usb_phy>;
dr_mode = "otg";
g-use-dma;
g-rx-fifo-size = <512>;
g-np-tx-fifo-size = <128>;
g-tx-fifo-size = <128>;
interrupts = <0 77 0x4>;
};
WARNING: multiple messages have this Message-ID (diff)
From: zhangfei <zhangfei.gao-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: balbi-l0cyMroinI0@public.gmane.org
Cc: john.youn-HKixBCOQz3hWk0Htik3J/w@public.gmane.org,
Mian Yousaf Kaukab
<yousaf.kaukab-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"dan . zhao" <dan.zhao-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
Wangbinghui <wangbinghui-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>,
Peter Chen <peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
Sergei Shtylyov
<sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [resend PATCH v3 4/4] usb: phy: add phy-hi6220-usb
Date: Wed, 11 Feb 2015 23:17:46 +0800 [thread overview]
Message-ID: <54DB729A.9040306@linaro.org> (raw)
In-Reply-To: <20150210144807.GC16711-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
On 02/10/2015 10:48 PM, Felipe Balbi wrote:
>> diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig
>> index c6d0c8e..405a3d0 100644
>> --- a/drivers/usb/phy/Kconfig
>> +++ b/drivers/usb/phy/Kconfig
>> @@ -173,6 +173,15 @@ config USB_MXS_PHY
>>
>> MXS Phy is used by some of the i.MX SoCs, for example imx23/28/6x.
>>
>> +config USB_HI6220_PHY
>> + tristate "hi6220 USB PHY support"
>> + select USB_PHY
>> + select MFD_SYSCON
>> + help
>> + Enable this to support the HISILICON HI6220 USB PHY.
>> +
>> + To compile this driver as a module, choose M here.
>> +
>> config USB_RCAR_PHY
>> tristate "Renesas R-Car USB PHY support"
>> depends on USB || USB_GADGET
>> diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile
>> index 75f2bba..00172d3 100644
>> --- a/drivers/usb/phy/Makefile
>> +++ b/drivers/usb/phy/Makefile
>> @@ -18,6 +18,7 @@ obj-$(CONFIG_SAMSUNG_USBPHY) += phy-samsung-usb.o
>> obj-$(CONFIG_TWL6030_USB) += phy-twl6030-usb.o
>> obj-$(CONFIG_USB_EHCI_TEGRA) += phy-tegra-usb.o
>> obj-$(CONFIG_USB_GPIO_VBUS) += phy-gpio-vbus-usb.o
>> +obj-$(CONFIG_USB_HI6220_PHY) += phy-hi6220-usb.o
>
> new drivers only on drivers/phy/, sorry.
>
One more quesiton.
Should I also move Documentation/devicetree/bindings/usb/hi6220-usb.txt
to Documentation/devicetree/bindings/phy/?
I describing both usb controller and phy here, is it still should be put
under Documentation/devicetree/bindings/usb/?
Hisilicon hi6220 SoC USB controller
-----------------------------
usb controller is inherited from dwc2, refer dwc2.txt
-----
Required properties:
- compatible: "hisilicon,hi6220-usb"
Refer to dwc2.txt for dwc2 usb properties
PHY:
-----
Required properties:
- compatible: "hisilicon,hi6220-usb-phy"
- vcc-supply: phandle to the regulator that provides power to the PHY.
- clocks: phandle and clock specifier of the PHY clock.
- hisilicon,peripheral-syscon: phandle of syscon used to control peripheral.
- hisilicon,vbus-gpios: gpio of detecting vbus.
- hisilicon,id-gpios: gpio of detecting id.
Example:
sys_ctrl: syscon@f7030000 {
compatible = "hisilicon,sysctrl", "syscon";
reg = <0x0 0xf7030000 0x0 0x1000>;
};
usb_phy: usb-phy {
compatible = "hisilicon,hi6220-usb-phy";
vcc-supply = <&fixed_5v_hub>;
hisilicon,vbus-gpios = <&gpio2 6 0>;
hisilicon,id-gpios = <&gpio2 5 0>;
hisilicon,peripheral-syscon = <&sys_ctrl>;
clocks = <&clock_sys HI6220_USBOTG_HCLK>;
};
usb: usb@f72c0000 {
compatible = "hisilicon,hi6220-usb";
reg = <0x0 0xf72c0000 0x0 0x40000>;
phys = <&usb_phy>;
dr_mode = "otg";
g-use-dma;
g-rx-fifo-size = <512>;
g-np-tx-fifo-size = <128>;
g-tx-fifo-size = <128>;
interrupts = <0 77 0x4>;
};
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-02-11 15:17 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-10 9:10 [resend PATCH v3 0/4] add usb support for hi6220 Zhangfei Gao
2015-02-10 9:10 ` Zhangfei Gao
2015-02-10 9:10 ` [resend PATCH v3 1/4] Documentation: dt-bindings: add dt binding info for hi6220 dwc2 Zhangfei Gao
2015-02-10 9:10 ` Zhangfei Gao
2015-02-10 9:10 ` [resend PATCH v3 2/4] Documentation: dt-bindings: add dt binding info for hi6220 Zhangfei Gao
2015-02-10 9:10 ` Zhangfei Gao
2015-02-10 11:37 ` Sergei Shtylyov
2015-02-10 11:37 ` Sergei Shtylyov
2015-02-10 9:10 ` [resend PATCH v3 3/4] usb: dwc2: platform: add hi6220 support Zhangfei Gao
2015-02-10 9:10 ` Zhangfei Gao
2015-02-10 9:10 ` [resend PATCH v3 4/4] usb: phy: add phy-hi6220-usb Zhangfei Gao
2015-02-10 9:10 ` Zhangfei Gao
2015-02-10 14:48 ` Felipe Balbi
2015-02-10 14:48 ` Felipe Balbi
2015-02-10 14:53 ` zhangfei
2015-02-10 14:53 ` zhangfei
2015-02-23 15:29 ` Felipe Balbi
2015-02-23 15:29 ` Felipe Balbi
2015-02-11 1:30 ` Peter Chen
2015-02-11 1:30 ` Peter Chen
2015-02-11 9:10 ` Baruch Siach
2015-02-11 9:10 ` Baruch Siach
2015-02-23 15:30 ` Felipe Balbi
2015-02-23 15:30 ` Felipe Balbi
2015-02-23 15:29 ` Felipe Balbi
2015-02-23 15:29 ` Felipe Balbi
2015-02-11 15:17 ` zhangfei [this message]
2015-02-11 15:17 ` zhangfei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54DB729A.9040306@linaro.org \
--to=zhangfei.gao@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.