Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4366931rwd; Tue, 23 May 2023 06:56:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ECwmNx0yR1M9tFLBdtnLUntqmCYBXnEn0ENv0UzMta42j7T+//SGQPkpoG1fQj8vqzt8Y X-Received: by 2002:a05:6a00:b4e:b0:64d:6a78:1575 with SMTP id p14-20020a056a000b4e00b0064d6a781575mr8118306pfo.30.1684850167233; Tue, 23 May 2023 06:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684850167; cv=none; d=google.com; s=arc-20160816; b=YvvjYZMwMmq7fpca9zSJuKK/fnDmU81eQMDp24N/fAVmRa3AZf+eFtAzvuYByPGJ0z iGiiAYk2fHpGDxpFaUN17z9UeK3v+UflyG/Jfuo5NWg0AMvEQnd7NojzzgnIJDg0wimx Oe9ku+Rlo6xrEf9O1phQB/QmYW/fm6ApFHkIaMQVSN1BCVjGjn/4V/0NAXJGqh9BrZmb Pq+qZO56IyZjrq3jyTj69PwsO/0gynv8A9gkWDiaCMJpAotQD5am6Y4TKG9I+zs51Y0K tSmK4pHZ6C9QOFsnPaNOkSHcXjdYz9PxYYGJNBBzeCMAMqYsqfHxwt2hFNe7XwlpHEIX xZfw== 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=ywVAWUW9jbvz+vfZY+snT7ksvWRteTwJF8+dCOusnpE=; b=fO9+d3Kn32UqzmZkHXRJQFpjYqvN7lDGxagNDBGhtJS2wTo6GZCSafSq8oArMXE8nG iUAGZE+5SqfEmC0/XYvHkZymK4N1vry4vM94Uth1frUkFCS1rGGjRvTA0k7ycKeWt1Qz yR9/5mUtmJ39hXC7rZ5qQR7+rp2wCZ+AAuw9klrnVZK0DRTIXJveZu6AJuMXRkZ9HdYt anpCGax5ZZY8oz0pPwxUTJc4zhN7XeZCn+fqY904nDrgSZNMy73BWwS323/E5ZNE+iCa jJNjcs5Lf49v338zAwFUcBmw2ARtKeoxBvaPn2zIrUw7sWveLnewr5uCb+ZAvX7E1mr2 /LrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="ax+pQEL/"; 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=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a633c0f000000b0053efcd2001fsi142861pga.883.2023.05.23.06.55.54; Tue, 23 May 2023 06:56:07 -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=@sberdevices.ru header.s=mail header.b="ax+pQEL/"; 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=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237047AbjEWNyW (ORCPT + 99 others); Tue, 23 May 2023 09:54:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237012AbjEWNyK (ORCPT ); Tue, 23 May 2023 09:54:10 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 897B0121; Tue, 23 May 2023 06:54:05 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id D95C55FD69; Tue, 23 May 2023 16:54:03 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1684850043; bh=ywVAWUW9jbvz+vfZY+snT7ksvWRteTwJF8+dCOusnpE=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ax+pQEL//qsoB0WEqhizD6FLl/Cky6R9mArlVas8y0LbI1Z7Y79HKuiwI8tewo+ua Fc4kfYyTf213rVrryWtz9E9DGGgvy7Ltq/OZo0/bacXZ/fWek7X7rCoubIXdk3zVIT gy0jpyhJ8wZE+mlBbO0f2eJAhXQwRNoOYJQcTcUz2JB4dtREhusuE7x2IjUKjRY0om QbmBZe3crv+BA9cd2Mxjoe4HPURs0wws7Hxi4fHgNui0fdxIZY41Y3PyiqVTbXUdJh wjUhcOkn80R47GXCSZGwva4P2Cg7pJ08EePmIX7WFvTw0XmTrHwokxJRy7YPnhTvx5 FsywQtG4pnGGg== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Tue, 23 May 2023 16:54:03 +0300 (MSK) From: Dmitry Rokosov To: , , , , , , , CC: , , , , , , , , Dmitry Rokosov , Rob Herring Subject: [PATCH v16 3/6] dt-bindings: clock: meson: add A1 PLL clock controller bindings Date: Tue, 23 May 2023 16:53:48 +0300 Message-ID: <20230523135351.19133-4-ddrokosov@sberdevices.ru> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20230523135351.19133-1-ddrokosov@sberdevices.ru> References: <20230523135351.19133-1-ddrokosov@sberdevices.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH02.sberdevices.ru (172.16.1.5) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/05/23 12:15:00 #21372692 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Add the documentation and dt bindings for Amlogic A1 PLL clock controller. Also include new A1 clock controller dt bindings to MAINTAINERS. Signed-off-by: Jian Hu Signed-off-by: Dmitry Rokosov Reviewed-by: Rob Herring Reviewed-by: Martin Blumenstingl --- .../bindings/clock/amlogic,a1-pll-clkc.yaml | 58 +++++++++++++++++++ MAINTAINERS | 1 + .../dt-bindings/clock/amlogic,a1-pll-clkc.h | 20 +++++++ 3 files changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml create mode 100644 include/dt-bindings/clock/amlogic,a1-pll-clkc.h diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml new file mode 100644 index 000000000000..5c6fa620a63c --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/amlogic,a1-pll-clkc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic A1 PLL Clock Control Unit + +maintainers: + - Neil Armstrong + - Jerome Brunet + - Jian Hu + - Dmitry Rokosov + +properties: + compatible: + const: amlogic,a1-pll-clkc + + '#clock-cells': + const: 1 + + reg: + maxItems: 1 + + clocks: + items: + - description: input fixpll_in + - description: input hifipll_in + + clock-names: + items: + - const: fixpll_in + - const: hifipll_in + +required: + - compatible + - '#clock-cells' + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + apb { + #address-cells = <2>; + #size-cells = <2>; + + clock-controller@7c80 { + compatible = "amlogic,a1-pll-clkc"; + reg = <0 0x7c80 0 0x18c>; + #clock-cells = <1>; + clocks = <&clkc_periphs_fixpll_in>, + <&clkc_periphs_hifipll_in>; + clock-names = "fixpll_in", "hifipll_in"; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 39ff1a717625..8438bc9bd636 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1895,6 +1895,7 @@ L: linux-amlogic@lists.infradead.org S: Maintained F: Documentation/devicetree/bindings/clock/amlogic* F: drivers/clk/meson/ +F: include/dt-bindings/clock/a1* F: include/dt-bindings/clock/gxbb* F: include/dt-bindings/clock/meson* diff --git a/include/dt-bindings/clock/amlogic,a1-pll-clkc.h b/include/dt-bindings/clock/amlogic,a1-pll-clkc.h new file mode 100644 index 000000000000..01fb8164ac29 --- /dev/null +++ b/include/dt-bindings/clock/amlogic,a1-pll-clkc.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */ +/* + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. + * Author: Jian Hu + * + * Copyright (c) 2023, SberDevices. All Rights Reserved. + * Author: Dmitry Rokosov + */ + +#ifndef __A1_PLL_CLKC_H +#define __A1_PLL_CLKC_H + +#define CLKID_FIXED_PLL 1 +#define CLKID_FCLK_DIV2 6 +#define CLKID_FCLK_DIV3 7 +#define CLKID_FCLK_DIV5 8 +#define CLKID_FCLK_DIV7 9 +#define CLKID_HIFI_PLL 10 + +#endif /* __A1_PLL_CLKC_H */ -- 2.36.0