Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1184269rwl; Wed, 5 Apr 2023 13:04:06 -0700 (PDT) X-Google-Smtp-Source: AKy350Y1tor3QPgKqIXGgtJMaWN8lSCqfrLti8yjagpNOTdqiXRR4lF2+NTDwT3N9Mbx6kd24lTt X-Received: by 2002:a17:903:1205:b0:19f:36b1:c35 with SMTP id l5-20020a170903120500b0019f36b10c35mr8527051plh.64.1680725046556; Wed, 05 Apr 2023 13:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680725046; cv=none; d=google.com; s=arc-20160816; b=PlHmCWf2bGbDEOss85eLzASqBiLQgzRlfCX4VMtdMCwfFYfW5XVK1m4ZV8ha3dGL9+ gYGp3Pyg7kBeOoVgXLWvc3jGvrpGrzcZjq5FhcpUuNOR4m87sxsOXW1fE534uzabLpq/ I0Ei+biLVieCIDMWhaZgpzgo4zLO9gzN+UpTHqL6oUdh2+xkK9NGMc9CkuJ7uhyD7CfF OMibqMv8rEH+SN9viDAvJSykjdmpQzAjkfW2XjkvwI4lqFcCjJ1qlQzIAYgx9IiHGXEB wfNfkmRC0zr/+9GzfdlRseDzi+DrGu/Y+qQTdgfkgdWnmTQkh82S2S3xOAB0Uczx62Ab MClw== 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=z+P95dHPiXGnlNdnxpy5FrfBWjWqSR5ilZ5HQovmo3s=; b=wti2OhXzRFSWBPoD3GYa0SRX0vZR7i2SQ8nJ1Kq5c9xDejGbK34Nh3jnWX/NhdbLTB 8mdTlvaPWWQEpHTgau/e7S8jbkwRClMprSwVXLg+EzXkMpmSgUsJL3KozCOeD5AZXSEo LxhYIkNJ4HfXsWVLfMA7r/RVyCI5oCVU/VlB7gja1+xdhsovWz+fXAf9khwAIg9qkQh6 IPKC6bdHFTlIqn6STl4MFb3sWixlT3aM0vJpO6g0fwZiP5RPG4o2GyCoBtcQ+gaJtsqG aCyl2erRkxnG3rM3IjcwtUmECSurHTrkCAl64ScaGB9D6FLzl8bJ90sZuz8eXQeez7Os VwiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="cAlnxtY/"; 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 27-20020a630e5b000000b004fbd23110d5si10937464pgo.546.2023.04.05.13.03.14; Wed, 05 Apr 2023 13:04:06 -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="cAlnxtY/"; 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 S229446AbjDEUAA (ORCPT + 99 others); Wed, 5 Apr 2023 16:00:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbjDET7p (ORCPT ); Wed, 5 Apr 2023 15:59:45 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 896314209; Wed, 5 Apr 2023 12:59:44 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id D162D5FD4D; Wed, 5 Apr 2023 22:59:42 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1680724782; bh=z+P95dHPiXGnlNdnxpy5FrfBWjWqSR5ilZ5HQovmo3s=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cAlnxtY/P7bgP/1dyv5eg3cJGfx8JvBLAaK2FITNHfoEe/HULBgdoeOfLis3qn/tO 7luQOiZrdDKa3qrFBm8AJp5RZr5K8fAM27Nz4anIQqTTgvaWfIaeGe4zhMjsXLtoLx Awul+ldzHZo9dqsqHS5E1iDytA73SsKUlTreR/DaN9Dk83DK6cel+Vn3ym/gOm1iky Kgg2ooKVF1/KDYOjokjqRmzvdAhWq0ZNb2IDFcxCMp38XiWMKD2LxScPd1r7DtnDq3 qudBd23xyUZ0WDQXft4+NtpTzqxzVQXuZzbWgqy57e378tSxGGeNltUOwWQtltQfXJ Zr6glwfvBf1LQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 5 Apr 2023 22:59:42 +0300 (MSK) From: Dmitry Rokosov To: , , , , , , , CC: , , , , , , , , Dmitry Rokosov Subject: [PATCH v13 3/6] dt-bindings: clock: meson: add A1 PLL clock controller bindings Date: Wed, 5 Apr 2023 22:59:24 +0300 Message-ID: <20230405195927.13487-4-ddrokosov@sberdevices.ru> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20230405195927.13487-1-ddrokosov@sberdevices.ru> References: <20230405195927.13487-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/04/05 16:44:00 #21035356 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 for Amlogic A1 PLL clock driver, and A1 PLL clock controller bindings. Also include new A1 clock controller dt bindings to MAINTAINERS. Signed-off-by: Jian Hu Signed-off-by: Dmitry Rokosov --- .../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..b3f46cf4b161 --- /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 Meson A/C serials 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