[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171024060610.10712-4-chenyu56@huawei.com>
Date: Tue, 24 Oct 2017 14:06:10 +0800
From: Yu Chen <chenyu56@...wei.com>
To: <chenyu56@...wei.com>, <xuwei5@...ilicon.com>,
<robh+dt@...nel.org>, <mark.rutland@....com>,
<catalin.marinas@....com>, <will.deacon@....com>,
<linux-arm-kernel@...ts.infradead.org>,
<devicetree@...r.kernel.org>, <arnd@...db.de>, <olof@...om.net>,
<timur@...eaurora.org>, <khilman@...libre.com>,
<gregory.clement@...e-electrons.com>, <narmstrong@...libre.com>,
<yamada.masahiro@...ionext.com>, <robh@...nel.org>,
<heiko@...ech.de>, <damm+renesas@...nsource.se>, <krzk@...nel.org>,
<balbi@...nel.org>, <gregkh@...uxfoundation.org>,
<linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: <wangbinghui@...ilicon.com>, <suzhuangluan@...ilicon.com>
Subject: [RFC 3/3] arm64: dts: Modify device tree for support Hikey960
Add dts for usb module of Hikey960.
Signed-off-by: Yu Chen <chenyu56@...wei.com>
Signed-off-by: Ning Fan <fanning4@...ilicon.com>
Signed-off-by: Di Yang <yangdi10@...ilicon.com>
Signed-off-by: Rui Li <lirui39@...ilicon.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@...0c000 {
compatible = "snps,designware-i2c";
reg = <0x0 0xfdf0c000 0x0 0x1000>;
@@ -978,5 +990,32 @@
clocks = <&crg_ctrl HI3660_OSC32K>;
clock-names = "apb_pclk";
};
+
+ hisi_usb@...00000 {
+ #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@...00000 {
+ 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
Powered by blists - more mailing lists