Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3388034yba; Mon, 8 Apr 2019 18:11:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOeWbhstPHqjFefPQfqqBCjaWQNTu3rOpdfZuIG2RlTmtVKfHYGmJkgMdsAaACE8STegl0 X-Received: by 2002:a17:902:f089:: with SMTP id go9mr32513443plb.309.1554772268552; Mon, 08 Apr 2019 18:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554772268; cv=none; d=google.com; s=arc-20160816; b=Go3vyzrXdqJNlQqQMxqe67n2xLlm3n1D51ayRGvmd+P7Pd1IGAKPI7BhM+Ju6DDc9Q cz4996P6glUTBalp6qszV81ENPZGn4FVHN/yqH8yaBBCOkX0bxMRkvScbwiI9jBOwbJB AKlgiBDRCugNGAZnQHdRNnX7s1xIJyX9dS/4r6BReipS9LHTJaeefgrkEj767STJKgwl qFFiksuVDSGQDlRVk6JpqK77Zqg6PlJnq3KAdsE1Hcfqh45YAAiweZlZO0T5Y4TNyieI Hm4+A/Nje9ZYsZYJDNS4hK/0aMOQQCbe24vUgNAiBsG4qgn4j+AnNmc5ECAkG/AttC6E orwQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zbbFXEheE7E6ir20AZ2eOsXZpRop/5Z1ldJDYRByU08=; b=VWogAA9EkSnGfxbGWfp7bdOcBWuaLokrdG9rT2kAyCuTxBQertTOrp7yriatW9xCCp EvIa1HIBj2nYZoQh1JD6/VSRIi4W6Vzd4QJHh6XlGxTzeZuLExeDxG0EFjgLNxTBFusx 3igxBVaFEL7M7FXayzir6fplYgTpRlJKqRCq9RiOwGTPAEpeeCiGZ78rXa2dMQmbseNO EAOC17cjpyhe5eHH51YRuRxBFxpS+WwD7WQydNtaS3ipgOJo/pWaxhICDhuLKSMkjMb9 z5c87P6wmIKiPsERVBLfyi9q4pDtLd/b/94eh25nN0WeP2XYxQgG0IftkvU/H/OnZ2+Y LObw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=00c2jEDj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si27318712plt.347.2019.04.08.18.10.53; Mon, 08 Apr 2019 18:11:08 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=00c2jEDj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726551AbfDIBJ3 (ORCPT + 99 others); Mon, 8 Apr 2019 21:09:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:40320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbfDIBJ3 (ORCPT ); Mon, 8 Apr 2019 21:09:29 -0400 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF6ED21874; Tue, 9 Apr 2019 01:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554772167; bh=1BkXaBHmADM0p2CpTukf2bZxhHWNCIxFzO/Rrf4FZCY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=00c2jEDjpGNAhhfi7vQ2PVbSmek1kMqwGE8pZhnouFjHtAb0aFoWTV0H8xl+sO9Z4 xW1ktk2KrA58rH305O8nwfEo3IDBEe6AyvzUIyhr+liiFNGxH/KGGPozGeZUlNJm6M L6EGDiniZLduFCwlxqeCrrYZtqQo9Cfq3XmZs3RI= Received: by mail-qt1-f174.google.com with SMTP id t28so17850127qte.6; Mon, 08 Apr 2019 18:09:27 -0700 (PDT) X-Gm-Message-State: APjAAAVKFqIyrXRMbp+7idnl/t1kRqW2pcnGEmieSQFAeRlyAesgB4Dl SQ4GmgWcf1LyH8zkehDpKWP5VG/04kZUe6hvrQ== X-Received: by 2002:ac8:33cf:: with SMTP id d15mr28265010qtb.149.1554772166965; Mon, 08 Apr 2019 18:09:26 -0700 (PDT) MIME-Version: 1.0 References: <20190405205736.55177-1-icenowy@aosc.io> <20190405205736.55177-3-icenowy@aosc.io> <20190406071402.GA6006@bogus> In-Reply-To: From: Rob Herring Date: Mon, 8 Apr 2019 20:09:14 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 2/5] dt-bindings: phy: add binding for Allwinner USB3 PHY To: Icenowy Zheng Cc: "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, Maxime Ripard , linux-sunxi , "linux-kernel@vger.kernel.org" , Kishon Vijay Abraham I , Chen-Yu Tsai Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 6, 2019 at 2:24 AM Icenowy Zheng wrote: > > > > =E4=BA=8E 2019=E5=B9=B44=E6=9C=886=E6=97=A5 GMT+08:00 =E4=B8=8B=E5=8D=883= :14:02, Rob Herring =E5=86=99=E5=88=B0: > >On Sat, Apr 06, 2019 at 04:57:33AM +0800, Icenowy Zheng wrote: > >> The new Allwinner H6 SoC contains a USB3 PHY that is wired to the > >> external USB3 pins of the SoC. > >> > >> Add a device tree binding for the PHY. > >> > >> Signed-off-by: Icenowy Zheng > >> Reviewed-by: Chen-Yu Tsai > >> --- > >> Changes in v5: > >> - Dropped Vbus regulator and added connector subnode. > >> > >> Changes in v4: > >> - Changed Vbus regulator property to vbus-supply. > >> > >> Changes in v3: > >> - Added Chen-Yu's Review tag. > >> > >> No changes in v2, v1. > >> > >> .../bindings/phy/sun50i-usb3-phy.txt | 28 > >+++++++++++++++++++ > >> 1 file changed, 28 insertions(+) > >> create mode 100644 > >Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt > >> > >> diff --git > >a/Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt > >b/Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt > >> new file mode 100644 > >> index 000000000000..eeedc53e6360 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt > >> @@ -0,0 +1,28 @@ > >> +Allwinner sun50i USB3 PHY > >> +----------------------- > >> + > >> +Required properties: > >> +- compatible : should be one of > >> + * allwinner,sun60i-h6-usb3-phy > >> +- reg : a list of offset + length pairs > >> +- #phy-cells : from the generic phy bindings, must be 0 > >> +- clocks : phandle + clock specifier for the phy clock > >> +- resets : phandle + reset specifier for the phy reset > >> + > >> +Optional nodes: > >> +- connector : A sub-node required for representing the connector > >connected > >> + to the USB PHY. See ../connector/usb-connector.txt for > >details. > >> + > >> +Example: > >> + usb3phy: phy@5210000 { > >> + compatible =3D "allwinner,sun50i-h6-usb3-phy"; > >> + reg =3D <0x5210000 0x10000>; > >> + clocks =3D <&ccu CLK_USB_PHY1>; > >> + resets =3D <&ccu RST_USB_PHY1>; > >> + #phy-cells =3D <0>; > >> + > >> + connector { > >> + compatible =3D "usb-a-connector"; > >> + label =3D "USB3"; > > > >The binding defines that a connector is a child of USB controller or > > Please note that the word used is not "USB controller", but "USB interfac= e > controller". Same thing. We do not represent PHYs as part of the hierarchy. The controller just points to its PHY with the 'phys' property, but is not part of the graph. Unless your PHY handle USB-C functions like PD and alternate modes, then it shouldn't be part of the graph. > A USB controller is something that deal with USB protocol, and connect to= a USB > PHY with ULPI/UTMI/PIPE interface. It's not connected to the connector > directly at all. Then the PHY is connected to the interface controller (i= f present), or > the connector, with D+, D- and SS pins. > > >some port controller (such as USB-C ctrlr) with OF graph to USB > >controller. So either way, this is wrong unless this is more than just > >a > >phy. > > > >Rob > > > >_______________________________________________ > >linux-arm-kernel mailing list > >linux-arm-kernel@lists.infradead.org > >http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > -- > =E4=BD=BF=E7=94=A8 K-9 Mail =E5=8F=91=E9=80=81=E8=87=AA=E6=88=91=E7=9A=84= Android=E8=AE=BE=E5=A4=87=E3=80=82