Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6687115imu; Mon, 3 Dec 2018 00:52:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/WWBOfhGxhc8bs9xEy6Y6OhdEuVDw415G6aByHs9dcjCG/MdXKWDHTh6PVtt/Q+B+EO0fTv X-Received: by 2002:a62:ae12:: with SMTP id q18mr15049012pff.126.1543827136628; Mon, 03 Dec 2018 00:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543827136; cv=none; d=google.com; s=arc-20160816; b=mhTKCbThkDYkBQ5lUckhgx011EQyP5ZScTVH7/Q4Lqu6OsgQZJuWdeiK2OSluER6ZE 2QaKi0pJHhCnPgUm+XSnBtzyf8567Az4xpOEErtVvZPqo7MZ+zz91H4LwFbOuitBl3wd vWBt8uH0p5zkJ3W9/oHLBypDicnuTgvQ2TI6gbxyW57RaoQArXrgc5ftwn54qKYh5fOX UNmQNgdHHKFgP6sk3f46uxFfY5yqAGP4PrhIXGoOjX87cYSVBv9ZfNrRSw+/0MZzjjKj vQ1gypeOgGjwYLmhTNHgkJn5hA/tiOLa3mq3tcsTzsiElpQufagbMXeZH938ZE0S4+e+ LElA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc; bh=JNv7AK7yIvzKcLrbWWtTBAsFDPVT5XYEtNR8lFhj+uo=; b=hfzJI0TmZNXbdVYvi4mqtj5VI7Bi++5ugV6lNRWRhOCmY6yVX6GebXfumWBIGO2lmt /hbWAgmUd9MlHLy9kOqWap4ih4gOStBDlLwTAwWtsVSyyef8VCfQRLunJPQVxGiIGkeW xrhbGKn+kiZY40/PV+VUiF5SfAIJys1BIRIU/SIOA0A2jt3/eITjoQKRY5lyjz24hxGH GDoa8gptUqeoAfIn46wRbHk1qAmLC7XSE8633cEzMiXdHB/S79Hevs6aKBlEJf/7+z2N AArFOZ3Hsl9NuC5NRhpxAgcx0a+w5Fhb9Ws1ykU9wY6mPvnXYRnLQpzipu0YYaC7pv9O bwhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w22si12787296plp.301.2018.12.03.00.52.02; Mon, 03 Dec 2018 00:52:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725960AbeLCIvY (ORCPT + 99 others); Mon, 3 Dec 2018 03:51:24 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:16071 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725849AbeLCIvY (ORCPT ); Mon, 3 Dec 2018 03:51:24 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8BADBCDDD6660; Mon, 3 Dec 2018 16:51:15 +0800 (CST) Received: from [127.0.0.1] (10.142.63.192) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Mon, 3 Dec 2018 16:51:10 +0800 CC: , , , Greg Kroah-Hartman , "Rob Herring" , Mark Rutland , "John Stultz" Subject: Re: [PATCH v1 01/12] dt-bindings: usb: add support for dwc3 controller on HiSilicon SoCs To: Sergei Shtylyov , , , References: <20181203034515.91412-1-chenyu56@huawei.com> <20181203034515.91412-2-chenyu56@huawei.com> From: Chen Yu Message-ID: <33cda716-d09c-28e7-d4b4-26f246786f5e@huawei.com> Date: Mon, 3 Dec 2018 16:51:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.142.63.192] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2018/12/3 16:35, Sergei Shtylyov wrote: > Hello! > > On 03.12.2018 6:45, Yu Chen wrote: > >> This patch adds binding descriptions to support the dwc3 controller >> on HiSilicon SoCs and boards like the HiKey960. >> >> Cc: Greg Kroah-Hartman >> Cc: Rob Herring >> Cc: Mark Rutland >> Cc: John Stultz >> Signed-off-by: Yu Chen >> --- >>   .../devicetree/bindings/usb/dwc3-hisi.txt          | 67 ++++++++++++++++++++++ >>   1 file changed, 67 insertions(+) >>   create mode 100644 Documentation/devicetree/bindings/usb/dwc3-hisi.txt >> >> diff --git a/Documentation/devicetree/bindings/usb/dwc3-hisi.txt b/Documentation/devicetree/bindings/usb/dwc3-hisi.txt >> new file mode 100644 >> index 000000000000..d32d2299a0a1 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/usb/dwc3-hisi.txt >> @@ -0,0 +1,67 @@ >> +HiSilicon DWC3 USB SoC controller >> + >> +This file documents the parameters for the dwc3-hisi driver. >> + >> +Required properties: >> +- compatible:    should be "hisilicon,hi3660-dwc3" >> +- clocks:    A list of phandle + clock-specifier pairs for the >> +        clocks listed in clock-names >> +- clock-names:    Specify clock names >> +- resets:    list of phandle and reset specifier pairs. >> + >> +Sub-nodes: >> +The dwc3 core should be added as subnode to HiSilicon DWC3 as shown in the >> +example below. The DT binding details of dwc3 can be found in: >> +Documentation/devicetree/bindings/usb/dwc3.txt >> + >> +Example: >> +    usb3: hisi_dwc3 { >> +        compatible = "hisilicon,hi3660-dwc3"; >> +        #address-cells = <2>; >> +        #size-cells = <2>; >> +        ranges; >> + >> +        clocks = <&crg_ctrl HI3660_CLK_ABB_USB>, >> +             <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; >> +        clock-names = "clk_usb3phy_ref", "aclk_usb3otg"; >> +        assigned-clocks = <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; >> +        assigned-clock-rates = <229000000>; >> +        resets = <&crg_rst 0x90 8>, >> +             <&crg_rst 0x90 7>, >> +             <&crg_rst 0x90 6>, >> +             <&crg_rst 0x90 5>; >> + >> +        dwc3: dwc3@ff100000 { > >     According to the DT spec, the node names should be generic, not chip specific, i.e. usb@ff100000 in this case. > Do you mean it should be usb@ff100000: dwc3@ff100000 ? Thanks! > [...] > > MBR, Sergei > > . >