Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1688281imc; Fri, 22 Feb 2019 09:21:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IYc2llG/bHE6nSJsfvdMtICjcI4mgsd0xnJmpr4cgFcYuWiuh+MxnvC6ymfvgTu4oimspR0 X-Received: by 2002:a17:902:42e:: with SMTP id 43mr5344544ple.88.1550856110721; Fri, 22 Feb 2019 09:21:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550856110; cv=none; d=google.com; s=arc-20160816; b=QBb/NgGw6pbPsDRF8hH4SYtKxajqnHg5ZqRWRCPNLTg2xswismL+UE5IA2w5L7xZYz cdxjpqQK1opYWkfXFDFm+qXL8P6nmZlvU1fAnGw7QDU4oYXrDcjKjgZIr7SJCU25EMry wUih5sAq720AWRrYQAX0bGtBKjBEtOM5ppeZ+bRkfaSxqKwxdgNiKNQuYsKvmB5V4/dh IP/Z7gkYvO/bXzTsMoEJXdD7J5z7WDeqOZkadLUhokGmaoxDUWorqm8SX4+oItUVVmbB r1c5HPrC3YxnY7IA/4hIz6ASJuHyE40Evu7GO6QS/YAeX59u9fRhGy4kFA7abVbmsacu AEww== 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; bh=+6PQVz+hofPrn+IpfsdSIwY94GTB3FGTaHYrCEjmOiA=; b=QoZdvQNHBKQbwZJZ5Hm7AQOkK9o3GPCm2wJipcYQZrez0fcquGjj9Bh3t5MLFbQPS0 GI/YcgSciaysTk/0v9tBUEYBCqXuzKhe5t7gxsqsqbDY8ePXboqCWMLt3qcEA4WeccDJ OZDq3n+pXudBBQfRJzxpeaY6Npj/b7ZuAUGIUNG9+U2SakM29npSGYm16R6fLrYa1957 BJZdu1SLxhW1EZLIVN8T3iJmI5G0C1V/kmk8+37yNiGF3/3p8yllwpwSK7SDWv9mijTr hbnYiXCbUyxLpacDMmcZAvbuZ77+tiU7nGjWWtwItC3oV+gRg5GB+IUewhiov6iIGPKX kl1w== 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 e6si1728228pgc.252.2019.02.22.09.21.35; Fri, 22 Feb 2019 09:21:50 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727296AbfBVRUp (ORCPT + 99 others); Fri, 22 Feb 2019 12:20:45 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43489 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfBVRUp (ORCPT ); Fri, 22 Feb 2019 12:20:45 -0500 Received: by mail-ot1-f65.google.com with SMTP id n71so2463845ota.10; Fri, 22 Feb 2019 09:20:44 -0800 (PST) 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=+6PQVz+hofPrn+IpfsdSIwY94GTB3FGTaHYrCEjmOiA=; b=But9dFO9zSPs7tAwm24/v8OuYnn/fWcXMAfwKJthmJkHY26cNAxCFhlWimR51hn5VL ZHnraKhf08T5YgcBJBbVboAgBxRZCCXa5T7SkL0EFO4qao4gAqyemu7dh1dASn2+IQJl GEwHI6h+b3xH4vLKdauz/IXj5rL1B/kaUgrdUNtnaIgrF0Wztz21wcXz865tBsEJusjY ON8Nw2tvnbz8Ka/HCy8X0X9VypkvsjaGEUX4YM/TwDwD5ZIcregjgdW8JD7aaaSzqQsp XH4JLy7QOUZdguGb4NfV6y2R4xvG15V/COjx4RP27c/g5NXGz9McduQf9sMs3BB7IVDW Q9uw== X-Gm-Message-State: AHQUAuaMs8+bboJBzH2kYxfqAKTF3wyfyLBjaPj3Xxb+ZMRr+vaBORkz mc3xiewnGqXuXb3mwRsA1g== X-Received: by 2002:a9d:7f10:: with SMTP id j16mr3369379otq.297.1550856044187; Fri, 22 Feb 2019 09:20:44 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id q5sm738561otf.73.2019.02.22.09.20.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Feb 2019 09:20:43 -0800 (PST) Date: Fri, 22 Feb 2019 11:20:42 -0600 From: Rob Herring To: Srinath Mannam Cc: Mark Rutland , Kishon Vijay Abraham I , Tejun Heo , Jayachandran C , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH v4 1/3] dt-bindings: phy: Add Stingray USB PHY binding document Message-ID: <20190222172042.GA6792@bogus> References: <1550658842-19167-1-git-send-email-srinath.mannam@broadcom.com> <1550658842-19167-2-git-send-email-srinath.mannam@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1550658842-19167-2-git-send-email-srinath.mannam@broadcom.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Rob