From patchwork Tue May 28 11:54:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gareth Williams X-Patchwork-Id: 10964787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BF40314C0 for ; Tue, 28 May 2019 11:55:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B182828420 for ; Tue, 28 May 2019 11:55:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3EF028813; Tue, 28 May 2019 11:55:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=AC_FROM_MANY_DOTS,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5312E2881E for ; Tue, 28 May 2019 11:55:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbfE1LzE (ORCPT ); Tue, 28 May 2019 07:55:04 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:56691 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726580AbfE1LzE (ORCPT ); Tue, 28 May 2019 07:55:04 -0400 X-IronPort-AV: E=Sophos;i="5.60,521,1549897200"; d="scan'208";a="16978896" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 28 May 2019 20:55:01 +0900 Received: from renesas-VirtualBox.ree.adwin.renesas.com (unknown [10.226.37.56]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id DBC8A4007541; Tue, 28 May 2019 20:54:58 +0900 (JST) From: Gareth Williams To: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Phil Edworthy Cc: Gareth Williams , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/2] clk: renesas: r9a06g032: Add clock domain support Date: Tue, 28 May 2019 12:54:25 +0100 Message-Id: <1559044467-2639-1-git-send-email-gareth.williams.jx@renesas.com> X-Mailer: git-send-email 2.7.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are several clocks on the r9a06g032 which are currently not enabled in their drivers that can be delegated to clock domain system for power management. Therefore add support for clock domain functionality to the r9a06g032 clock driver after updating the relevant dt-bindings file. v4: - Removed unneeded initialisation of "error" in create_add_module_clock. - Moved declaration of "index" to the start of r9a06g032_attach_dev. - Moved of_node_put(clkspec.np) call to after create_add_module_clock call in r9a06g032_attach_dev. - Added missing HCLK to UART0 example to show the clock added to the driver. v3: - "managed" flag integrated into existing bit field. - Removed unneeded initialisation inside D_MODULE. - Removed the use of unneeded r9a06g032_clk_domain variable. - Removed error message prints that cannot occur. - Removed __init and __initconst from attach function and r9a06g032_clocks[]. - Reordered r9a06g032_add_clk_domain call to after devm_add_action_or_reset during probe. - Added clock type check when retrieving clocks from device tree. - Reordered of_node_put call to before error check in create_add_module_clock. - changed r9a06g032_detach_dev to a static function. - Added new #power-domain-cells property to the required properties. - Added "#power-domain-cells" and "power-domains" lines to examples. v2: - Rebased onto kernel/git/geert/renesas-drivers.git Gareth Williams (2): dt-bindings: clock: renesas,r9a06g032-sysctrl: Document power Domains clk: renesas: r9a06g032: Add clock domain support .../bindings/clock/renesas,r9a06g032-sysctrl.txt | 7 +- drivers/clk/renesas/r9a06g032-clocks.c | 230 ++++++++++++++------- 2 files changed, 166 insertions(+), 71 deletions(-)