Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2958151imu; Mon, 17 Dec 2018 10:35:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/X3qn5JvhfASPRrDgj9afiCybKZ+xOQdoQCCK/F/xSgXk6e8e4invOA8NF7OYQdldGvGfBw X-Received: by 2002:a62:1bd7:: with SMTP id b206mr13693792pfb.213.1545071749636; Mon, 17 Dec 2018 10:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545071749; cv=none; d=google.com; s=arc-20160816; b=j3/PwE4Q5bDj9fQtQ5w1N0zIfhnK/ZC4D0sD3XY4yQzMU/sKpT6KgE56EvO5aVS8nH g1itU2pUOJOkqedSwyRNuD+aOyS4cbaap4uR+zEVjeAmEu2kVlAKGVjQ5+7WduiO0c+W ZwWhRNO2ixrNEPXDArlRN02XefOx1m+Ok3Iq/g9ZFTe9oCrv2HmiVQ/hwfE0QK94BFv/ YEqBOT15I/ZP1DXvP8dSIgaMnI84uzAIeXHmAs/Vx1heZFonHWi6YnoIzP+zOPWuEtCT Tlywb3Z5SozC/BE6fKOu6yVZ6lO9VnptRVN0Fki9wD7TrfM7L5H3IVlDqKBKhN1Zm/Vr Oqwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=mi4YTBRpE6JiGK7N4p33PcjOLDlcEXLceOeOHA8ZA7k=; b=Sb4STltxQrobpTqvVOGVWBPCViapKWI1Eaz4p5tE2Or3aMBE71dSpqy+RpN3vq+MlZ GJQB8eLTrhmZ2aez0xFF2+CLq9SQKIsat9Mhm8O/1RyIJG7K6A7EmBshWchievFBH1Mx RbEmQjtNn5g6w2nkTQDnq6jEhAaAjKQuOXvDdZeMmMAohYs9pI7iJMNwikLl3L0hke/G FdUXnl+xivS1VsxTJzFmSj12KTu9hxPwrhmGyytr7BMu1LWC73aGu9dlKAmQx+jPXTxn Wee/Mschu6YOnR5atJQmjCjlDOdaUuzzLOaBVAySu0Qo4ENeBGPacTDNUxUNFQCr/4F9 0XDQ== 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 a195si12490251pfd.143.2018.12.17.10.35.33; Mon, 17 Dec 2018 10:35:49 -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 S2387920AbeLQQYg (ORCPT + 99 others); Mon, 17 Dec 2018 11:24:36 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:33928 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727771AbeLQQYf (ORCPT ); Mon, 17 Dec 2018 11:24:35 -0500 Received: from localhost.localdomain (10.18.11.217) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Tue, 18 Dec 2018 00:24:49 +0800 From: Jianxin Pan To: Jerome Brunet , Neil Armstrong CC: Jianxin Pan , Kevin Hilman , Carlo Caione , Michael Turquette , Stephen Boyd , Rob Herring , Miquel Raynal , Boris Brezillon , Martin Blumenstingl , Yixun Lan , Liang Yang , Jian Hu , Qiufang Dai , Hanjie Lin , Victor Wan , , , , , Subject: [PATCH v8 0/4] clk: meson: add a sub EMMC clock controller support Date: Tue, 18 Dec 2018 00:24:06 +0800 Message-ID: <1545063850-21504-1-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.11.217] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver will add a MMC clock controller driver support. The original idea about adding a clock controller is during the discussion in the NAND driver mainline effort[1]. This driver is tested in the S400 board (AXG platform) with NAND driver. Changes since v7 [8] - move meson_clk_get_phase_delay_data() from header to driver - CONFIG sclk-div with COMMON_CLK_AMLOGIC instead of COMMON_CLK_AMLOGIC_AUDIO - remove onecell date and ID for internal MUX clk - use helper for functions for ONE_BASED in sclk-div - add ONE_BASED support for duty cycle Changes since v6 [7]: - add one based support for sclk divier - alloc sclk in probe for multiple instance - fix coding styles Changes since v5 [6]: - remove divider ops with .init and use sclk_div instead - drop CLK_DIVIDER_ROUND_CLOSEST in mux and div - drop the useless type cast Changes since v4 [5]: - use struct parm in phase delay driver - remove 0 delay releted part in phase delay driver - don't rebuild the parent name once again - add divider ops with .init Changes since v3 [4]: - separate clk-phase-delay driver - replace clk_get_rate() with clk_hw_get_rate() - collect Rob's R-Y - drop 'meson-' prefix from compatible string Changes since v2 [3]: - squash dt-binding clock-id patch - update license - fix alignment - construct a clk register helper() function Changes since v1 [2]: - implement phase clock - update compatible name - adjust file name - divider probe() into small functions, and re-use them [1] https://lkml.kernel.org/r/20180628090034.0637a062@xps13 [2] https://lkml.kernel.org/r/20180703145716.31860-1-yixun.lan@amlogic.com [3] https://lkml.kernel.org/r/20180710163658.6175-1-yixun.lan@amlogic.com [4] https://lkml.kernel.org/r/20180712211244.11428-1-yixun.lan@amlogic.com [5] https://lkml.kernel.org/r/20180809070724.11935-4-yixun.lan@amlogic.com [6] https://lkml.kernel.org/r/1539839245-13793-1-git-send-email-jianxin.pan@amlogic.com [7] https://lkml.kernel.org/r/1541089855-19356-1-git-send-email-jianxin.pan@amlogic.com [8] https://lkml.kernel.org/r/1544457877-51301-1-git-send-email-jianxin.pan@amlogic.com Jianxin Pan (1): clk: meson: add one based divider support for sclk divider Yixun Lan (3): clk: meson: add emmc sub clock phase delay driver clk: meson: add DT documentation for emmc clock controller clk: meson: add sub MMC clock controller driver .../devicetree/bindings/clock/amlogic,mmc-clkc.txt | 39 +++ drivers/clk/meson/Kconfig | 9 + drivers/clk/meson/Makefile | 5 +- drivers/clk/meson/clk-phase-delay.c | 70 +++++ drivers/clk/meson/clkc-audio.h | 8 - drivers/clk/meson/clkc.h | 17 +- drivers/clk/meson/mmc-clkc.c | 304 +++++++++++++++++++++ drivers/clk/meson/sclk-div.c | 59 ++-- include/dt-bindings/clock/amlogic,mmc-clkc.h | 17 ++ 9 files changed, 498 insertions(+), 30 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/amlogic,mmc-clkc.txt create mode 100644 drivers/clk/meson/clk-phase-delay.c create mode 100644 drivers/clk/meson/mmc-clkc.c create mode 100644 include/dt-bindings/clock/amlogic,mmc-clkc.h -- 1.9.1