From patchwork Mon Feb 22 11:23:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 385754 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1184290jap; Mon, 22 Feb 2021 03:25:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1Xc+ihXi1XLi/iMCT1XiL7YrJ6LV9xhN2ndCSMgi3oOIltkMbVC0l0W0leZPCmdlizBOu X-Received: by 2002:a17:906:3c1:: with SMTP id c1mr20074239eja.428.1613993140587; Mon, 22 Feb 2021 03:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613993140; cv=none; d=google.com; s=arc-20160816; b=lBYnPQOcDPnADKQsrkc6/Pnf5FmIIj6TJQvi8+r0+A3f2vDhqxE0OTc37qpfkWj/5a lq27biDyeRdV9iWuuEkJg6lj0gohQ7ckU8/QuBwLRROdf4aZwdhBIUYAx1nposF3YFMV VeFc0W71TZPDtBv4ILYcevAx/BL09GM358YninHmTAlUiYgJ+ehyCsml0d9HYASU99Ii DrDGYZ13lEZzgZs4p88819cNHWrgSm6tZp02l79nLhmAk6uCUcEDA6jeeNpBwFehSCIe 0JqBRjRduo45as8ioEJjJAQJf+c0lPPH2ubEmS+2TO9IUqZElRtSh5E0uQMx0QFSaHnr cP4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XLr9OoErgvpAWzGsepng7zsPazqJ3thUGn3RfXKhxtc=; b=F7eBTCQqMp4HJ2IDBHgca7h09BxWBu/fL1a1WYA0obsD8I9wOhSPWB+MWva3Vul/jv bvhSYppdmDbFt2vH78mwho89IqrH80tBFedZceDV9dsxHNpvYU27n/jg2EprDuSKHv/w OUrvxLjIcv8AC0iBW9J98b+jbWPdyqzHu5K9c0JS6pG43BFFzGYaw+5EwRSC7b9omoM1 Afa7vHjLSsbck6qQ3VbpH/XvpLtjeLzF737/ET4wPFk8XrMtPCFVCV+zF00PGQ0iol95 lAbeC1dGD6uOMoZd2G3r1dk5fnj7dF48c/CZd4zmeLUjBSVIjHic5mdaYFYOfgoghRP0 VEHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EzF+ajnu; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si11433091ejj.217.2021.02.22.03.25.40; Mon, 22 Feb 2021 03:25:40 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EzF+ajnu; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230425AbhBVLYw (ORCPT + 6 others); Mon, 22 Feb 2021 06:24:52 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59004 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbhBVLYs (ORCPT ); Mon, 22 Feb 2021 06:24:48 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11MBNenB035092; Mon, 22 Feb 2021 05:23:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613993020; bh=XLr9OoErgvpAWzGsepng7zsPazqJ3thUGn3RfXKhxtc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=EzF+ajnuI7gvrcQEyh11UMUusewZPPcDPVf6yXHjlWbNm413Vvz4eXuZxaohdz4sp MZWiTnFeZ+kMOKZXa5KduGt6LbAf5X36LninNP5xmfSCFdcbkbGtvDM8r6BXEZO0Bf 5a4tWfDBULlNl2AF+KCtBUm97cHNUXy5zigVdcDc= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11MBNeWt117536 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Feb 2021 05:23:40 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 22 Feb 2021 05:23:39 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 22 Feb 2021 05:23:39 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 11MBNFDb088010; Mon, 22 Feb 2021 05:23:37 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Peter Rosin , Swapnil Jakhade CC: , , Subject: [PATCH v2 2/9] dt-bindings: phy: cadence-torrent: Add binding for refclk driver Date: Mon, 22 Feb 2021 16:53:07 +0530 Message-ID: <20210222112314.10772-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210222112314.10772-1-kishon@ti.com> References: <20210222112314.10772-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add binding for refclk driver used to route the refclk out of torrent SERDES. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/phy/phy-cadence-torrent.yaml | 20 ++++++++++++++++--- include/dt-bindings/phy/phy-cadence-torrent.h | 2 ++ 2 files changed, 19 insertions(+), 3 deletions(-) -- 2.17.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml index e266ade53d87..4608599a31d8 100644 --- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml +++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml @@ -28,13 +28,27 @@ properties: '#size-cells': const: 0 + '#clock-cells': + const: 1 + clocks: - maxItems: 1 + minItems: 1 + maxItems: 2 description: - PHY reference clock. Must contain an entry in clock-names. + PHY reference clock for 1 item. Must contain an entry in clock-names. + Optional Parent to enable output reference clock. clock-names: - const: refclk + minItems: 1 + items: + - const: refclk + - const: phy_en_refclk + + assigned-clocks: + maxItems: 3 + + assigned-clock-parents: + maxItems: 3 reg: minItems: 1 diff --git a/include/dt-bindings/phy/phy-cadence-torrent.h b/include/dt-bindings/phy/phy-cadence-torrent.h index e387b6a95741..3c92c6192493 100644 --- a/include/dt-bindings/phy/phy-cadence-torrent.h +++ b/include/dt-bindings/phy/phy-cadence-torrent.h @@ -10,4 +10,6 @@ #define TORRENT_SERDES_EXTERNAL_SSC 1 #define TORRENT_SERDES_INTERNAL_SSC 2 +#define CDNS_TORRENT_REFCLK_DRIVER 0 + #endif /* _DT_BINDINGS_TORRENT_SERDES_H */