Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2130221ybl; Sun, 19 Jan 2020 19:50:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzGBP6l86fWfAz8QRWVPMVh2iixNVCfvR2e9aTl5hDtG6/J0n7ySn8I7PScWZUoYc5RZyD9 X-Received: by 2002:a9d:67c1:: with SMTP id c1mr14943657otn.161.1579492250146; Sun, 19 Jan 2020 19:50:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579492250; cv=none; d=google.com; s=arc-20160816; b=hFGKonI7BIpC1SS3RIA04kQWSIdr2vSEfenUsC9UnbAwxcEF8hEgEQdz1dOW0+3soP Q5vfBrNtMGBQvc2NT3H+YhuTImW8FYx1SCqALWCtQBxmRDkHy8YjU1X0XtMF1OF8r/JR 6ouwN+jPFHoRzb+10WYeTaKJOJTXbGnwBC0xyWVstnB5gtLcrIXGCoX1wz7/OdGzNseK ATExiTidEhuD08pRKYanfzuILtxiepMwedK+zhl/jk6Jrr8vTH/5aYFasIUEwFrNYDXI aivpOB3zDkCGbjee31ohz79OcRy0hL7jl+07WFfXio82O0N3kgy2605oAegN9jbswfJR 33rQ== 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=DpCW5WuYewHQPixoEawe08q5FWWW5nryv+JubhIgs5k=; b=mjX6deQXqJMj5UTHWR+cJQW+/p2L5Djsg85XZ1Usd2m29nyv5qmTto2OG0xZxKXSLL CP+I/hC6iHO/AOJT6D3aPSo4NF8WMRK/un0Xl17D+F5NvQkdS3m5+/afoIY1L5tAZGJQ 8Ts40vLLuPtbVzTnen5/bV8We3vmn55DywwceLNm8PudtBRSLs7KcQla2EI9q8iPnAfB ecG+WJVl6uWWWAvQgCxgUEDftA1eqLFgA7AudxmeEIBCzuqaWDyisH1/NaSxzDqmJ8YP jSPNvJS2ysAivatIPf5lGldh8OnHmNCm4BndjXyThEK3qysuUqoPKEvB1k/C+pltjX9T Fa5Q== 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 j143si16603515oib.16.2020.01.19.19.50.38; Sun, 19 Jan 2020 19:50:50 -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 S1729142AbgATDtr (ORCPT + 99 others); Sun, 19 Jan 2020 22:49:47 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:13027 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729096AbgATDtp (ORCPT ); Sun, 19 Jan 2020 22:49:45 -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; Mon, 20 Jan 2020 11:50:11 +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 v7 1/5] dt-bindings: clock: meson: add A1 PLL clock controller bindings Date: Mon, 20 Jan 2020 11:49:33 +0800 Message-ID: <20200120034937.128600-2-jian.hu@amlogic.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200120034937.128600-1-jian.hu@amlogic.com> References: <20200120034937.128600-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 | 52 +++++++++++++++++++ include/dt-bindings/clock/a1-pll-clkc.h | 16 ++++++ 2 files changed, 68 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..d67250fbeece --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/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: + items: + - description: input xtal_fixpll + - description: input xtal_hifipll + + clock-names: + 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 1>, + <&clkc_periphs 4>; + 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