Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp317255ybk; Fri, 15 May 2020 01:17:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlZiTW/8fuHPPsDedfq49BAUPSJ86S7rUB2QasOGiZdgEhRs65kCz0ctsd6odGtUkU66NJ X-Received: by 2002:a17:906:b54:: with SMTP id v20mr1754981ejg.50.1589530668190; Fri, 15 May 2020 01:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589530668; cv=none; d=google.com; s=arc-20160816; b=eUe4SzLiwCyAaXbkQ3RUL3+Ghn+V+ihoKyLOCskN+xXMP4S9lw2+iJ+uTMhE7/NxVI kI7gBU3zgBBdDEzZtBwD5v/MhcJaU8UpGZ7jj5htJ2KwxunZ96piu6qJK6lGvla31H9y MPqbWvHFM5DQ1jdLo6ZBQL+tw/k08u3qjzZxSmnLRDNC3ZGWjtmIcoDsb9MELWSnumV1 +eGtO2nTipwWkdVh/cD3oRmkMOaJSA+5FYEU94to8mLFMBrYd8faxuP4BWL7d8Rk0x6H /GPvlSJ9AIFsbgcwgkk5UCGJMdcbtHXO6BCSVImYdEfRuVMC6orC3Do7eg0IzzLC9LXm haAg== 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=RDjCoEYt2EsDtHTGgRY24YXsp3mogG2v5754AKP8Fe9995yZ14hep+xCvWRWYMx9bo u5tPvdLUqpC9Os9P4JVfWPfn4mHjJ2h6h+eIJbnuDg4+1QvOJjDcaynGBPyYyBhyO7w6 6g/MVZUmJCGjtuY7j4K4NSkcLMUtpQK2iKPYaHyNt+7tHbCmSDCqsoXbAze5VnodywZf 9658gPsSMD3EuvVN5SyTF4GerrpQgbfAfa5BhEWd6w7hT3cZGdV+pQ0+IgK43VoLoXuc U0s4KzJHkFbyego2pVCvCDAvcXMk6ylvT8IJurhpnjrHkHvRlqfb+oz5HIo0LNIRm7bt WHdQ== 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 s7si890321ejs.425.2020.05.15.01.17.24; Fri, 15 May 2020 01:17:48 -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 S1727989AbgEOIPO (ORCPT + 99 others); Fri, 15 May 2020 04:15:14 -0400 Received: from mga11.intel.com ([192.55.52.93]:52724 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbgEOIPO (ORCPT ); Fri, 15 May 2020 04:15:14 -0400 IronPort-SDR: ttr9+QmsKt5wMLd9Zf3UScjdObPJWuo2hWTebHKifThWpuEx43S4cOPE4es++49eTV+33vfRJx bNrwT1Lc/JHw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2020 01:15:13 -0700 IronPort-SDR: ou/FD0NT02qbo3DhzPQ73wze0yOSOZtsmiJSI9j+eHX1byonbtYVRsYBwf6SB0As8QT4B2qnEK jYp684mV2jMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,394,1583222400"; d="scan'208";a="464648519" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by fmsmga005.fm.intel.com with ESMTP; 15 May 2020 01:15:09 -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: [RESEND PATCH v8 2/3] dt-bindings: phy: Add YAML schemas for Intel ComboPhy Date: Fri, 15 May 2020 16:13:34 +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