Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2725714imj; Mon, 18 Feb 2019 11:01:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IaZwLTLfshYRqjo2fZwfUaPv45JYR9oPUrGtuKcpeClZ/Y4ivGYywdtpGOuhHZQEpynZGbj X-Received: by 2002:a63:7044:: with SMTP id a4mr19814028pgn.359.1550516465889; Mon, 18 Feb 2019 11:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550516465; cv=none; d=google.com; s=arc-20160816; b=a4WuKqEw7nBTrLh1mC0/VKmweVZezbZade1fMFuxsraO2I4TEcfvrDfI3tCmoYVDgK YU+tzKgYJdAxAD/3+eaylDRjiMYuBTN84o89UrZXxsP4Pl+YA8qdIRdOcmH91WwKHgL9 N0PYwuI7lLzyTDf8tozZrsA/n1+PF9oSYMm6yH+tDg8pCJkEYP9njtpy8g83VGVglfkv lAMavbx5259c1anb0Gqr8f+MXbNlgaObjiYnz6ob59DC2T6dKHg/w6jTGfajWkeXiStv ElYyfDzk+SmdGDzhqKSIGPXKUh9jPYTHk6+Ii0bhy0g2NyluxeUR0W9SXqXvEMWBx+To f1iw== 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=hMbz42vrY0PgKSiWNYOOkhkrmrulMiLMIGIK0ymUynU=; b=wSbCc8juaa7pTe+7W1ANFe1JWXvob/5VGN49GJTn1fMF77eSx+y2iNaP14pLhL8zyF vRu7BPNRiQEv7uPoyrlcHMjoYuEPLg4dOc8XkWgJ9HL1drNVg5g+/H4Hd+tEvofj2rYb nFKd5SiTH8G20W7OgxtF37wZPtr0sptd8zhVMcufjR/I2khgtQWGmjGm/X3epTQsNs0m dO93aiwd40DTSwIheZyvkbj237Y0M4vqOeiKKYdFAdyKppL9slwZ8A2FwBv/uA4FTN+D KI+ZpkxyKtBwXfLT5RGhJZ53F3htZrbOEAM2B+DadDnAqsTRwElEjjpwlV3oN8FjbzNK VV/A== 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 c139si12085506pfb.281.2019.02.18.11.00.50; Mon, 18 Feb 2019 11:01:05 -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 S2388407AbfBRRWY (ORCPT + 99 others); Mon, 18 Feb 2019 12:22:24 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:35865 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728216AbfBRRWY (ORCPT ); Mon, 18 Feb 2019 12:22:24 -0500 Received: by mail-ot1-f65.google.com with SMTP id v62so20690847otb.3; Mon, 18 Feb 2019 09:22:23 -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=hMbz42vrY0PgKSiWNYOOkhkrmrulMiLMIGIK0ymUynU=; b=F6D9ALYbtRcwya0W/9HjIs2OIIoqqQMh3Hudlbc/Ts08lw5ZzYxOZfhamGnuM/sRKg YZu2CY10BXtQXC/SfosLCIOHKPfkoBfQfYvNirXPduL86p7q1i5I7V3tlLVspl/qM88O ZkGdKVjqXhXWM3RSyCimIIOUuGThrGK40ssO9KeRyd5zGTW/RmBgNpDOfPKWByAHI+oD I5KppMFyU2f4AGLdjDNiDfkVJXuugoICVJ9xT38EM9OpDDIWLIgGEMX7HL1NG0rOlTni l7px6POruzcQqVIjGgKZ8tZoXnmc15Jj3yWnt/bhM2WJWodmFYjLZaLC4tO2TAQWJ7qh 8+Qg== X-Gm-Message-State: AHQUAuaW7eP0tSDBdHGlcEkcdsvf1d4VztM93+O3F6UpT/5MZ4dk/Tfv y0dlBH9LZT3znJRzpwdGoQ== X-Received: by 2002:a05:6830:1255:: with SMTP id s21mr12710955otp.18.1550510542992; Mon, 18 Feb 2019 09:22:22 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w202sm6664709oie.48.2019.02.18.09.22.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 09:22:22 -0800 (PST) Date: Mon, 18 Feb 2019 11:22:21 -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 v3 1/3] dt-bindings: phy: Add Stingray USB PHY binding document Message-ID: <20190218172221.GA20334@bogus> References: <1549474347-7224-1-git-send-email-srinath.mannam@broadcom.com> <1549474347-7224-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: <1549474347-7224-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 06, 2019 at 11:02:25PM +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..bfe1367 > --- /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-phy" > + - "brcm,sr-usb-phy-v2" SoC specific compatibles are preferred. Version numbers can be used but should follow some documented scheme and be meaningful. What we don't want is just Linux developers making up numbering. > + - reg: offset and length of the PHY blocks registers > + - address-cells: should be 1 > + - size-cells: should be 0 > + > +Sub-nodes: > + Each port's PHY should be represented as a sub-node. > + > +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-phy"; > + reg = <0x00000000 0x100>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + usb0_phy0: phy@0 { > + reg = <0>; > + #phy-cells = <0>; Unless there's DT resources for each child node, you don't need these. Just make #phy-cells 1 in the parent. Rob