Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp78638imp; Tue, 19 Feb 2019 18:35:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IbcEq7t4HHKQUM0XIddyQA0fyxQCcxAA5QXY2dxRVjmtV0/FdpaUbxmmjNEU6n/9TAxoRtx X-Received: by 2002:a17:902:1102:: with SMTP id d2mr34363966pla.138.1550630135638; Tue, 19 Feb 2019 18:35:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550630135; cv=none; d=google.com; s=arc-20160816; b=FGAK46tA3yvcQPmCUtkDCkz+52gU4ZCsa37hOcYRwN9X3zhLkj4u7CdgRWmbirdLZX uW6DKDt6lmUzLEDlEYZYWrDMCY8Fkaq7Z+wsPgd2n5bekV71hL33ZtoXPQOm63YJHW/+ 7kSJfp1u/qS5jn5H1fVJ5vDgfaWndJfAfBhnFgHUgrgDr98fxz0jTWFlXuu0Gxt7UsnG DJfExg5/sJ0+v5BEy0Al6NkceE/SdOlV0wGJ6xeeyXmd5p+o6kbWisw4CKUEwUpNZFK0 TWdAAzy6LKen+w/Nnb799Fg1urYc65y0ZgAKPKBZpQieWp1UYSOw7haAcb0XwfJk+OWQ WIfA== 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=sMOjUo9jkytqYaT1RR6jvxmSbutFmw7u8bSYnylj8+k=; b=galXNGkYAtDXzTldAHz3Su5iyHUSLS1pHl+tRUGEhfgERgmEgPdKxJ+0TBdRBkvqxx tITtVV1GQaZmWIrETP2kkCT/iYVA6mOMq749akOvcc5HOdSMSKQVjBZO2dUJBbqHNa8i jtoRLBgZyA9BbHtsXcyz0/2RkTn53ehMWqyKRIJiMZAcF3IDDdXkwboHodr4G7yiPynk Jz9CT+5nmFAlA5FsFBXocMaIXwdAUfPa11K5dtvjmegx9E5g9N6GfjN4JF+l+ZmniDoR 7/uiiq1DiP+qjVOrIGAUz+gaCid8+AhYDzY7aNbSg/bM7mDclrGUUkjklZHJx3ezb6Ps 50tg== 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 c10si17046384pgj.416.2019.02.19.18.35.20; Tue, 19 Feb 2019 18:35:35 -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 S1730165AbfBTCe3 (ORCPT + 99 others); Tue, 19 Feb 2019 21:34:29 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3698 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729797AbfBTCe2 (ORCPT ); Tue, 19 Feb 2019 21:34:28 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0D4702ABC975144C685A; Wed, 20 Feb 2019 10:34:25 +0800 (CST) Received: from [127.0.0.1] (10.142.63.192) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Wed, 20 Feb 2019 10:34:18 +0800 CC: , , , , , , , , , , , , , , Rob Herring , Mark Rutland , Binghui Wang Subject: Re: [PATCH v2 02/10] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960 To: Sergei Shtylyov , , , References: <20190218112310.17860-1-chenyu56@huawei.com> <20190218112310.17860-3-chenyu56@huawei.com> <22270fce-602e-d9fd-0416-58bfecc40b07@cogentembedded.com> From: Chen Yu Message-ID: <8c217714-381c-f449-4f9e-d398c260a916@huawei.com> Date: Wed, 20 Feb 2019 10:34:16 +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: <22270fce-602e-d9fd-0416-58bfecc40b07@cogentembedded.com> 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 2019/2/19 16:25, Sergei Shtylyov wrote: > Hello! > > On 18.02.2019 14:23, Yu Chen wrote: > >> This patch adds binding documentation to support usb hub and usb >> data role switch of Hisilicon HiKey960 Board. >> >> Cc: Sergei Shtylyov >> Cc: Rob Herring >> Cc: Mark Rutland >> Cc: John Stultz >> Cc: Binghui Wang >> Signed-off-by: Yu Chen >> --- >> v1: >> * Fix some format errors as suggested by Sergei. >> * Modify gpio description to use gpiod API. >> v2: >> * Remove information about Hikey. >> * Fix gpio description. >> * Remove device_type of endpoint. >> --- >> --- >>   .../bindings/misc/hisilicon-hikey-usb.txt          | 35 ++++++++++++++++++++++ >>   1 file changed, 35 insertions(+) >>   create mode 100644 Documentation/devicetree/bindings/misc/hisilicon-hikey-usb.txt >> >> diff --git a/Documentation/devicetree/bindings/misc/hisilicon-hikey-usb.txt b/Documentation/devicetree/bindings/misc/hisilicon-hikey-usb.txt >> new file mode 100644 >> index 000000000000..c2b789b515df >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/misc/hisilicon-hikey-usb.txt >> @@ -0,0 +1,35 @@ >> +Support usb hub and usb data role switch of Hisilicon HiKey960 Board. >> + >> +----------------------------- >> + >> +Required properties: >> +- compatible: "hisilicon,gpio-hubv1","hisilicon,hikey960-usb" > >    Only one of those, looking at your example? "hisilicon,gpio-hubv1" is similar as "hisilicon,hikey960-usb". >    Need a space after comma, BTW. OK. Thanks! > >> +- typec-vbus-gpios: gpio to control the vbus of typeC port >> +- typec-vbus-enable-val: gpio value that enable the vbus of typeC port > >    Hm, I thought that can be inferred from the GPIO specifier above... > OK. Thanks! >> +- otg-switch-gpios: gpio to switch DP & DM between the hub and typeC port >> +- hub-vdd33-en-gpios: gpio to enable the power of hub >> +- pinctrl-0: pinctrl config > >    You forgot about "pinctrl-names"... OK. Thanks! > >> + >> +Example >> +----- >> + >> +    hisi_hikey_usb: hisi_hikey_usb { >> +        compatible = "hisilicon,hikey960-usb"; >> +        typec-vbus-gpios = <&gpio25 2 0>; >> +        typec-vbus-enable-val = <1>; >> +        otg-switch-gpios = <&gpio25 6 0>; >> +        hub-vdd33-en-gpios = <&gpio5 6 0>; >> +        pinctrl-names = "default"; >> +        pinctrl-0 = <&usbhub5734_pmx_func>; >> + >> +        port { >> +            #address-cells = <1>; >> +            #size-cells = <0>; >> + >> +            hikey_usb_ep: endpoint@0 { >> +                reg = <0>; >> +                remote-endpoint = <&dwc3_role_switch_notify>; >> +            }; >> +        }; >> + >> +    }; > > MBR, Sergei > > . > Thanks Yu Chen