Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp609936ybb; Thu, 28 Mar 2019 08:43:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ7Pz6n9p10NssRQc8z8afQNJ/k+sTGyu64Z6MWAvVVnP2LhZUylvfaleo7BzBvjH5HGx5 X-Received: by 2002:a65:6108:: with SMTP id z8mr26787357pgu.106.1553787829274; Thu, 28 Mar 2019 08:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553787829; cv=none; d=google.com; s=arc-20160816; b=Hj8qIHXfwdxUNpYHPA7xhptiadS2L6wuUl3WVcxt6VL1N+UCOoWkZ6q5e90Kmng5a0 lZx1sPr+qs7dkvbgR4hod0LtAqlCHgl/GR3nbGzroZEGeOJPk5N+eYpq5Idy+dVOmHrV hx+nzdbjx0cy6QwUZ2XPbpplqAjyWG+fiejIn9co3ElDxQMl+OvWsytIRBeetctbqLzw 1sQQZMDqzoLOFtMEVUGNadG/8CldUzv3LalIKKAIteTgonx0Ue7YqgLx7N27BM4k4hiL oNGv8dmHDjNwpFxX3qSHrC0gztfSlF6lNSSEZ0vQMPKt+mXDA5ox/i+2Ya2ZJx9CXEyv 4N0A== 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=4az+46DIMfUB/SNTIsMCQFGc8Fnlowh1OrOWXEomb4w=; b=bi0v4RZK2gh8ZVJiDXbHQ5R0DLt1jjrOT/w2AJ3sZ5ooQKoAM9SHi6f1GZYG7snRVp 9zCrB8kQ+NrKuz6ynKw8roKJAVjeYebUaSUXQ9DaJMqIklrd2KlQMnEhmn/XXMXxa+zv FH9CiDk2AwrV0p8q7V6WyBrN1/vjckyyUxnFMbJs6TynVvhYa5XZuKl201GcPD3+t8tX B+QQh3EZJ6mL6qgIsDXS9ktc+HDt9r/zOCV8+VGJb4sn5aa4v4/ui/8Km3Q3dHvdPuec T7kQyPJ9Lj2teIvX4oGFtEnVNc4v0dJwQkcp2DwKq0aub8Yy3CrdYG6ReVgSls26VirE Po3g== 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 q5si21760665pgc.425.2019.03.28.08.43.33; Thu, 28 Mar 2019 08:43:49 -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 S1727434AbfC1Pml (ORCPT + 99 others); Thu, 28 Mar 2019 11:42:41 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:44290 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfC1Pml (ORCPT ); Thu, 28 Mar 2019 11:42:41 -0400 Received: by mail-ot1-f66.google.com with SMTP id d24so4228605otl.11; Thu, 28 Mar 2019 08:42:40 -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=4az+46DIMfUB/SNTIsMCQFGc8Fnlowh1OrOWXEomb4w=; b=VrXm1/64sjT25/Gg8RUJUD8av7Y8kN1OL6dNMfo/j4X9R7Y3aQo/NXFnitB1UncBAC p73EVG7OpvzBJ5+hNeH0BZVTMcluvJk8pjpwu3B0A8w9h/eC660Rk0ZvwLpMdft2AxPD eBhnPnu001DXRZ3D3MxzwA9NxKYB1gNVPkgL+8HV3lBmNjcKxYYM2yOMz7F551AmZIAB WFIRae2e0uXz5IW+hXvaElvfewhSzsrAcymlNodqcpg2PrlfGZsSBzdKFYhTW8VYb+e8 ChlsxBh/F2mojeII0hNoSuYTlDtMYCBIl1QbIarz00AP/jIxZJkX1bkIkjJXqfMBbG0R 5h6Q== X-Gm-Message-State: APjAAAWl8nOxGg1nS9zQ/MjlibrJuWl+hT7rQwqBfVvJmiayDTwmET/S ojcjrXxk+RJHfKNz40HNFA== X-Received: by 2002:a05:6830:1092:: with SMTP id y18mr4973717oto.130.1553787760337; Thu, 28 Mar 2019 08:42:40 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k3sm9298397oic.11.2019.03.28.08.42.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2019 08:42:39 -0700 (PDT) Date: Thu, 28 Mar 2019 10:42:38 -0500 From: Rob Herring To: Sergio Paracuellos Cc: kishon@ti.com, linux-kernel@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devicetree@vger.kernel.org, john@phrozen.org, linux-mips@vger.kernel.org, neil@brown.name Subject: Re: [PATCH 2/2] dt-bindings: phy: Add binding for Mediatek MT7621 PCIe PHY Message-ID: <20190328154238.GA20934@bogus> References: <20190314132210.654-1-sergio.paracuellos@gmail.com> <20190314132210.654-3-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190314132210.654-3-sergio.paracuellos@gmail.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 Thu, Mar 14, 2019 at 02:22:10PM +0100, Sergio Paracuellos wrote: > Add bindings to describe Mediatek MT7621 PCIe PHY. Binding should come before the driver. > > Signed-off-by: Sergio Paracuellos > --- > .../bindings/phy/mediatek,mt7621-pci-phy.txt | 54 +++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.txt > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.txt b/Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.txt > new file mode 100644 > index 000000000000..8addedbe815e > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/mediatek,mt7621-pci-phy.txt > @@ -0,0 +1,54 @@ > +Mediatek Mt7621 PCIe PHY > + > +Required properties: > +- compatible: must be "mediatek,mt7621-pci-phy" > +- reg: base address and length of the PCIe PHY block > +- #address-cells: must be 1 > +- #size-cells: must be 0 > + > +Each PCIe PHY should be represented by a child node > + > +Required properties For the child node: > +- reg: the PHY ID > +0 - PCIe RC 0 > +1 - PCIe RC 1 > +- #phy-cells: must be 0 > + > +Example: > + pcie0_phy: pcie-phy@1e149000 { > + compatible = "mediatek,mt7621-pci-phy"; > + reg = <0x1e149000 0x0700>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pcie0_port: pcie-phy@0 { > + reg = <0>; > + #phy-cells = <0>; > + }; > + > + pcie1_port: pcie-phy@1 { > + reg = <1>; > + #phy-cells = <0>; > + }; If each phy port doesn't have its own resources, then you don't need child nodes. Just set #phy-cells to 1. > + }; > + > + pcie1_phy: pcie-phy@1e14a000 { > + compatible = "mediatek,mt7621-pci-phy"; > + reg = <0x1e14a000 0x0700>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pcie2_port: pcie-phy@0 { > + reg = <0>; > + #phy-cells = <0>; > + }; > + }; > + > + /* users of the PCIe phy */ > + > + pcie: pcie@1e140000 { > + ... > + ... > + phys = <&pcie0_port>, <&pcie1_port>, <&pcie2_port>; > + phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2"; > + }; > -- > 2.19.1 >