Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5043258imu; Wed, 19 Dec 2018 04:47:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/UkbtiSliPM1EOhliSXVieXUP0r2pONCIu5wxPDsCfr5NrxRx8IeAfPRE0obaaBksYa7SP1 X-Received: by 2002:a17:902:9692:: with SMTP id n18mr20576246plp.333.1545223632700; Wed, 19 Dec 2018 04:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545223632; cv=none; d=google.com; s=arc-20160816; b=JEm0NWX6rEmJzD+W6Q8HDEW92vNDgpyZtjgfPf6vSqpmJzXk10SqYuMuKEUaA7TJg3 CdAKExkRoWjsaMaHS644p3Csjvu+MThqduHWOEVQCL7OknNDeRXwR5Ibe3zn9IZX74FI i1T+VXFUzxikaWwmeSiL3Uz0BOEP2ePQLl12I2rgVhQQa/siaJjt+8jbOfcb5nIW0y/o iHgIEsPbi7YoewyS1GYKGtrfKzVuf6srfuXpgjD4OZgu7bka+jubosMNe5fuywZLMATb I3KFSZg24J2FDslJyaiQhJKZIbuE/sdQwwTfyD091Q7eTw73W4T6dx4K31lHR1cLRKJ/ 14iw== 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=Fh2UTcDY2NyoGmHS7jH6hJleJQSsxGsgtjY12OPtqaA=; b=VIABqa1sg2hUtkGjHyYnYbIwSvzKJG9EA5V1BrGopPa1gtKMMfsWjv4o9Vnck06DE1 zLr3hMd+BuWOs5KoWp+g8QaxKcLO6Ywa/30G/nHGxPxvQqwp+C/IbjXTjxXP2yj0XV7z zzL53ZyReRR6nKgfs3cQdLvoVR4r23aYtImQe9zbhxp7YYdAgHdv5oEhQjE2GTNmtKyI QGbSB4Ib3TwXJnxILKec1fQlr3aRv+bDXhbGX0G1BKmPDYwkYiWYlnbeUorNpbPOHDDM yDtEIS/ttgH2pTBX+RA6QiH1DGTkL8E5uqc4m4INUhxoL5uyV2Fiyv2PgXpiG70PCeax YvZQ== 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 n12si819917pfg.155.2018.12.19.04.46.57; Wed, 19 Dec 2018 04:47:12 -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 S1729329AbeLSLk5 (ORCPT + 99 others); Wed, 19 Dec 2018 06:40:57 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:6680 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727933AbeLSLk5 (ORCPT ); Wed, 19 Dec 2018 06:40:57 -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; Wed, 19 Dec 2018 19:41:18 +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 v8 0/4] clk: meson: add a sub EMMC clock controller support Date: Wed, 19 Dec 2018 19:40:38 +0800 Message-ID: <1545219642-9834-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 | 73 +++++ 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, 501 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