Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1364078pxf; Fri, 19 Mar 2021 05:48:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiLImeEkZkgdHbjy7WDMe6x+mWrWvNjmRLoHeOLw01UTELO8JFypuvbX0TEEn3I2AXI5up X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr9139887edc.22.1616158090938; Fri, 19 Mar 2021 05:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616158090; cv=none; d=google.com; s=arc-20160816; b=puqlFjOBWJxoPHSSBXHNvsL+2jOlIhe01S3yP9z1X0yFUNVfIWHccOVgijqqyQfjqm ubEzWejA+dFTSYMhWQQD4zr1kyytj/oAisZ6TK5DYElw3seqnaeVF6WvfWcElO8Ar6+d SOD1P+jTXgGwDyNbKvj6s5rYQjZZNdbxpQC2J5Ae1qkGPZ2KgeRfjY/H5H07W3jeeFmD 5Z+hDtjhSB6CIsiYvRmLspldZ5EIuN4c8Mf8s9tZb1dkC4Mk+TTgkqboQtHoIQrNTkKf UOdKuWZIiiTbKpAHiiXbODrVHHEbIwqZGUwwlOOBdIvVBOsjZAoTJq1LjPa4DPH25Tdx 17HQ== 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=YL9+WKt8x7qTWljt/hD5/jYLjLVEo7lGeUBHfD8YbNk=; b=wGdL4in312uEv4V2ymbYTsdi3w58dhYHg4ODJNgrS0Rkk6kuzOVr6nhIMxQh2SMbAH SSJsv574q4TgpsJuSUhC852jFKUOkRNFdUk1Br5FNUflOp5F2QOJDHYhq37O8eMpfdG8 +i8GPi+CrOaIT+IeRG5lEgh5UrPnPfJV/IbllTeEWZkLGi4+vwFWQWGCMSr/sQ/bbt6g CMB1JcuesHkCqpfCc7nQqLWJszeIO3xleUhRQvLzLvTgWMvdapeFQZeUve1jReWOezOu QA5yewmW6jCLrlZyXJ42jAYWoX+utSsLWCbbTbE3EgX4zbb1czgLCC7XeFsvFHymBia1 z4Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=J1ZcAfJt; 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=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 k1si4038278ejj.10.2021.03.19.05.47.47; Fri, 19 Mar 2021 05:48:10 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=J1ZcAfJt; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbhCSMo7 (ORCPT + 99 others); Fri, 19 Mar 2021 08:44:59 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46304 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbhCSMoZ (ORCPT ); Fri, 19 Mar 2021 08:44:25 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12JCgHhS108071; Fri, 19 Mar 2021 07:42:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1616157737; bh=YL9+WKt8x7qTWljt/hD5/jYLjLVEo7lGeUBHfD8YbNk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=J1ZcAfJteR09lNq0bafyUx8bBBE05cUVKE269trNFtzRocx18vR9UYorNhljzTAYx lAUhaHkxo5t3EBNeER/fdgjquDisg3eykkmWUlCkazCBW65DcBDnq2achEx3SWVTZI j6yaC3AyheMtpG7Wm/1dMGKV2NWJbrXtJD+8i7+0= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12JCgHUr086496 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Mar 2021 07:42:17 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 19 Mar 2021 07:42:16 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Fri, 19 Mar 2021 07:42:17 -0500 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 12JCfTfC011913; Fri, 19 Mar 2021 07:42:13 -0500 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , , Lokesh Vutla Subject: [PATCH v7 11/13] dt-bindings: phy: phy-cadence-sierra: Add binding to model Sierra as clock provider Date: Fri, 19 Mar 2021 18:11:26 +0530 Message-ID: <20210319124128.13308-12-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210319124128.13308-1-kishon@ti.com> References: <20210319124128.13308-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add #clock-cells binding to model Sierra as clock provider and include clock IDs for PLL_CMNLC and PLL_CMNLC1. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/phy/phy-cadence-sierra.yaml | 17 ++++++++++++++++- include/dt-bindings/phy/phy-cadence.h | 4 ++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml index d210843863df..84383e2e0b34 100644 --- a/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml +++ b/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml @@ -26,6 +26,9 @@ properties: '#size-cells': const: 0 + '#clock-cells': + const: 1 + resets: minItems: 1 maxItems: 2 @@ -49,12 +52,24 @@ properties: const: serdes clocks: - maxItems: 2 + minItems: 2 + maxItems: 4 clock-names: + minItems: 2 items: - const: cmn_refclk_dig_div - const: cmn_refclk1_dig_div + - const: pll0_refclk + - const: pll1_refclk + + assigned-clocks: + minItems: 1 + maxItems: 2 + + assigned-clock-parents: + minItems: 1 + maxItems: 2 cdns,autoconf: type: boolean diff --git a/include/dt-bindings/phy/phy-cadence.h b/include/dt-bindings/phy/phy-cadence.h index 4a5ea52a856f..4652bcb86265 100644 --- a/include/dt-bindings/phy/phy-cadence.h +++ b/include/dt-bindings/phy/phy-cadence.h @@ -13,4 +13,8 @@ #define CDNS_TORRENT_REFCLK_DRIVER 0 +/* Sierra */ +#define CDNS_SIERRA_PLL_CMNLC 0 +#define CDNS_SIERRA_PLL_CMNLC1 1 + #endif /* _DT_BINDINGS_CADENCE_SERDES_H */ -- 2.17.1