Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp210377ybk; Thu, 14 May 2020 21:33:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg/6ZNjVQfyDnjeUsJBVLiZatTBiF+38MsaN+nK6MW5LdJTuNBaBkd7IimB9JcoXFOxb9/ X-Received: by 2002:a17:906:278e:: with SMTP id j14mr1191895ejc.270.1589517222302; Thu, 14 May 2020 21:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589517222; cv=none; d=google.com; s=arc-20160816; b=lB3j+XWSKfsDuul6AUXSQbWxPFTTVkkW49559a0caJxY+yTKPusimy2uyNGPZFNjSe udA6ONjWen1zVaW4ooycgOnxyGo89X9Dt6xh1SqOizA4S1+Wfy2aoW92SQlE/5Z1MafM 6kkT7Uot48Zl0FAApQh6oiGD8V7c/REVSHLDELcSrO3ScYB/SWfxBfB+7EsD4Ye1s2JX z7N4la5j7NQm4bVMSyd+CaOhIBQSDt0ksErNmU6cJm3ibM+//QcBwDfQuH5p2upC7ACv Wx6xyGXX6B5QMpotcBxfol5+CidD3VeUb4xpda8rHo3r6G7cIulO0P/lI5VAeFNIFDmX NyTA== 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=5vhzTT1cdAjnN+eUE/aqpNTv4ELr1bRjZICbPGlaqIc=; b=Rou7gM8guYdDnky//79DATEAkkD8vCJQZfVTEFtwvqUoSdR4fLcVoiu6c51gCLn4DD Sh16Gt2/hSYPJM00DG5uguzoW095Fu9drkH3gLf8/v2ZHCTqhI4k8B/eJcmSNIEUn56N 3jQGlLXrzu8ZnXoAwG5SNxRlD2k4IzcBpJCdRqBDdxt8S3ljnVTfhyz+kTnqBMtqbitk kh4BvufcANmkSGZCmKzLpuigZ3rr7VboERu8MRd3RfzglORWHGsSnxDbrGJfz+8yhdYR txHFrdZfWnB8Vh/dRdi3iemZoPUToBy/MTS0da63yXZieFnxCsu4qXLiMR39U+cghvFR 2nNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a17si640452edj.251.2020.05.14.21.33.18; Thu, 14 May 2020 21:33:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726266AbgEOEbr (ORCPT + 99 others); Fri, 15 May 2020 00:31:47 -0400 Received: from mga09.intel.com ([134.134.136.24]:14242 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgEOEbq (ORCPT ); Fri, 15 May 2020 00:31:46 -0400 IronPort-SDR: PVqaa9J5SkiXEjnVubp/wPvDXPA0LUoEdLG0ATawB9bqd+lGZL+1xLut+zvwiW+Wq79HKn+eoU JtFGz/liB0Jw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2020 21:31:45 -0700 IronPort-SDR: Y9639QSYMY9XW+SvsRW2xELnelMOfNkqPILy5ScCeLutMDsGv9kIYUDYuaJnRGv+YqtnwOGwbk j//MJ36myR6A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,393,1583222400"; d="scan'208";a="263068085" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga003.jf.intel.com with ESMTP; 14 May 2020 21:31:43 -0700 From: Dilip Kota To: linux-kernel@vger.kernel.org, kishon@ti.com, vkoul@kernel.org, devicetree@vger.kernel.org Cc: 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 v8 2/3] dt-bindings: phy: Add YAML schemas for Intel ComboPhy Date: Fri, 15 May 2020 12:30:25 +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 v8: No Change. Changes on v7: No Change. Changes on v6: Add Reviewed-by: Rob Herring .../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