Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp18780imm; Tue, 22 May 2018 13:12:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqcETLu9Dwgn1V8ZWl6gfQgUcc95YnPlTjZdgA9iqjdyIFxcL8Z7veGsKvQh9j3vxfPXfbh X-Received: by 2002:a17:902:a512:: with SMTP id s18-v6mr26038027plq.223.1527019963787; Tue, 22 May 2018 13:12:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527019963; cv=none; d=google.com; s=arc-20160816; b=zKQJ/DN5pGfSxWco4rydoubiZExnf9ZfWxNFto1c/beKs04xIqBBkv+haG2fQueM5z GA5efpV+2ftJWPfOIJoqAUW+nKADN29AAvIE+YqORQ2+cp8+PSxgth+eaTigbjmMP05B PJwsimeuKu+2yKCAjNnLk4jZZ+bHHPKGuIkJjzeIzSR7wZDxwRMJShYNSeCv82Y08a4e uqDUkj0RrKumS4JoaxcLew62hSMruOJ36uhGBwQSa/PFUgQnJ7lkPvnzd6WRwhSnji7m 07ch9oghDb7CEFLbILI8ue0Ti12ZphcdMi6UT1BRnzFITJHkO3R3rpGr9kN2OqLdNyWp j63w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ChiciCFvijUrtGBkdOVm5foTr7MjK2UGYIvCFcIAWrI=; b=jaCa2RZZkHnGfCkjlvNIGxBaEVCmQAy90isvQxxTdWPeOdLC++uxxgXy15aY+owx5F 0Nnhvc/s9xygWv/4cR2kQoJWpEZJucMAeUtpjo2qybTirKd8WIF0sB8bWCbl00bjtrvo 2Fi6aO1ywxW7FQq0cLP66fsg/mVj31GZn8Irrc+wg5H27BpTjR/Lk56hoyIKXxQb7ZK+ PmWw/KlRXatcUa8vDUemEEkOWSdS9Nuk5YVI50nwg9XWCdxcZam+8Eyi8ekBUpSCOSVT cUpmMxtCkLISIqH5HtoFqO5oefv/CdC7tXs3FIUXf3uom2ykD/owdoFe2Dntw4IwQ2Mp Ldxg== 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; dmarc=fail (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 o10-v6si13828028pgq.148.2018.05.22.13.12.21; Tue, 22 May 2018 13:12:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbeEVUMF (ORCPT + 99 others); Tue, 22 May 2018 16:12:05 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:44504 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbeEVUMD (ORCPT ); Tue, 22 May 2018 16:12:03 -0400 Received: by mail-yw0-f193.google.com with SMTP id l142-v6so5960292ywc.11; Tue, 22 May 2018 13:12:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ChiciCFvijUrtGBkdOVm5foTr7MjK2UGYIvCFcIAWrI=; b=OzM1IxnByZ6Nre3jnyQ75WUBVQZESat3vrC4uv3AKBLiOsWU31JR2/NGLABusG4b6K dh/JaKt2GlPweKqCJwEEidajg8IOfujT2c3ahE92qjjwFmJ3RjtgyT6iCNVbDIM7m3w3 zaQx8Evui7SmFgeAz8BBtRRbNYGIJRRo8uzyc4//AuEPNjTF0d5+ejYHVfIp9UueJNJr nPmzFtAPCT5+YLImbCWkgnDMMjawrMQGVoAbF1i/4/JXg5BWSy+m4CdEkZaaKBx7PV+4 vY2UwwC49ePhnMWjzpy0zv/zqH0CSPG/oEF43z9mOet3YxqdrkdJS3JJUA3QCp7vLhta B2/Q== X-Gm-Message-State: ALKqPwdKmbRpAMdLPLtCJS20ICJ2/tODvqfE8FAvgiCEy/c0NMAcyMPp Mwyxk6iDnFNiUqEE+5Bc1A== X-Received: by 2002:a81:5a87:: with SMTP id o129-v6mr305299ywb.266.1527019922707; Tue, 22 May 2018 13:12:02 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id t124-v6sm7053543ywe.107.2018.05.22.13.12.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 13:12:01 -0700 (PDT) Date: Tue, 22 May 2018 15:12:00 -0500 From: Rob Herring To: Icenowy Zheng Cc: Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Greg Kroah-Hartman , Kishon Vijay Abraham I , Felipe Balbi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH 1/5] phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC Message-ID: <20180522201200.GA17465@rob-hp-laptop> References: <20180507151817.55663-1-icenowy@aosc.io> <20180507151817.55663-2-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180507151817.55663-2-icenowy@aosc.io> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 07, 2018 at 11:18:13PM +0800, Icenowy Zheng wrote: > Allwinner H6 SoC contains a USB3 PHY (with USB2 DP/DM lines also > controlled). > > Add a driver for it. > > The register operations in this driver is mainly extracted from the BSP > USB3 driver. > > Signed-off-by: Icenowy Zheng > --- > .../bindings/phy/sun50i-usb3-phy.txt | 24 +++ Please split bindings to separate patch. > drivers/phy/allwinner/Kconfig | 13 ++ > drivers/phy/allwinner/Makefile | 1 + > drivers/phy/allwinner/phy-sun50i-usb3.c | 195 ++++++++++++++++++ > 4 files changed, 233 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt > create mode 100644 drivers/phy/allwinner/phy-sun50i-usb3.c > > 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..912d55f9f69d > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/sun50i-usb3-phy.txt > @@ -0,0 +1,24 @@ > +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: > +- phy-supply : from the generic phy bindings, a phandle to a regulator that > + provides power to VBUS. > + > +Example: > + usb3phy: phy@5210000 { usb-phy@... > + compatible = "allwinner,sun50i-h6-usb3-phy"; > + reg = <0x5210000 0x10000>; > + clocks = <&ccu CLK_USB_PHY1>; > + resets = <&ccu RST_USB_PHY1>; > + #phy-cells = <0>; > + status = "disabled"; Don't show status in examples. > + };