From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8C4E41BF365 for ; Thu, 28 Mar 2019 17:55:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8A5F786E42 for ; Thu, 28 Mar 2019 17:55:38 +0000 (UTC) Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OS7co+DgK0Vt for ; Thu, 28 Mar 2019 17:55:37 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id A011586E68 for ; Thu, 28 Mar 2019 17:55:37 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id h4so8406297wre.7 for ; Thu, 28 Mar 2019 10:55:37 -0700 (PDT) From: Sergio Paracuellos Subject: [PATCH 2/3] staging: mt7621-pci-phy: update bindings documentation Date: Thu, 28 Mar 2019 18:55:30 +0100 Message-Id: <20190328175531.30844-3-sergio.paracuellos@gmail.com> In-Reply-To: <20190328175531.30844-1-sergio.paracuellos@gmail.com> References: <20190328175531.30844-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: neil@brown.name Cc: gregkh@linuxfoundation.org, driverdev-devel@linuxdriverproject.org Device tree has been simplified to use phy-cells instead of using child nodes. Update documentation accordly. Signed-off-by: Sergio Paracuellos --- .../mediatek,mt7621-pci-phy.txt | 44 ++++--------------- 1 file changed, 9 insertions(+), 35 deletions(-) diff --git a/drivers/staging/mt7621-pci-phy/mediatek,mt7621-pci-phy.txt b/drivers/staging/mt7621-pci-phy/mediatek,mt7621-pci-phy.txt index 33a8a698bdd0..0d217d596e8d 100644 --- a/drivers/staging/mt7621-pci-phy/mediatek,mt7621-pci-phy.txt +++ b/drivers/staging/mt7621-pci-phy/mediatek,mt7621-pci-phy.txt @@ -3,45 +3,19 @@ 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 +- #phy-cells: must be <1> for pcie0_phy and must be <0> for pcie1_phy. Example: - pcie0_phy: pcie-phy@1a149000 { + pcie0_phy: pcie-phy@1e149000 { compatible = "mediatek,mt7621-pci-phy"; - reg = <0x1a149000 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>; - }; + reg = <0x1e149000 0x0700>; + #phy-cells = <1>; }; - pcie1_phy: pcie-phy@1a14a000 { + pcie1_phy: pcie-phy@1e14a000 { compatible = "mediatek,mt7621-pci-phy"; - reg = <0x1a14a000 0x0700>; - #address-cells = <1>; - #size-cells = <0>; - - pcie2_port: pcie-phy@0 { - reg = <0>; - #phy-cells = <0>; - }; + reg = <0x1e14a000 0x0700>; + #phy-cells = <0>; }; /* users of the PCIe phy */ @@ -49,6 +23,6 @@ Example: pcie: pcie@1e140000 { ... ... - phys = <&pcie0_port>, <&pcie1_port>, <&pcie2_port>; + phys = <&pcie0_phy 0>, <&pcie0_phy 1>, <&pcie1_phy>; phy-names = "pcie-phy0", "pcie-phy1", "pcie-phy2"; - }; \ No newline at end of file + }; -- 2.19.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel