Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1411407ybf; Thu, 27 Feb 2020 10:26:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwoulXugtoZvjRXPEkEJfK8KKmTAwbkayYLcNYPx7+79S+N2I+UwVevgEtXF5ZOSTvx8izj X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr204560oti.32.1582828003319; Thu, 27 Feb 2020 10:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582828003; cv=none; d=google.com; s=arc-20160816; b=S36h6FJc/b64IvwDrjLb+yDdHq59UA6ymKh3+X1CpIVWEeuRPnKGIEeWQrcjqodb2Y Uv4Acg32RiYyI7kEZyTmKZPTqUDN96jzg9U3EHSLW6qOOBDCaIejjOmM8tUz+gF3f5y/ J3/H3+QScska/nfW8dx67BtLQV0IW41UjblK9j1LTRp/vNBgSKJemmjEqon1/bUkunqb libDhQiguzMdvj7l3pKu8Xa04OJ4mIhpv69id6HiPT6Rjfpp1K8D8k40IZa/3dPoUtni 5CPoSyzKk43PfYSWe35CmaZAqs1ypN2PY5Pfjd+z6i0FC/lUcBjZNBhRN2l7heTYcQkz CyZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=LDIGmfU4KuiUwDBkr2MnNCZIuHod1kdkylPLE3ahRw0=; b=kM2ywOJGFInHNNJfpHvu/3nZY8pJAbSv+LQRUgQ4s5TDSb/6bkohPKsiIFN8JG562E wHy5A4WPt0neMyuE9KWrdEgg+kmeZBvGebZvpgntgGJnFV7flwV7PZKSkjOUx8JCqyzj spRfcdrFwCKiqACpde0TWXPoB9KinNDKrmDEaJQLkNLxoiorKOZwMZBC4BwGJMS4q/Op H+LwaRLJthRcMX/GLfZU7h2WkzFTysDvGyxk9ZZxwO9UK4l+QFELsVarYsMv9FNJho1x 1XZl/Z5zRQ8UjdI0a3rHob5RDirhS9Sbu2DdwQZ8WqdmlXbPPxNQqWK8yLGJv9fFcmHF MilA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si293057oih.217.2020.02.27.10.26.31; Thu, 27 Feb 2020 10:26:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730822AbgB0SWh (ORCPT + 99 others); Thu, 27 Feb 2020 13:22:37 -0500 Received: from foss.arm.com ([217.140.110.172]:56696 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730810AbgB0SWg (ORCPT ); Thu, 27 Feb 2020 13:22:36 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7828C30E; Thu, 27 Feb 2020 10:22:35 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.25]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CAC2A3F73B; Thu, 27 Feb 2020 10:22:33 -0800 (PST) From: Andre Przywara To: Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maxime Ripard , Robert Richter , soc@kernel.org, Jon Loeliger , Mark Langsdorf , Eric Auger , Will Deacon , Catalin Marinas Subject: [PATCH v2 08/13] dt-bindings: phy: Convert Calxeda ComboPHY binding to json-schema Date: Thu, 27 Feb 2020 18:22:05 +0000 Message-Id: <20200227182210.89512-9-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200227182210.89512-1-andre.przywara@arm.com> References: <20200227182210.89512-1-andre.przywara@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Calxeda ComboPHY binding to DT schema format using json-schema. There is no driver in the Linux kernel matching the compatible string, but the nodes are parsed by the SATA driver, which links to them using its port-phys property. Signed-off-by: Andre Przywara --- .../bindings/phy/calxeda-combophy.txt | 17 ------- .../bindings/phy/calxeda-combophy.yaml | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/calxeda-combophy.txt create mode 100644 Documentation/devicetree/bindings/phy/calxeda-combophy.yaml diff --git a/Documentation/devicetree/bindings/phy/calxeda-combophy.txt b/Documentation/devicetree/bindings/phy/calxeda-combophy.txt deleted file mode 100644 index 6622bdb2e8bc..000000000000 --- a/Documentation/devicetree/bindings/phy/calxeda-combophy.txt +++ /dev/null @@ -1,17 +0,0 @@ -Calxeda Highbank Combination Phys for SATA - -Properties: -- compatible : Should be "calxeda,hb-combophy" -- #phy-cells: Should be 1. -- reg : Address and size for Combination Phy registers. -- phydev: device ID for programming the combophy. - -Example: - - combophy5: combo-phy@fff5d000 { - compatible = "calxeda,hb-combophy"; - #phy-cells = <1>; - reg = <0xfff5d000 0x1000>; - phydev = <31>; - }; - diff --git a/Documentation/devicetree/bindings/phy/calxeda-combophy.yaml b/Documentation/devicetree/bindings/phy/calxeda-combophy.yaml new file mode 100644 index 000000000000..995d0efe280d --- /dev/null +++ b/Documentation/devicetree/bindings/phy/calxeda-combophy.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/calxeda-combophy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Calxeda Highbank Combination PHYs binding for SATA + +description: | + The Calxeda Combination PHYs connect the SoC to the internal fabric + and to SATA connectors. The PHYs support multiple protocols (SATA, + SGMII, PCIe) and can be assigned to different devices (SATA or XGMAC + controller). + Programming the PHYs is typically handled by those device drivers, + not by a dedicated PHY driver. + +maintainers: + - Andre Przywara + +properties: + compatible: + const: calxeda,hb-combophy + + '#phy-cells': + const: 1 + + reg: + maxItems: 1 + + phydev: + description: device ID for programming the ComboPHY. + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - maximum: 31 + +required: + - compatible + - reg + - phydev + - '#phy-cells' + +additionalProperties: false + +examples: + - | + combophy5: combo-phy@fff5d000 { + compatible = "calxeda,hb-combophy"; + #phy-cells = <1>; + reg = <0xfff5d000 0x1000>; + phydev = <31>; + }; -- 2.17.1