Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1697558imc; Fri, 22 Feb 2019 09:31:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IY1fmJmUzrcVMbK81EtkpDOCTuybP2I8wczIvCA0NBBliF+s697uFsz458bVr80DL+tIMME X-Received: by 2002:a17:902:9a84:: with SMTP id w4mr5327554plp.283.1550856672467; Fri, 22 Feb 2019 09:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550856672; cv=none; d=google.com; s=arc-20160816; b=b5oQZTInN4SnsSn7i+lR4+EvruvPjHHBEJwM5nops5byfDo2gltaGImCECHSyWRs6F G4CQjYA9lx/3HEBTwxyajsNdbdjrsjbwYltakyQSBBHFvf+niNHD30PDBXe9ADw4Jolw CJh8sIuyI+nwFtm7HUgpRtdCVhiWYf9DfZLI7ipChblpuHdONc6H7FmAf8Pz8d7GCMA3 xcv7YCP77MKME7giUrS3AWY/GD0KRUZ34nKv1OKvJqQpHgLaWEVltB4YBD666Aij7xER gQKqJhj/jZp1YcPZUoJCHOde9b+67LSZoRjMpy5f8MUPfaRNSLXW0L7jr2IgheN5nKSZ oO5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fGVxfZASglZpqjStyjEeO8xKjV8wyZk3eOKUfQcYK5E=; b=qvuOr/BkdBcAeKOEjQAeDtjLFm58IdmFoSZLnLd97lDBs+Sh9XwF8MVBNMXWq5xmtA iT1gRsgsg3hkP2xzcOk/QRR8gk2I5u1smYBqih5E8Wj5BOvTrHSu8xQLntcBiN+sIgW5 mfa56sZlmhM6Ysx7DbXnzONCJjzZpr8+s5/6Ro5nufwHl/iFIALT8mgQs8Xr4ipepc9s hctfiBUwAnWBrWJNt4fIewz3uA3ttvsVnaHZspPE9gNIbDNjFmM0MnrTZkuAapQknvtG kzGUPyOG68I2Um3Yx72cvI2ffU+tbLh5x1gAG6nSKrFZOq0xs9/v04Pi3sPSsGdAFhoS 1Udw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=FNdElpzU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si1754174pgq.317.2019.02.22.09.30.57; Fri, 22 Feb 2019 09:31:12 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=FNdElpzU; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727509AbfBVR3z (ORCPT + 99 others); Fri, 22 Feb 2019 12:29:55 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37401 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbfBVR3z (ORCPT ); Fri, 22 Feb 2019 12:29:55 -0500 Received: by mail-wr1-f68.google.com with SMTP id c8so3233777wrs.4 for ; Fri, 22 Feb 2019 09:29:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fGVxfZASglZpqjStyjEeO8xKjV8wyZk3eOKUfQcYK5E=; b=FNdElpzUUEZa4K/6N3xR/mQAHacZfpnKXNsW9KMcHj7pmVOP9qagHQZoH/qOQ4PTBU g0jZcC22msjJ6d4bRxms4YLojDb5yS7mjY5BnVfk7FK06I9F0JaIGtaH+lVircBSD1Bz rlkHWgcXgek8M8uqeU6TQFInWgIUOvFTe2bWM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fGVxfZASglZpqjStyjEeO8xKjV8wyZk3eOKUfQcYK5E=; b=NsVdFlh0s7Y7Cttuk8O5KRNAhMFvBU9gzaQUJvA9ErSrLKozKxCs+5CcN7DKwxZsX1 yxv08stshrmw2G5ahcYIAjN3GJ5GJcIaRuj1otpLthshYS79JypOS+Jslc7dLOo+WcTf tintY+JwlrvfVknvruWUr+DjUDwzu9vJrxm0nhnau2zZGPRFJB128GAFNfHk/DaaMdhH lWMB0iWUUgT4Ts2n7NADJX3GvnwF2i8pFpkRl6pmM522ogMi5mqQ6CQRw/pl87xnkiak 5nrbhCz7jz8BJ8ZXvuIxTkVoxY1c5RwwXBuh18/5hLUK6HvqqJ4C4k6artYYF2lXOSm9 X4kw== X-Gm-Message-State: AHQUAubAFyZJptMDUAGpfilqHKPi/KodQJQhIQFaBakJMNO/ZvaCD8xZ pEIk61nsDZ74Qf4lgHkLH23kJIlEjHlP5U/INtiZMQ== X-Received: by 2002:adf:8251:: with SMTP id 75mr4021208wrb.112.1550856593234; Fri, 22 Feb 2019 09:29:53 -0800 (PST) MIME-Version: 1.0 References: <1550658842-19167-1-git-send-email-srinath.mannam@broadcom.com> <1550658842-19167-2-git-send-email-srinath.mannam@broadcom.com> <20190222172042.GA6792@bogus> In-Reply-To: <20190222172042.GA6792@bogus> From: Srinath Mannam Date: Fri, 22 Feb 2019 22:59:41 +0530 Message-ID: Subject: Re: [PATCH v4 1/3] dt-bindings: phy: Add Stingray USB PHY binding document To: Rob Herring Cc: Mark Rutland , Kishon Vijay Abraham I , Tejun Heo , Jayachandran C , devicetree@vger.kernel.org, Linux Kernel Mailing List , BCM Kernel Feedback Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thanks for the review, Please find my comments below in line. On Fri, Feb 22, 2019 at 10:50 PM Rob Herring wrote: > > On Wed, Feb 20, 2019 at 04:04:00PM +0530, Srinath Mannam wrote: > > Add DT binding document for Stingray USB PHY. > > > > Signed-off-by: Srinath Mannam > > Reviewed-by: Florian Fainelli > > Reviewed-by: Scott Branden > > --- > > .../bindings/phy/brcm,stingray-usb-phy.txt | 62 ++++++++++++++++++++++ > > 1 file changed, 62 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt > > > > diff --git a/Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt b/Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt > > new file mode 100644 > > index 0000000..da19236 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt > > @@ -0,0 +1,62 @@ > > +Broadcom Stingray USB PHY > > + > > +Required properties: > > + - compatible : should be one of the listed compatibles > > + - "brcm,sr-usb-combo-phy" is a combo PHY has one SS PHY and one HS PHY. > > + - "brcm,sr-usb-hs-phy" has a single HS PHY. > > + - reg: offset and length of the PHY blocks registers > > + - address-cells: should be 1 > > + - size-cells: should be 0 > > + > > +Sub-nodes: > > + brcm,sr-usb-combo-phy have two sub-nodes for one SS PHY and one HS PHY. > > + > > +Sub-nodes required properties: > > + - reg: required for brcm,sr-usb-phy model PHY. > > + reg value 0 is HS PHY and 1 is SS PHY. > > + - phy-cells: generic PHY binding; must be 0 > > + > > +Refer to phy/phy-bindings.txt for the generic PHY binding properties > > + > > +Example: > > + usbphy0: usb-phy@0 { > > + compatible = "brcm,sr-usb-combo-phy"; > > + reg = <0x00000000 0x100>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + usb0_phy0: phy@0 { > > + reg = <0>; > > + #phy-cells = <0>; > > + }; > > + > > + usb0_phy1: phy@1 { > > + reg = <1>; > > + #phy-cells = <0>; > > + }; > > Again, you don't need child nodes here. There are not any per child > resources. Clients can refer to <&usbphy0 1> just as easily as > <&usb0_phy1>. This is why we have #phy-cells. This phy controller is combo PHY it has one Super Speed USB PHY and one High Speed USB PHY. We required to create two PHY devices inside driver to initialize and service(reset) both SS and HS PHYs separately. That is the reason we used two child nodes. Regards, Srinath. > > Rob