Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp102093ybb; Thu, 2 Apr 2020 22:07:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLvDPCeSorpJ/2bF6Wq5cxMNwc8WJLrhc9HtqZOMff1dHT5eTmikdMsujFz+mlWKxp1Nr4A X-Received: by 2002:aca:4403:: with SMTP id r3mr1751348oia.84.1585890425403; Thu, 02 Apr 2020 22:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585890425; cv=none; d=google.com; s=arc-20160816; b=udyNnN4ZKdcGdBDJwMeVaCjrwtCds0D7kM94Ku3i943IVtOEQSrSNcwD1JLjp/Je+c +MTChIDMTW4qS+XEAkiAXqGSPdH+Do6o2JVb2VUPikRQKHXAzdXLc8Y3DvtkfgrK7OYN vJibmP5mij0J84wV2JnOWmfXnb4iaB9ILHRtAO1oEkFh2OZYKzSjcjeQqYGpjSRmU4o8 HUuRqP1yAYgoFGXn0oAxFgbMuHDC9EOjn0QI8yN22+CZdGmgwHfiFgT17oSZPBtNwRGw gVkdqbAGtnQK+6ds7teYhhyclwmfKgzjBBMRIO+FHNfPNUx/sC7lNZ9GbBZsg8Dyfl23 hRNA== 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:references :in-reply-to:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=FZMeCO6SlfLkeZn1+3bEE8lP806EZe9QQydo0yRQUX8=; b=Wvd5UV1IxUtaPWQ1ijAwQzLIjOsvYs+rxVoUraehJbbP+ADqEUR+CVPcGTZerWlkTb n0F/4Rv4s/7RP7xIOcoAcBECp1eFNwcXYTXEhzuWzqjgzdIcgaNnAwc+Q6LIqQKo1ihT GaYYALaQyai1TtXQYEN2SV0dpfTM6PM5UbugtPj5h80kTF5CeEQt9cbHJRUv7O4+YlZq hEc5vcudf0UWIf8hZaTepaWy1UfFJv+IbKIsPs19QVex648e1v0Nu0UYfYFHrNSl4/Vc SDkmoYiSnkMBFSugAcaoG7II1xxFedim4ZCzLHUntIUg4N5/ANb9fAcFpD8/NRGfI64D PF/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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si2927113oop.51.2020.04.02.22.06.53; Thu, 02 Apr 2020 22:07:05 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732763AbgDCFE4 (ORCPT + 99 others); Fri, 3 Apr 2020 01:04:56 -0400 Received: from mga01.intel.com ([192.55.52.88]:10692 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbgDCFEy (ORCPT ); Fri, 3 Apr 2020 01:04:54 -0400 IronPort-SDR: 1+iHnxmtTph8z6hhmmlRItKaHOb2gWfo+7tg+s+u9NH8CnFJg0TTN2NjQct4aStKiae05YjRkk tku/fz8Tuljw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2020 22:04:54 -0700 IronPort-SDR: l7ntcZVx4T7WLfLb53XZhNJx6CbwUKj82ep0Ptk4ZgpuYCagHij1Ch8tzIxOW1o8q9eKxCkK26 pVT1w5UnSZDg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,338,1580803200"; d="scan'208";a="329050127" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga001.jf.intel.com with ESMTP; 02 Apr 2020 22:04:51 -0700 From: Dilip Kota To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: kishon@ti.com, robh@kernel.org, andriy.shevchenko@intel.com, cheol.yong.kim@intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com, yixin.zhu@intel.com, Dilip Kota Subject: [PATCH v6 3/4] dt-bindings: phy: Add YAML schemas for Intel ComboPhy Date: Fri, 3 Apr 2020 13:04:10 +0800 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ComboPhy subsystem provides PHY support to various controllers, viz. PCIe, SATA and EMAC. Adding YAML schemas for the same. Signed-off-by: Dilip Kota Reviewed-by: Rob Herring --- Changes on v6: Add Reviewed-by: Rob Herring Changes on v5: Add changes as per Rob Herring inputs: Use include/dt-bindings/phy/phy.h values to set intel,phy-mode. Move children node properties to parent node and remove children node completely. Changes on v4: No Change. Changes on v3: Add include/dt-bindings/phy/phy-intel-combphy.h for phy modes. Add SoC specific compatible "intel,combophy-lgm". Correct the nodename pattern. clocks description removed and add maxItems entry. Remove "simple-bus" as it expects minimum one address cell and size cell in the children node. Call devm_of_platform_populate() in the driver to perform "simple-bus" functionality. Changes on v2: Add custom 'select' Pass hardware instance entries with phandles and remove cell-index and bid entries Clock, register address space, are same for the children. So move them to parent node. Two PHY instances cannot run in different modes, so move the phy-mode entry to parent node. Add second child entry in the DT example. .../devicetree/bindings/phy/intel,combo-phy.yaml | 101 +++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/intel,combo-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/intel,combo-phy.yaml b/Documentation/devicetree/bindings/phy/intel,combo-phy.yaml new file mode 100644 index 000000000000..347d0cdfb80d --- /dev/null +++ b/Documentation/devicetree/bindings/phy/intel,combo-phy.yaml @@ -0,0 +1,101 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/intel,combo-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel ComboPhy Subsystem + +maintainers: + - Dilip Kota + +description: | + Intel Combophy subsystem supports PHYs for PCIe, EMAC and SATA + controllers. A single Combophy provides two PHY instances. + +properties: + $nodename: + pattern: "combophy(@.*|-[0-9a-f])*$" + + compatible: + items: + - const: intel,combophy-lgm + - const: intel,combo-phy + + clocks: + maxItems: 1 + + reg: + items: + - description: ComboPhy core registers + - description: PCIe app core control registers + + reg-names: + items: + - const: core + - const: app + + resets: + maxItems: 4 + + reset-names: + items: + - const: phy + - const: core + - const: iphy0 + - const: iphy1 + + intel,syscfg: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: Chip configuration registers handle and ComboPhy instance id + + intel,hsio: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: HSIO registers handle and ComboPhy instance id on NOC + + intel,aggregation: + type: boolean + description: | + Specify the flag to configure ComboPHY in dual lane mode. + + intel,phy-mode: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Mode of the two phys in ComboPhy. + See dt-bindings/phy/phy.h for values. + + "#phy-cells": + const: 1 + +required: + - compatible + - clocks + - reg + - reg-names + - intel,syscfg + - intel,hsio + - intel,phy-mode + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + combophy@d0a00000 { + compatible = "intel,combophy-lgm", "intel,combo-phy"; + clocks = <&cgu0 1>; + #phy-cells = <1>; + reg = <0xd0a00000 0x40000>, + <0xd0a40000 0x1000>; + reg-names = "core", "app"; + resets = <&rcu0 0x50 6>, + <&rcu0 0x50 17>, + <&rcu0 0x50 23>, + <&rcu0 0x50 24>; + reset-names = "phy", "core", "iphy0", "iphy1"; + intel,syscfg = <&sysconf 0>; + intel,hsio = <&hsiol 0>; + intel,phy-mode = ; + intel,aggregation; + }; -- 2.11.0