Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6259026imu; Tue, 13 Nov 2018 21:16:31 -0800 (PST) X-Google-Smtp-Source: AJdET5d0BUwUBlwKrV5mHQcbuInI/p4WQBwLfSA3wvJ2dCBzfmh58VKh1R4gFPpzzK2U4fS2Lzlt X-Received: by 2002:a62:7dcc:: with SMTP id y195-v6mr521883pfc.60.1542172590948; Tue, 13 Nov 2018 21:16:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542172590; cv=none; d=google.com; s=arc-20160816; b=hpBxyhnyjL5DxUpQUnP11vekHRi2aHdTN4UcYJfNgM3algYQ8GVTbxE9diV5pAwRR/ 5nj9tEtPXMR57BIZaxvC0lM93jSjD9x3GsoT5mp7zFoamRMWAeE6eWNmetE7BTm1bY3I TnsCNpDYmFkOIX7PfozdDUfQphpU2tSr+0oElxclPrmV3N5fYcD11HYFTiKns2F03acm 2tJv2+oZebEVpHjyzIalaaR5lheeXQjCMubrcp2FxvjOchzblfcR/udyKfpX29y9t9cu PUW3OU5gaoxVg6hAjsEfeMefzYf40kno8lETigHQ3dq1Eq7ECGy/P4JT/8fiulqnFeyn H+EQ== 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:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=8McV11/1ImLQwOHyMxlHKZCDdYcXQclGMppTWR6aBA0=; b=OkHrcDrDCZb2sA3RfUil3QW+GIxiqof0fxBK+W9tnsUsf+RLGq6cMujqvcX2XUgy2/ z2gXPBvH/RbPIwANZkwSswBq72VviU+0g3aTkEOXYFQL4+I36i+gF8NE1WFwMgdFwjlC fwxFtxk9RQFJnB8L+3F7aN6b1JSzgYiViZaQ8wpAbL0w0NfQo8i0bsBmfxqudf/fmX6i FwKFud8ObzzeTIfUHg/LZtByEkvAnJz3wejBR8SmNKBobhv5IxGqvxT1jS/2aJ/iVqco ryXL+WGExD4K0JNrJ0PmIxVb4kvw5cESggjx0FJ0KdLevatQG4fd25gmeGtkjhvfoNSg ePlA== 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 4-v6si24062724pff.140.2018.11.13.21.16.15; Tue, 13 Nov 2018 21:16:30 -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 S1728823AbeKNPR3 (ORCPT + 99 others); Wed, 14 Nov 2018 10:17:29 -0500 Received: from hermes.aosc.io ([199.195.250.187]:55863 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726610AbeKNPR3 (ORCPT ); Wed, 14 Nov 2018 10:17:29 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id A0766A2871; Wed, 14 Nov 2018 05:15:45 +0000 (UTC) Message-ID: Subject: Re: [PATCH v4 07/10] dt-bindings: phy: add binding for Allwinner USB3 PHY From: Icenowy Zheng To: Rob Herring Cc: devicetree@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , "linux-kernel@vger.kernel.org" , linux-sunxi , Kishon Vijay Abraham I , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Date: Wed, 14 Nov 2018 13:15:40 +0800 In-Reply-To: References: <20181004122855.22981-1-icenowy@aosc.io> <20181004122855.22981-8-icenowy@aosc.io> <20181005205855.GA2458@bogus> <92e92f817d4df753d654124514e89c62f40d52eb.camel@aosc.io> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2018-10-18四的 08:58 -0500,Rob Herring写道: > On Sat, Oct 13, 2018 at 9:42 PM Icenowy Zheng > wrote: > > > > 在 2018-10-05五的 15:58 -0500,Rob Herring写道: > > > 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. By reading the binding, it says the connector should be a child of the "interface controller", not the USB controller. In this case I think the interface controller is the PHY rather than the USB controller. In addition, the connector is a passive component, and power management should be done by the "interface controller", either directly by the PHY or make a dummy interface controller driver that only controls the Vbus. > > Rob > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel