Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1707001imm; Thu, 9 Aug 2018 00:09:54 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy31iT69dT7cDOP36RjEHKqoct4YLO+JJcl/19tybBtTCQoRLy6AxERcXBvTqB/2FuKMlNJ X-Received: by 2002:a17:902:704c:: with SMTP id h12-v6mr922912plt.237.1533798594887; Thu, 09 Aug 2018 00:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533798594; cv=none; d=google.com; s=arc-20160816; b=kNTDb+rKlOWb0R31GE014GQYOfgHov0RAP1S8yAmdY+UpA6lmHteEXXbHEnc9L/QIV 20nD60md3INddaFT2qDgZEmYqTS/Yi30NTCByKrQXgPrUj2zbnNiI7T1KfZ46ouIqZPI Nt7qcJ6UzMGiB6XvzvHl24Nyj8ZEjmt2p632vAde8cxx2mzi5v2Q2Ozu2Or/OIDE2UF6 iOIQSodXx+1TKi2yQMXsp/wqTQr3jwRGBdrrIhimyIA98mCt9iP5kp1lO7Qxq3Rk21w3 Ac7FerzYeSFNGSz4n6FmeTq3ly2SvEM76aVGuq7JrEb79u/FghD3wA1ccS2e6rgsuler BW3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=d+QwkBVwBAvBCBzMy2EliYQqTJvliGXAftrFTYTeDPg=; b=tcIbwgJpPYYxei6xE+KBARzvH5070EAhqlU/kCPlpITXbFe6/0lv0Vi2D8i3ZIez+X qQk11YEMELW93MdAQe3HAYYl+8JWzP37c/QbsB/Qo7iJOT+1Ze7aIaMOFVmYTyAzNkk3 Fxa5n7RzhZ+nMnG64aWSKsYn43INlqc/dm35uvYQLTwdE0xrvCcrv+Puzuf+vya/xptC fxhO6EipavcYBGVjyZ3PTmXBmJuMaNssfKhEtTxZZNTWGqnUbuFhm+IGw2vYm+o6Q8wB VGUYuOb98IGvFu63hxQDd2hdPwDMKcwwO0u0RULDACPJwdmGwehsD8NNPJzlYU0/iWQO pwoA== 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 65-v6si6187416pld.451.2018.08.09.00.09.40; Thu, 09 Aug 2018 00:09:54 -0700 (PDT) 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 S1729003AbeHIJcQ (ORCPT + 99 others); Thu, 9 Aug 2018 05:32:16 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:46993 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeHIJcQ (ORCPT ); Thu, 9 Aug 2018 05:32:16 -0400 Received: from ofmlt.linux-actions.org (10.18.20.235) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Thu, 9 Aug 2018 15:09:00 +0800 From: Yixun Lan To: Jerome Brunet , Neil Armstrong CC: Yixun Lan , Kevin Hilman , Carlo Caione , Rob Herring , Michael Turquette , Stephen Boyd , Martin Blumenstingl , Liang Yang , Jianxin Pan , Qiufang Dai , Jian Hu , , , , , Subject: [PATCH v4 2/3] clk: meson: add DT documentation for emmc clock controller Date: Thu, 9 Aug 2018 15:07:22 +0800 Message-ID: <20180809070724.11935-3-yixun.lan@amlogic.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180809070724.11935-1-yixun.lan@amlogic.com> References: <20180809070724.11935-1-yixun.lan@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.20.235] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the MMC sub clock controller driver, the potential consumer of this driver is MMC or NAND. Also add four clock bindings IDs which provided by this driver. Reviewed-by: Rob Herring Signed-off-by: Yixun Lan --- .../bindings/clock/amlogic,mmc-clkc.txt | 31 +++++++++++++++++++ include/dt-bindings/clock/amlogic,mmc-clkc.h | 17 ++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt create mode 100644 include/dt-bindings/clock/amlogic,mmc-clkc.h diff --git a/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt new file mode 100644 index 000000000000..9e6d34389be8 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt @@ -0,0 +1,31 @@ +* Amlogic MMC Sub Clock Controller Driver + +The Amlogic MMC clock controller generates and supplies clock to support +MMC and NAND controller + +Required Properties: + +- compatible: should be: + "amlogic,gx-mmc-clkc" + "amlogic,axg-mmc-clkc" + +- #clock-cells: should be 1. +- clocks: phandles to clocks corresponding to the clock-names property +- clock-names: list of parent clock names + - "clkin0", "clkin1" + +Parent node should have the following properties : +- compatible: "amlogic,axg-mmc-clkc", "syscon". +- reg: base address and size of the MMC control register space. + +Example: Clock controller node: + +sd_mmc_c_clkc: clock-controller@7000 { + compatible = "amlogic,axg-mmc-clkc", "syscon"; + reg = <0x0 0x7000 0x0 0x4>; + #clock-cells = <1>; + + clock-names = "clkin0", "clkin1"; + clocks = <&clkc CLKID_SD_MMC_C_CLK0>, + <&clkc CLKID_FCLK_DIV2>; +}; diff --git a/include/dt-bindings/clock/amlogic,mmc-clkc.h b/include/dt-bindings/clock/amlogic,mmc-clkc.h new file mode 100644 index 000000000000..162b94949119 --- /dev/null +++ b/include/dt-bindings/clock/amlogic,mmc-clkc.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +/* + * Meson MMC sub clock tree IDs + * + * Copyright (c) 2018 Amlogic, Inc. All rights reserved. + * Author: Yixun Lan + */ + +#ifndef __MMC_CLKC_H +#define __MMC_CLKC_H + +#define CLKID_MMC_DIV 1 +#define CLKID_MMC_PHASE_CORE 2 +#define CLKID_MMC_PHASE_TX 3 +#define CLKID_MMC_PHASE_RX 4 + +#endif -- 2.17.1