From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbdJXGIu (ORCPT ); Tue, 24 Oct 2017 02:08:50 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8977 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbdJXGIr (ORCPT ); Tue, 24 Oct 2017 02:08:47 -0400 From: Yu Chen To: , , , , , , , , , , , , , , , , , , , , , , CC: , Subject: [RFC 3/3] arm64: dts: Modify device tree for support Hikey960 Date: Tue, 24 Oct 2017 14:06:10 +0800 Message-ID: <20171024060610.10712-4-chenyu56@huawei.com> X-Mailer: git-send-email 2.14.2.windows.3 In-Reply-To: <20171024060610.10712-1-chenyu56@huawei.com> References: <20171024060610.10712-1-chenyu56@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.142.63.192] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.59EED8D7.003B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: a16cee2198ffe73a99c22b8c28163ace Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add dts for usb module of Hikey960. Signed-off-by: Yu Chen Signed-off-by: Ning Fan Signed-off-by: Di Yang Signed-off-by: Rui Li --- 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