Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7498176ybl; Thu, 16 Jan 2020 00:16:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyGip0bYF1vPGzqQqEnS/s51KX5nDHHjAD6/smmiP1gY1m/rblqoIvKDeBehse9JH8HsuC0 X-Received: by 2002:a9d:7ac9:: with SMTP id m9mr1046959otn.80.1579162610489; Thu, 16 Jan 2020 00:16:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579162610; cv=none; d=google.com; s=arc-20160816; b=ut8WCqNWWT8JI2UT+VuXcAmffiYIujLzEfxmRh51uKaRZX2LvOwmH7AgJWmN5e724f 0AEtC+Fx9cPMuot7L5uOM7/UDrmjpZZvQanr6Xvd9dybuS4L4YLMF/21dvw3wQbb4IJa +Qw8PWolKNz5R/1ylH2sncXhEULziSB4+36dn4h+/Ny44SdIyZ1LdysFdB5Jy5Ff5U/a Gjg2QPTHB8c84Crig9/dLUKEU7UcGAYqHeCw5bPprMA8maaqQulkjSvU3rXM45vlJ3+5 YZkxTmRpui6MM8X5QnTWV/8YV9PJUcD/hAt14+T0JU/hOidzbxj7t6AYpuB/h8i9AIFT zFDw== 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=IR9mWeCT1uo9mzpJoJQvHV4vUMUlAHsoSh0wiBpsCLQ=; b=DNDFfrrMt9+qh/IWvBOSEBSxc8fRgvRIkUsflhi8egzoK1PutyMYB8ObJcKNg79+3X MGarzJ1t5CS21hrJOJRjRiwA6WEOTne03/aki2vMW/yZ1DbbpWYNhUU8C4OLJ7m6ou6c 796VtO9xILkmXvB0p99xCRxzE8G2t0xTXhkEMzdALG/lX7wlCT+BnX/Me8Jbltr/Rh6W IM/PSUpYtjF2K5ZO4mRhmZDrBZZk0tWeiJuBzUnnqK6wYZ3/BOgX00OuMRCx4ExloZNL PnVeW3utHmk97vWeRNJPZAvt7KqgpadmWh9O1lT7EMRKL0mKMO2TiPXg74cbe/H2MBIz 4m+g== 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 d17si10687157oij.136.2020.01.16.00.16.38; Thu, 16 Jan 2020 00:16: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 S1726369AbgAPIEr (ORCPT + 99 others); Thu, 16 Jan 2020 03:04:47 -0500 Received: from mail-sz.amlogic.com ([211.162.65.117]:32981 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730354AbgAPIEp (ORCPT ); Thu, 16 Jan 2020 03:04: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; Thu, 16 Jan 2020 16:05: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 v6 1/5] dt-bindings: clock: meson: add A1 PLL clock controller bindings Date: Thu, 16 Jan 2020 16:04:36 +0800 Message-ID: <20200116080440.118679-2-jian.hu@amlogic.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200116080440.118679-1-jian.hu@amlogic.com> References: <20200116080440.118679-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..071240b65e70 --- /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/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