Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1054682imd; Thu, 1 Nov 2018 09:31:50 -0700 (PDT) X-Google-Smtp-Source: AJdET5cwHYW6DCR3+XBSZ4Drk84j7NUEzQlm9p4szoZjBqHB6cMORLWxkqz1OiwZUn+1PvqD08Ys X-Received: by 2002:a62:1552:: with SMTP id 79-v6mr8277809pfv.120.1541089910774; Thu, 01 Nov 2018 09:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541089910; cv=none; d=google.com; s=arc-20160816; b=WCDMQk3iy4aVMP0do7gJT+0x8nZm2rji0FunUet7Ay/bRERzaC/2scXEfndJqp02qs UTpE+I6b4q8MxHe438xMrPse9q4euVxA/Wj3xzxfdvkbOHxjX4V8pJongZAOawTacn/p 9ogwiv2Eo3uxONfO9wHHdJOX8yBSUVGEu4X3l+Seh0iWX72QXzZ7hRs/BBT1b4bAPrYR YyV+3+6026wfwaYeZ46sX03V2pMXVeZmVUTQby8miQKgc0fTZGv4r7zgrZcSYe41BEQh DVvX1W6fAiPnl1Lzfy5wvd+vaViiP3W7/JhxCWJyx5nZZA4BKd5x3CysPF6ZUW6kWUV+ whOw== 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=B3FCSQRXQCGvtRF3S604Ta2dZ7IUUbtpMCL38W5P42M=; b=rdrFINLgVQNWnAalf0HehekbXy19Edcn/nCCPC+1Fa/nJ6/l9HjehkMtzK6z5fTLoO 1CVVCT2oLdp6b/BMMawuj6pYTYwjG1ThWaKbWqCElLU6CFuPTQRg+04YlRc7JUzHA9j6 wrrPN0nVTzKeyAr+OjWO7Uoe/7sGmeXDcb0jd54FNOl3cjaN3NgDTPfE7d08jQkbNcP6 PZbeGmOLgNo/0ICqTxjYnE5wXdSqW0cjh/H63ajhdnNiNShcg3eQByCf3k9/q1EzDDri i2QC30xf//bzRyjkbdN52kT1XMgzVseZM5Oc6hd6L05B+J0CvNg7LyLV2M6Lszc+Gw95 Lo8A== 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 16si5012562pgh.58.2018.11.01.09.31.35; Thu, 01 Nov 2018 09:31:50 -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 S1728713AbeKBBet (ORCPT + 99 others); Thu, 1 Nov 2018 21:34:49 -0400 Received: from mail-sh2.amlogic.com ([58.32.228.45]:40999 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728372AbeKBBes (ORCPT ); Thu, 1 Nov 2018 21:34:48 -0400 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; Fri, 2 Nov 2018 00:31:06 +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 v6 0/3] clk: meson: add a sub EMMC clock controller support Date: Fri, 2 Nov 2018 00:30:52 +0800 Message-ID: <1541089855-19356-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 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 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 | 10 + drivers/clk/meson/Makefile | 3 +- drivers/clk/meson/clk-phase-delay.c | 75 +++++ drivers/clk/meson/clk-regmap.c | 1 - drivers/clk/meson/clk-regmap.h | 1 + drivers/clk/meson/clkc.h | 13 + drivers/clk/meson/mmc-clkc.c | 310 +++++++++++++++++++++ include/dt-bindings/clock/amlogic,mmc-clkc.h | 17 ++ 9 files changed, 467 insertions(+), 2 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