Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1687099imm; Thu, 12 Jul 2018 06:17:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/KjTedWCGOxj0VgarbRq2UxA2ng6/C3WN/mfQRhRR+sXHgo38klvuTo7nMHrqkgW3NcpZ X-Received: by 2002:a65:5144:: with SMTP id g4-v6mr2094701pgq.21.1531401428264; Thu, 12 Jul 2018 06:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531401428; cv=none; d=google.com; s=arc-20160816; b=qIp3Hj786t2sG+oJBrDw8zmB3HB1qkzIBn7HF6kRyuNnAnZ9Yuon2fIPG+9VqnBQJC bgHqxE8mo9Hx28VmiPllGMAWwWqjmrOxJR1e5q+NSLcFxPbtNtnq35MwZOaRlA8Sz7NK OP0cpF2GoDnbRTAsN3gmgecMf3MNCJD2geTCHxTAcxEHmDHUmpSyyH8Oeb2fNcdEvdlY SNXScZPJrH3atTMlOK/RnAiBR0NSMaqybDLQsMeLSB5vjYrIP6fQ60BJJ7iRGAIW/Cu6 F0GVxZB5A/Mxtq5jlnuq5piwD8afl+O9q58duddaTaKuoMYSbZkSdGREA0wNRHAUG6m2 nzeA== 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=XBF+jiOc7Yx/Lyl0rDn3dkMTqxfIWut3yuiVoaX+zdQ=; b=SYUxPqJEs/v2+oKCM/+PLnmmaFSuYQQwmJs2llYrPq4qeuJRqEI1hO30eOe0AFuMUG wPiiR9qRL57opdgU/TIaDXiPZLM/NiJYw07XBFvUfHii6Fwd4mUCXU5lKc0ZBbetg16t 0ObqA9G4tnk846c9na54EfoT1qI4D2kqD2d7WUvP17pGu1I0kn8FgPlF/90VSUxGPItX BrNukFq9eM/mIKMHT9eQI7GghamptUD/uNte10fHvd4KK00i9mKVxlSuoyhEZ3N61O8r lfRJmf9Ur2Ku0794uH93YPIQ8Z6Bp6eiLaIk6XAMGNQtdL8Aft4R3IzY++7sN2xCJRCN Q5kg== 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 w21-v6si20044668pgv.462.2018.07.12.06.16.52; Thu, 12 Jul 2018 06:17:08 -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 S1732338AbeGLNZk (ORCPT + 99 others); Thu, 12 Jul 2018 09:25:40 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:32951 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbeGLNZh (ORCPT ); Thu, 12 Jul 2018 09:25:37 -0400 Received: from localhost.localdomain (10.18.20.250) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Thu, 12 Jul 2018 21:15:18 +0800 From: Yixun Lan To: Jerome Brunet , Neil Armstrong CC: Yixun Lan , Kevin Hilman , Carlo Caione , Michael Turquette , Stephen Boyd , Rob Herring , Miquel Raynal , Boris Brezillon , Martin Blumenstingl , Liang Yang , Qiufang Dai , Jian Hu , , , , , Subject: [PATCH v3 1/2] clk: meson: add DT documentation for emmc clock controller Date: Thu, 12 Jul 2018 21:12:43 +0000 Message-ID: <20180712211244.11428-2-yixun.lan@amlogic.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180712211244.11428-1-yixun.lan@amlogic.com> References: <20180712211244.11428-1-yixun.lan@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.20.250] 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 three clock bindings IDs which provided by this driver. Signed-off-by: Yixun Lan --- .../bindings/clock/amlogic,mmc-clkc.txt | 31 +++++++++++++++++++ .../clock/amlogic,meson-mmc-clkc.h | 16 ++++++++++ 2 files changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt create mode 100644 include/dt-bindings/clock/amlogic,meson-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..91018221df1a --- /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,meson-gx-mmc-clkc" + "amlogic,meson-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,meson-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,meson-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,meson-mmc-clkc.h b/include/dt-bindings/clock/amlogic,meson-mmc-clkc.h new file mode 100644 index 000000000000..2ae988ebc3ae --- /dev/null +++ b/include/dt-bindings/clock/amlogic,meson-mmc-clkc.h @@ -0,0 +1,16 @@ +/* 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_TX 3 +#define CLKID_MMC_PHASE_RX 4 + +#endif -- 2.18.0