Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3834412imu; Mon, 10 Dec 2018 08:32:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/URRZzHJ6MpSckgrHY0pDzE8zMm3+CHBelHz98WqiXw/rdp7UHrRa8ICtpqriojouog+nYN X-Received: by 2002:a63:a41:: with SMTP id z1mr11399368pgk.117.1544459531192; Mon, 10 Dec 2018 08:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544459531; cv=none; d=google.com; s=arc-20160816; b=SVfRUFsTQk/K0zYfAE/AVjlkJ3fIDNK82cU9qVyGvmSL9eLRdYN59JyZ1g6WMOznmy P23ZyPLCjF1T4lqLu7fkTAmXSQPEGVNWi2jwpjhsCdBcholRWzndFNQC8rosEPi/NNDx rWhXUSk0FayOFa5bT7GiTDkpTRPPo8V5sU0LaL/wSZ6zJBqiuyx+LR4wWqUlpi//e+BU NLL4PFrVI58m0DBcl9HeIfiPOPMVZAP0ME/w8tN6Dz8HDuWhlFRVyssCfr/poBMq0kR+ aG3nf3f7EvqCkBKlP3PbWbctvHUCVJGPieTh0tzLXW01rCJNbadjjPzUfL6uOdm4QdRX /72A== 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=vhD34ebznCIpjXCYdR7rjnL9Vy91BJEp5svPSgXN4s4=; b=TwDZNFw7Aa/y/sWcWTx1utrHldtGHsw8CLEN7hC9OECRqEK8FZlfnRABkM45zJipUw qNOA5It/SAgqrJynaP/3/sq9WM/ne9fURldYIFcrM815GX0SzgkWeqve31n2CmOtibpG Jj4NCdgp8cwgXnVxk8nlzUW2gQF4b6vv1SjZLtMppGzzkg0ByX1Z6K4HPz06CiYDtCLZ HpYqu3K3p3YTGfzwlQzOK7ptHSpNNdmUAz1qemoK6MENiHZyqbaZyXtqBt1eW5SLRPk8 8WxrJz6BbDnMGDBu8rd2ddEYW/RI8rv+SP1Q/8q/ciBFTjrdG72m1SAd+y6lOYId1TY7 2cCQ== 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 f4si10519583pfc.234.2018.12.10.08.31.55; Mon, 10 Dec 2018 08:32:11 -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 S1728455AbeLJQFD (ORCPT + 99 others); Mon, 10 Dec 2018 11:05:03 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:52645 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbeLJQFC (ORCPT ); Mon, 10 Dec 2018 11:05:02 -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, 11 Dec 2018 00:05:12 +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 RESEND v7 0/4] clk: meson: add a sub EMMC clock controller support Date: Tue, 11 Dec 2018 00:04:32 +0800 Message-ID: <1544457877-51301-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 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 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 clk: meson: add one based divider support for sclk divider .../devicetree/bindings/clock/amlogic,mmc-clkc.txt | 39 +++ drivers/clk/meson/Kconfig | 10 + drivers/clk/meson/Makefile | 3 +- drivers/clk/meson/clk-phase-delay.c | 64 +++++ drivers/clk/meson/clkc-audio.h | 1 + drivers/clk/meson/clkc.h | 13 + drivers/clk/meson/mmc-clkc.c | 313 +++++++++++++++++++++ drivers/clk/meson/sclk-div.c | 28 +- include/dt-bindings/clock/amlogic,mmc-clkc.h | 17 ++ 9 files changed, 477 insertions(+), 11 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