From: Yu Chen <chenyu56@huawei.com>
To: chenyu56@huawei.com, xuwei5@hisilicon.com, robh+dt@kernel.org,
mark.rutland@arm.com, catalin.marinas@arm.com,
will.deacon@arm.com, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, arnd@arndb.de, olof@lixom.net,
timur@codeaurora.org, khilman@baylibre.com,
gregory.clement@free-electrons.com, narmstrong@baylibre.com,
yamada.masahiro@socionext.com, robh@kernel.org, heiko@sntech.de,
damm+renesas@opensource.se, krzk@kernel.org, balbi@kernel.org,
gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: wangbinghui@hisilicon.com, suzhuangluan@hisilicon.com
Subject: [RFC 3/3] arm64: dts: Modify device tree for support Hikey960
Date: Tue, 24 Oct 2017 14:06:10 +0800 [thread overview]
Message-ID: <20171024060610.10712-4-chenyu56@huawei.com> (raw)
In-Reply-To: <20171024060610.10712-1-chenyu56@huawei.com>
Add dts for usb module of Hikey960.
Signed-off-by: Yu Chen <chenyu56@huawei.com>
Signed-off-by: Ning Fan <fanning4@hisilicon.com>
Signed-off-by: Di Yang <yangdi10@hisilicon.com>
Signed-off-by: Rui Li <lirui39@hisilicon.com>
---
arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 39 +++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index b7a90d632959..dff3e68c5e38 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
@@ -324,6 +324,18 @@
status = "disabled";
};
+ hubv2: gpio_hubv2 {
+ compatible = "hisilicon,gpio_hubv2";
+ typc_vbus_int_gpio,typec-gpios = <&gpio25 2 0>;
+ typc_vbus_enable_val = <1>;
+ otg_gpio = <&gpio25 6 0>;
+ hub_vdd12_en_gpio = <&gpio2 1 0>;
+ hub_vdd33_en_gpio = <&gpio5 6 0>;
+ hub_reset_en_gpio = <&gpio4 4 0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usbhub5734_pmx_func>;
+ };
+
i2c3: i2c@fdf0c000 {
compatible = "snps,designware-i2c";
reg = <0x0 0xfdf0c000 0x0 0x1000>;
@@ -978,5 +990,32 @@
clocks = <&crg_ctrl HI3660_OSC32K>;
clock-names = "apb_pclk";
};
+
+ hisi_usb@ff200000 {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ compatible = "hisilicon,hi3660-dwc3";
+ reg = <0x0 0xff200000 0x0 0x1000
+ 0x0 0xff100000 0x0 0x100000>;
+ ranges;
+ bc_again_flag = <0>;
+
+ clocks = <&crg_ctrl HI3660_CLK_ABB_USB>,
+ <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>;
+ clock-names = "clk_usb3phy_ref", "aclk_usb3otg";
+ eye_diagram_param = <0x1c466e3>;
+ eye_diagram_host_param = <0x1c466e3>;
+ usb3_phy_cr_param = <0xb80>;
+ usb3_phy_host_cr_param = <0x980>;
+ usb3_phy_tx_vboost_lvl = <0x5>;
+
+ dwc3@ff100000 {
+ compatible = "snps,dwc3";
+ reg = <0x0 0xff100000 0x0 0x100000>;
+ interrupts = <0 159 4>, <0 161 4>;
+ dr_mode = "otg";
+ maximum-speed = "super-speed";
+ };
+ };
};
};
--
2.11.GIT
prev parent reply other threads:[~2017-10-24 6:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-24 6:06 [RFC 0/3] USB: Modify dwc3 code for support Hikey960 Yu Chen
2017-10-24 6:06 ` [RFC 1/3] USB: Add document for usb of Hikey960 Yu Chen
[not found] ` <20171024060610.10712-2-chenyu56-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-10-27 3:47 ` Rob Herring
[not found] ` <20171024060610.10712-1-chenyu56-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-10-24 6:06 ` [RFC 2/3] USB: dwc3: Modify dwc3 code for support " Yu Chen
[not found] ` <20171024060610.10712-3-chenyu56-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-10-24 8:25 ` Felipe Balbi
2017-10-24 10:19 ` Chen Yu
[not found] ` <bbf80ebf-13c6-b589-6b38-6b09ce4119bb-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-10-24 10:41 ` Chen Yu
2017-10-24 6:06 ` Yu Chen [this message]
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=20171024060610.10712-4-chenyu56@huawei.com \
--to=chenyu56@huawei.com \
--cc=arnd@arndb.de \
--cc=balbi@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=damm+renesas@opensource.se \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=gregory.clement@free-electrons.com \
--cc=heiko@sntech.de \
--cc=khilman@baylibre.com \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=narmstrong@baylibre.com \
--cc=olof@lixom.net \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=suzhuangluan@hisilicon.com \
--cc=timur@codeaurora.org \
--cc=wangbinghui@hisilicon.com \
--cc=will.deacon@arm.com \
--cc=xuwei5@hisilicon.com \
--cc=yamada.masahiro@socionext.com \
/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 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).