Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10768550ybl; Fri, 27 Dec 2019 01:48:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxS34RRpEhHYugZsu66Wwb3CKEbyHS5vn9VoXnvfRPD32EpfBBpb8OOmOt9/lGE/ENSR+t2 X-Received: by 2002:a9d:5c02:: with SMTP id o2mr47444846otk.176.1577440090432; Fri, 27 Dec 2019 01:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577440090; cv=none; d=google.com; s=arc-20160816; b=TDDursMhemC0QPuR5rDoceY5Yw0gDINd72ThaiofJ1L9X+yMCuZdPE+qziyDHGwtBv eYHRs+HF9IaFs39HRWM8S8ceooUh3HZjlJQBCMcwTRVPYK2aYsTPokcS+HV2wICfwFFe YO4sQCJY/9a2dzGApMVtuPKpdf6VjUCsl67r5rwx/IXLxBdVGrc/xOkqsPy/koj3cneK c443JxN+rQFulRNkHo2sJb1gURH8RfR30WEUwo5276Xh+IJ2lnE1sxxf1YEeY1b9nWe1 NmwcIzE0+zjU6cJSzpVoh7SISpzsUf0wc0yRAFm0SmCABFrjKQfY2xrGJQK28/KU05/0 8aHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sVafaLf1ZawYcV6nSCwrQ0dkCynDhXKRfRwXoTZ2AfE=; b=bFMjxE3nbUbXA4ddFXJi9qvJSnzL4CXYDYfJtQ/RdiePScDEi0xh+tjSRRC64XYoEK o0IrNz4X+Z8xM28CLtIffSGM2u4J58S+oswdz9CeqzD6LzwgGS/NQpgszjTapODdLmkl hUiIrqEUJwcl4BL39BhZZdLPBj38dzBBCIUELo7Nilk0M+qqTQhhNM37aBKnfCsZJu50 Ecb+sjErPyE+DCsH3P8syAjiG8kEZJ8a2V8UR+yT4A8wWKjMtiT71OkA928qlZLy0fbB +CJMgU/qCX6I5RKLy35Zc3xiN5eif+MT+vVjiWWifo8rc/flYktHTj7VAb179TTL8Tfw x6HQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s128si16089897oig.204.2019.12.27.01.47.58; Fri, 27 Dec 2019 01:48:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726857AbfL0JqU (ORCPT + 99 others); Fri, 27 Dec 2019 04:46:20 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:21110 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726014AbfL0JqU (ORCPT ); Fri, 27 Dec 2019 04:46:20 -0500 Received: from droid15-sz.amlogic.com (10.28.8.25) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Fri, 27 Dec 2019 17:46:34 +0800 From: Jian Hu To: Jerome Brunet , Neil Armstrong CC: Jian Hu , Kevin Hilman , Rob Herring , Martin Blumenstingl , Michael Turquette , Stephen Boyd , Qiufang Dai , Jianxin Pan , Victor Wan , Chandle Zou , , , , , Subject: [PATCH v5 1/5] dt-bindings: clock: meson: add A1 PLL clock controller bindings Date: Fri, 27 Dec 2019 17:46:02 +0800 Message-ID: <20191227094606.143637-2-jian.hu@amlogic.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191227094606.143637-1-jian.hu@amlogic.com> References: <20191227094606.143637-1-jian.hu@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.8.25] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the documentation to support Amlogic A1 PLL clock driver, and add A1 PLL clock controller bindings. Signed-off-by: Jian Hu --- .../bindings/clock/amlogic,a1-pll-clkc.yaml | 54 +++++++++++++++++++ include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ 2 files changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml create mode 100644 include/dt-bindings/clock/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..7a327bb174b8 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml @@ -0,0 +1,54 @@ +# 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 Device Tree Bindings + +maintainers: + - Neil Armstrong + - Jerome Brunet + - Jian Hu + +properties: + compatible: + const: amlogic,a1-pll-clkc + + "#clock-cells": + const: 1 + + reg: + maxItems: 1 + +clocks: + maxItems: 2 + items: + - description: Input xtal_fixpll + - description: Input xtal_hifipll + +clock-names: + maxItems: 2 + items: + - const: xtal_fixpll + - const: xtal_hifipll + +required: + - compatible + - "#clock-cells" + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + clkc_pll: pll-clock-controller@7c80 { + compatible = "amlogic,a1-pll-clkc"; + reg = <0 0x7c80 0 0x18c>; + #clock-cells = <1>; + clocks = <&clkc_periphs CLKID_XTAL_FIXPLL>, + <&clkc_periphs CLKID_XTAL_HIFIPLL>; + clock-names = "xtal_fixpll", "xtal_hifipll"; + }; diff --git a/include/dt-bindings/clock/a1-pll-clkc.h b/include/dt-bindings/clock/a1-pll-clkc.h new file mode 100644 index 000000000000..58eae237e503 --- /dev/null +++ b/include/dt-bindings/clock/a1-pll-clkc.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +/* + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. + */ + +#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.24.0