From patchwork Mon Feb 22 11:23:06 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: 385756 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1184300jap; Mon, 22 Feb 2021 03:25:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPDcwj4LMmzS63XjdIiDxnSSpFIviexAgd5n1ov/GuTLzBbijEdKa9xJwOQ418792eN7Wq X-Received: by 2002:a17:906:7f84:: with SMTP id f4mr20889699ejr.60.1613993141336; Mon, 22 Feb 2021 03:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613993141; cv=none; d=google.com; s=arc-20160816; b=hDX/I9AjcfS3Vdu7ed2uKsE5NFU44XgZgjMEDYdgkWpRKtQN2kT1I5C+T1VBuPmWW5 7sq5oNOOaCaH0MIfMezDisF/suc4Etx86bUzG5KjvcIcVbwG95KUdOxfrp3Gua7o+0EQ BkZqJZyB1hOULpuF4hj1uvzDPaOmCNQohQuRdIZTzX60wc8a6UWXOy+A8FrSFWM6alwy tgCA4OK7BWIKPF+0lJ7LarrWLGxgc2XqNVuOM8HcFxBP4BHCcuk+mtQvq3qeghNrrZ1N P66GtViwhiT1WelL5DFRxvz6umiLBcAV298+0Md3hsetaMtakwLWyLf2P30yNLL/uH4C N6iQ== 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=NLb9VikzuEC/eyCmeIli0+Vydm/e4xaj3++s8WQCSn4=; b=wG45jMDTJfx+Fba2vCB5GZnltlViG7uCbpR6n2iZcaMHa0v1gGC/w59F+L32kY4GXs N7oCiQnidVJLmt1swirm70wbbcZJ2xmu/kGU/T13zanVL5TyK60vGxrXuteMbrfCDddZ 0I01YZXP/nB1p2iu8DTSlFTiq4Z430M526AwxriVntdHNjF13fEB3jLEkvAzT5ttJs9G 7lZ74M/tYkLvtoTN4K088C7MER9Yo/tp3h1b1Exd8L8gNKO/S57Uau+BPb+b5KPi2k12 7RAxSjlXQqJhLOBce4jFN8G8ahpmMy9Yku2nysKqEbwTUuvkGwz8LC4H9msi4W1fM813 Hl2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FIdGd74b; 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.41; Mon, 22 Feb 2021 03:25:41 -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=FIdGd74b; 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 S230432AbhBVLY4 (ORCPT + 6 others); Mon, 22 Feb 2021 06:24:56 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59000 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbhBVLYt (ORCPT ); Mon, 22 Feb 2021 06:24:49 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11MBNbmn035081; Mon, 22 Feb 2021 05:23:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613993017; bh=NLb9VikzuEC/eyCmeIli0+Vydm/e4xaj3++s8WQCSn4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FIdGd74bL66F3bfU6zdNDXC1NOOhvUaNVjCo/GCMp2Djh9TOBrMMrjTZnlXzt9tIG 5WRxEi5LB3OOyBAXEBidWoZiurHs7MTdnbEiUN495YrbDsIhzrkc5W3GJgQI5bBeFA UoEoGfsiAL+cDY50hD5errO2Ey9I30zv3k+xEayU= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11MBNb62050208 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Feb 2021 05:23:37 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE104.ent.ti.com (10.64.6.25) 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:36 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) 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:36 -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 11MBNFDa088010; Mon, 22 Feb 2021 05:23:34 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Peter Rosin , Swapnil Jakhade CC: , , Subject: [PATCH v2 1/9] dt-bindings: phy: ti, phy-j721e-wiz: Add bindings for AM64 SERDES Wrapper Date: Mon, 22 Feb 2021 16:53:06 +0530 Message-ID: <20210222112314.10772-2-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 bindings for AM64 SERDES Wrapper. Signed-off-by: Kishon Vijay Abraham I --- .../bindings/phy/ti,phy-j721e-wiz.yaml | 10 ++++++--- include/dt-bindings/phy/phy-ti.h | 21 +++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 include/dt-bindings/phy/phy-ti.h -- 2.17.1 diff --git a/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml b/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml index c33e9bc79521..bf431f98e6ea 100644 --- a/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml +++ b/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml @@ -12,9 +12,10 @@ maintainers: properties: compatible: - enum: - - ti,j721e-wiz-16g - - ti,j721e-wiz-10g + oneOf: + - const: ti,j721e-wiz-16g + - const: ti,j721e-wiz-10g + - const: ti,am64-wiz-10g power-domains: maxItems: 1 @@ -42,6 +43,9 @@ properties: "#reset-cells": const: 1 + "#clock-cells": + const: 1 + ranges: true assigned-clocks: diff --git a/include/dt-bindings/phy/phy-ti.h b/include/dt-bindings/phy/phy-ti.h new file mode 100644 index 000000000000..ad955d3a56b4 --- /dev/null +++ b/include/dt-bindings/phy/phy-ti.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * This header provides constants for TI SERDES. + */ + +#ifndef _DT_BINDINGS_TI_SERDES +#define _DT_BINDINGS_TI_SERDES + +/* Clock index for output clocks from WIZ */ + +/* MUX Clocks */ +#define TI_WIZ_PLL0_REFCLK 0 +#define TI_WIZ_PLL1_REFCLK 1 +#define TI_WIZ_REFCLK_DIG 2 + +/* Reserve index here for future additions */ + +/* MISC Clocks */ +#define TI_WIZ_PHY_EN_REFCLK 16 + +#endif /* _DT_BINDINGS_TI_SERDES */