Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp715426rwn; Thu, 8 Sep 2022 07:52:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR7DOl0fyQAukJ84XEkIf1C20XiXWjUjpTSeV9HBYGIbmvn/54KBRqCLfotw4bTwbxiyxp6S X-Received: by 2002:a65:6e0e:0:b0:434:59e0:27d3 with SMTP id bd14-20020a656e0e000000b0043459e027d3mr7903833pgb.185.1662648761766; Thu, 08 Sep 2022 07:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662648761; cv=none; d=google.com; s=arc-20160816; b=qBCKjur+vTl8zgUcABTvEfgFNEZ0N1y9n+1JjSOvLa5/x4V4TwvrhdxKKRuiYlsr0S ifcImcvblL4pmjzwM2yS4uMewPbjhDwrLWzn3IwSjUUMpj58xB1FfyNL9J++9Mdoigiz bzpeAKwT98ao3CEo3tSD+mDFlnhiZEBTKw3ZPpmw+tW9JGF3yc6gutmicjNGt2kTWXTO KGeVoTRPTheku1/0/2w7Jkf8CsPSgLkpb2F/snYrC6kDoh5KsXgiXYgXt1ZCBFCfg2gj FSH8OUkur2ia4qpLKP9bnNLWhAkpqlTnUcebTVeZeTp7hpzmNNWfrvLcKIxNFBSoxOFR F0DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=byPDMuCSCcdYlknO1+3GqpCaYxtqzI8KcvVS/+Np3us=; b=Ta9H+DyL39Z92IlCbtNEsZNOmdIfG5KIlCWGJ0L3JgayD1YvvjWvS4kJRHKf8IVel3 UhGbhI6gyBcPVXuT4z/EBrXWvrkaoAeAHMZie2hcKynJvYHrYs9npUF6RCGuadd804sj jTxy6PjYFgbZubY01fwDF4XGuiYtGTv6Qc6a1x+TX3eWU78kLnpAoBO02uu9Zjw37iwB Y33m6DlQwSpYbmIvs9A9fUT9umioYvqR0oic890ZWA4c28Yl4I5xRy0Q+fJgopDP7GKS 8ZtO6SYb3CXEmFYDBUO5KR0zUShkSKoAOBC1c45EQukGRCVa3U+oFojWM03ktVZiAXNS TkvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=TqLEULkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a654183000000b0042a0dab10aasi18317523pgq.482.2022.09.08.07.52.30; Thu, 08 Sep 2022 07:52:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=TqLEULkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232120AbiIHOhm (ORCPT + 99 others); Thu, 8 Sep 2022 10:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232641AbiIHOhf (ORCPT ); Thu, 8 Sep 2022 10:37:35 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04420F56C2; Thu, 8 Sep 2022 07:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662647854; x=1694183854; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TbYbqd7aTZtP9BqkPjjohaCeNbROPSiKKPHy/M7Hh8s=; b=TqLEULktnytIVYTxcJdDaaGZu6kkKP3U0Yz2+8pJTve71tF1ViaXzS7F rveg8Yh7hpQEedLbY1oNfliYID4Kc+D2vNu9md3it6zDc5bfKDLuEf4qP Oi04DtSCGLBSaQAhGFXvqFv9jz67OM/omVyWiwjZzN6nQz3vHxQ1IPQXU /LUKqXnJNAuX5wPV4ct71Izb4olubIEuOhF+ntYdG5p9UJUssOGp/w+8M 1iCcmNcWw9PUsqodoiQYx3+yiHNFzPyOHvDf4x0WGnrvGTzbhZohyA5bl 0zvfOh28Q2IYiP15e01ONGynj9dECH7kzxd2ysljfPmXuTVc8kE4y3txu w==; X-IronPort-AV: E=Sophos;i="5.93,300,1654585200"; d="scan'208";a="112762318" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Sep 2022 07:37:33 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 8 Sep 2022 07:37:31 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 8 Sep 2022 07:37:29 -0700 From: Conor Dooley To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Conor Dooley , Daire McNamara , Hugh Breslin CC: Paul Walmsley , Albert Ou , Claudiu Beznea , , , , , "Krzysztof Kozlowski" Subject: [PATCH v5 2/5] dt-bindings: clk: document PolarFire SoC fabric clocks Date: Thu, 8 Sep 2022 15:36:49 +0100 Message-ID: <20220908143651.1252601-3-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220908143651.1252601-1-conor.dooley@microchip.com> References: <20220908143651.1252601-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On PolarFire SoC there are 4 PLL/DLL blocks, located in each of the ordinal corners of the chip, which our documentation refers to as "Clock Conditioning Circuitry". PolarFire SoC is an FPGA, these are highly configurable & many of the input clocks are optional. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Conor Dooley --- .../bindings/clock/microchip,mpfs-ccc.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/microchip,mpfs-ccc.yaml diff --git a/Documentation/devicetree/bindings/clock/microchip,mpfs-ccc.yaml b/Documentation/devicetree/bindings/clock/microchip,mpfs-ccc.yaml new file mode 100644 index 000000000000..f1770360798f --- /dev/null +++ b/Documentation/devicetree/bindings/clock/microchip,mpfs-ccc.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/microchip,mpfs-ccc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip PolarFire SoC Fabric Clock Conditioning Circuitry + +maintainers: + - Conor Dooley + +description: | + Microchip PolarFire SoC has 4 Clock Conditioning Circuitry blocks. Each of + these blocks contains two PLLs and 2 DLLs & are located in the four corners of + the FPGA. For more information see "PolarFire SoC FPGA Clocking Resources" at: + https://onlinedocs.microchip.com/pr/GUID-8F0CC4C0-0317-4262-89CA-CE7773ED1931-en-US-1/index.html + +properties: + compatible: + const: microchip,mpfs-ccc + + reg: + items: + - description: PLL0's control registers + - description: PLL1's control registers + - description: DLL0's control registers + - description: DLL1's control registers + + clocks: + description: + The CCC PLL's have two input clocks. It is required that even if the input + clocks are identical that both are provided. + minItems: 2 + items: + - description: PLL0's refclk0 + - description: PLL0's refclk1 + - description: PLL1's refclk0 + - description: PLL1's refclk1 + - description: DLL0's refclk + - description: DLL1's refclk + + clock-names: + minItems: 2 + items: + - const: pll0_ref0 + - const: pll0_ref1 + - const: pll1_ref0 + - const: pll1_ref1 + - const: dll0_ref + - const: dll1_ref + + '#clock-cells': + const: 1 + description: | + The clock consumer should specify the desired clock by having the clock + ID in its "clocks" phandle cell. + See include/dt-bindings/clock/microchip,mpfs-clock.h for the full list of + PolarFire clock IDs. + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clock-controller@38100000 { + compatible = "microchip,mpfs-ccc"; + reg = <0x38010000 0x1000>, <0x38020000 0x1000>, + <0x39010000 0x1000>, <0x39020000 0x1000>; + #clock-cells = <1>; + clocks = <&refclk_ccc>, <&refclk_ccc>, <&refclk_ccc>, <&refclk_ccc>, + <&refclk_ccc>, <&refclk_ccc>; + clock-names = "pll0_ref0", "pll0_ref1", "pll1_ref0", "pll1_ref1", + "dll0_ref", "dll1_ref"; + }; -- 2.36.1