From patchwork Fri Apr 5 20:57:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 1078742 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aosc.io Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44bXFw1YYwz9sR4 for ; Sat, 6 Apr 2019 07:57:56 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726479AbfDEU5z (ORCPT ); Fri, 5 Apr 2019 16:57:55 -0400 Received: from hermes.aosc.io ([199.195.250.187]:36944 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfDEU5z (ORCPT ); Fri, 5 Apr 2019 16:57:55 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id EFAEA6CDF5; Fri, 5 Apr 2019 20:57:51 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Kishon Vijay Abraham I , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v5 1/5] dt-bindings: usb-connector: add Vbus regulator for Type-A/B Date: Sat, 6 Apr 2019 04:57:32 +0800 Message-Id: <20190405205736.55177-2-icenowy@aosc.io> In-Reply-To: <20190405205736.55177-1-icenowy@aosc.io> References: <20190405205736.55177-1-icenowy@aosc.io> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org USB Type-A and Type-B connectors have a Vbus pin, which provides +5V power to bus-powered devices. Add a power supply regulator property for this pin. Signed-off-by: Icenowy Zheng Reviewed-by: Rob Herring --- New patch in v5. Documentation/devicetree/bindings/connector/usb-connector.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/connector/usb-connector.txt b/Documentation/devicetree/bindings/connector/usb-connector.txt index a9a2f2fc44f2..5608feeb1105 100644 --- a/Documentation/devicetree/bindings/connector/usb-connector.txt +++ b/Documentation/devicetree/bindings/connector/usb-connector.txt @@ -17,6 +17,9 @@ Optional properties: - self-powered: Set this property if the usb device that has its own power source. +Optional properties for usb-a-connector or usb-b-connector: +- vbus-supply: phandle to a regulator supplying the VBUS voltage. + Optional properties for usb-c-connector: - power-role: should be one of "source", "sink" or "dual"(DRP) if typec connector has power support. From patchwork Fri Apr 5 20:57:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 1078743 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aosc.io Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44bXG14W05z9sRN for ; Sat, 6 Apr 2019 07:58:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbfDEU6A (ORCPT ); Fri, 5 Apr 2019 16:58:00 -0400 Received: from hermes.aosc.io ([199.195.250.187]:36963 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfDEU57 (ORCPT ); Fri, 5 Apr 2019 16:57:59 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 789C06CDF8; Fri, 5 Apr 2019 20:57:56 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Kishon Vijay Abraham I , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v5 2/5] dt-bindings: phy: add binding for Allwinner USB3 PHY Date: Sat, 6 Apr 2019 04:57:33 +0800 Message-Id: <20190405205736.55177-3-icenowy@aosc.io> In-Reply-To: <20190405205736.55177-1-icenowy@aosc.io> References: <20190405205736.55177-1-icenowy@aosc.io> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 = "allwinner,sun50i-h6-usb3-phy"; + reg = <0x5210000 0x10000>; + clocks = <&ccu CLK_USB_PHY1>; + resets = <&ccu RST_USB_PHY1>; + #phy-cells = <0>; + + connector { + compatible = "usb-a-connector"; + label = "USB3"; + }; + };