Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp361080pxf; Wed, 10 Mar 2021 07:50:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs2KnQ0iFTH1xrl0oHLLIpV8bHZIZCv0xlCxO2FdP45zcaVpQqhDrcsK4C2BcKgRFiw4ds X-Received: by 2002:a50:e1c9:: with SMTP id m9mr4236202edl.307.1615391452057; Wed, 10 Mar 2021 07:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615391452; cv=none; d=google.com; s=arc-20160816; b=b86mw1qLj2BdTw4TuGwTS3MG0zOhaCMMIAVw4Q99rOEHyjKlE9w6BBgl6p8Rmr39Rp 1Uh3N9891iyinPI7JvYXSQyIlJnxzJWvZrtEG27XeNyDMz9Jup62T/aCTVpWdUP9EfAp JkYuFJo1Gf5KJkafUdkeyeM1xKM/EOwFaxNKshraOVdhCUK1T3Q67F+WurHDw0tUg+0F cXp9dQ1jZeTnMnvirCpjpxzrUvmAYz+qxWySGkufU2QeyvocHV23JSzS5c5qivDOXKpM 250yprcePD0DmgF5eIbKfUntcVB6zlqUxkmPWXSbTxRy8AZ9s6T9ak9yHVMwacfCZQJ6 DU3Q== 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=GmV7c9XnigC3H3VheytxgHyxh3BaVkoK1YTOnCkRP30WSGdnJz013p/7w/0dNEE6IG 9M/Z1YAICiADJ0th0hi0VwQHMF3Ryw91yAVzK44C83zc24Evq4QzuKrx4Ejc0COaNbWq wEfD2VSAsYGVTgcrY2wKCX4IHU7kUq6bYNYQsvgpVgGxuSRxsV/rhfAhz8R0AkApgLXn pSVL45N7KberfTQppBwaJXLP1iRUfiTOxQebEUrh3oJeG4zngSv3mr+2Dqicexm8DY5h prfQdBpqZ7EG+T7F4+7qy7C7PwCzpRReYkj+WEWiV/B2LUKBxXfsixmLA7ZO/km1lzZQ tSug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZHasaQoU; 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 ga37si8260593ejc.4.2021.03.10.07.50.29; Wed, 10 Mar 2021 07:50:52 -0800 (PST) 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=ZHasaQoU; 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 S233358AbhCJPrN (ORCPT + 99 others); Wed, 10 Mar 2021 10:47:13 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:47806 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbhCJPqo (ORCPT ); Wed, 10 Mar 2021 10:46:44 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12AFkdaA067914; Wed, 10 Mar 2021 09:46:39 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615391199; bh=YL9+WKt8x7qTWljt/hD5/jYLjLVEo7lGeUBHfD8YbNk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZHasaQoUBmQKKBawl+czxqX+u86DGoRaZUVD7E6ytFvW8Ste9Ge9BQ4VKMONgeDiG fqEK9Ysghy5glLisVeTBTSaMeeaWkRA3csqSA0HHgPfMvvgGc4dSK4DzFj9pGS5ZGs dSBQUy1+iuxXPvd4wKloeEUink7ITTqm2Zlv2Z5w= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12AFkdnZ032193 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 09:46:39 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 10 Mar 2021 09:46:39 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) 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; Wed, 10 Mar 2021 09:46:39 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12AFk2KZ066370; Wed, 10 Mar 2021 09:46:37 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v6 11/13] dt-bindings: phy: phy-cadence-sierra: Add binding to model Sierra as clock provider Date: Wed, 10 Mar 2021 21:15:56 +0530 Message-ID: <20210310154558.32078-12-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310154558.32078-1-kishon@ti.com> References: <20210310154558.32078-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