Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1956667imm; Thu, 18 Oct 2018 07:00:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV63fC7O+XBgAmiDIts5dCoKcT7Byyj6QzbtmO1OaegL88jVbWJrEkBZW8R78RiR8Gz6NSOUh X-Received: by 2002:a62:2542:: with SMTP id l63-v6mr31411202pfl.64.1539871246131; Thu, 18 Oct 2018 07:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539871246; cv=none; d=google.com; s=arc-20160816; b=mNkTk3UNsUnpesQJ3NHBgHQH4SfT8iAv7kLDyT2Fn83fhAmOzcMAjlTAlLYe0LbqP8 CEKhhkumHl5ZoLUU5oT6qEFH+79LaBV7tpvvEOHLHGMIAc782fPLfcRcQfHnZogBPPux lQLQz64IyZ4uobHw09j58btvPKhYAKvsdGEnSBorWeCxd3No3iDiD0fkzsKjr7ovuqWd wdqd8ZgYzt+4Laa/1DDveLWz8yDh+BfwQFSlAmC2sJBGYbg1gTfYgdSTzOPzVSU9ClxB 1xSrYrNUZ76c1hPXIXSCdSSzZHWiUGT4FDvvSQ1sW8/5kvR5LhCsMX413LVNQYbyD66L dFoQ== 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=MIySuJg8+NNy7m6Iz3zfKRKSBrmW70T3JcubpcM0gQ4=; b=n4Cm3GImkRq90NuY8wjSnQm9aGdc3lLngA6Jss9/SclhnAO9txNcSI89c0KmuQjTCI OMMNrdMSXRrl8nJxwgMcUfOCFSM/MkOCrxRdO8mEbU2L7cutgH3ZzWIUhhYK0kLnmEhm HWY9uZslvbf4qBWuXEiClPYh3fdK5XJ2isLhbxKEiZaMZ1VowCHvLiLUrgsuFL034OXo 8TctusSwajVa4wTaw5PStp5qE1gOv4zt13fvAeZqZ6fvOadzetiMVWT9F+HjVD0C9NVc SeioEGgFkJ8307pUirij3/SW2xRXYd8rKfknWsx7wyfRst3h/l0vsHVJ8GUdYIA0Qjoc mZZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a7cy1afi; 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 g16-v6si20345604pgi.329.2018.10.18.07.00.29; Thu, 18 Oct 2018 07:00:46 -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=a7cy1afi; 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 S1728241AbeJRV7s (ORCPT + 99 others); Thu, 18 Oct 2018 17:59:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:37170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727539AbeJRV7r (ORCPT ); Thu, 18 Oct 2018 17:59:47 -0400 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (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 4BBAD2145D; Thu, 18 Oct 2018 13:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539871117; bh=QLku2HIGRmxv2Wi3kRTowLIAtGtizSiKdklzJGHrY3E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=a7cy1afie8qKUW9RhQdCv4dGG333UH0gn6bvSNf4LEsEJK0RfT5XEq/hrDx9d+Zgj gyfvTD5hLbWZl+X9xoHJaZfZkb2cT0r/wygcKvtRPNYeUGZBpcJnzPAvFIdofu5840 wE1xE3oi1cBAfwZqxoWvqB6/0zQR5JnX5/0zc14w= Received: by mail-qk1-f181.google.com with SMTP id p6-v6so18834581qkg.1; Thu, 18 Oct 2018 06:58:37 -0700 (PDT) X-Gm-Message-State: ABuFfohzQ2qjvYLTCKRQZ9K6q/thlyT7IhYEabx6lxd/u4OpJyGZcfb0 cPoPyfgXOvGXUqjAmtCWZ1mXSwCVfn1Jq+JL4Q== X-Received: by 2002:a37:ddcf:: with SMTP id u76-v6mr27808063qku.184.1539871116514; Thu, 18 Oct 2018 06:58:36 -0700 (PDT) MIME-Version: 1.0 References: <20181004122855.22981-1-icenowy@aosc.io> <20181004122855.22981-8-icenowy@aosc.io> <20181005205855.GA2458@bogus> <92e92f817d4df753d654124514e89c62f40d52eb.camel@aosc.io> In-Reply-To: <92e92f817d4df753d654124514e89c62f40d52eb.camel@aosc.io> From: Rob Herring Date: Thu, 18 Oct 2018 08:58:25 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 07/10] dt-bindings: phy: add binding for Allwinner USB3 PHY To: Icenowy Zheng Cc: devicetree@vger.kernel.org, Maxime Ripard , linux-sunxi , "linux-kernel@vger.kernel.org" , Kishon Vijay Abraham I , Chen-Yu Tsai , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" 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, Oct 13, 2018 at 9:42 PM Icenowy Zheng wrote: > > =E5=9C=A8 2018-10-05=E4=BA=94=E7=9A=84 15:58 -0500=EF=BC=8CRob Herring=E5= =86=99=E9=81=93=EF=BC=9A > > On Thu, Oct 04, 2018 at 08:28:52PM +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 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 | 23 > > > +++++++++++++++++++ > > > 1 file changed, 23 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..9f49c6b8c7e7 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt > > > @@ -0,0 +1,23 @@ > > > +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 Properties: > > > +- vbus-supply : a phandle to a regulator that provides power to > > > VBUS. > > > > This belongs in a connector node as it is part of the connector > > unless > > the phy physically needs Vbus for power. > > > > But others have done this, so all the phys can just be wrong... > > How should we reference the connector? > > Via OF graph or simply a property in PHY node? The connector is either a child of the controller or an OF graph from the controller to the connector. The phy driver needs the controller node and then it can walk the tree or graph to get the connector node. Rob