Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752516AbbHCBPC (ORCPT ); Sun, 2 Aug 2015 21:15:02 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:34215 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752476AbbHCBO7 (ORCPT ); Sun, 2 Aug 2015 21:14:59 -0400 From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Wei Xu , Haojian Zhuang , Bintian Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Guodong Xu , Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , sunzhaosheng@hisilicon.com, victor.lixin@hisilicon.com Cc: Leo Yan Subject: [PATCH v3 0/5] clk: hisilicon: support stub clock Date: Mon, 3 Aug 2015 09:13:33 +0800 Message-Id: <1438564418-15948-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1960 Lines: 48 This series adds support for hisilicon stub clock driver. On hi6220, the bootloader needs load the firmware image and set info for OPPs; after run into kernel, the stub clock driver is used to communicate w/t firmware for cpu dynamic frequency scaling. In patch series v1/v2, the stub clock driver simply writes request in sram and send ipc to firmware; For patch series v3, the firmware has been upgraded to use mailbox, so stub clock driver will call standard mailbox APIs to request mailbox channel and send message to firmware. These patches have been tested on 96board hikey and is used by cpufreq driver. Changes from v2: * Use platform_device's probe for clock's initialization * Use mailbox channel for clock frequency change Changes from v1: * Refine parameter checking for init flow * Remove unnecessary debugging info * Modify to check spinlock pointer when register clocks Leo Yan (5): clk: hisi: refine parameter checking for init dt-bindings: arm: Hi6220: add doc for SRAM controller dt-bindings: clk: Hi6220: Document stub clock driver clk: Hi6220: add stub clock driver arm64: dts: add Hi6220's stub clock node .../bindings/arm/hisilicon/hisilicon.txt | 18 ++ .../devicetree/bindings/clock/hi6220-clock.txt | 19 +- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 23 ++ drivers/clk/hisilicon/Kconfig | 2 +- drivers/clk/hisilicon/Makefile | 2 +- drivers/clk/hisilicon/clk-hi6220-stub.c | 279 +++++++++++++++++++++ drivers/clk/hisilicon/clk.c | 11 +- 7 files changed, 343 insertions(+), 11 deletions(-) create mode 100644 drivers/clk/hisilicon/clk-hi6220-stub.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/