From patchwork Fri Nov 17 09:27:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu YiPing X-Patchwork-Id: 119132 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp288252qgn; Fri, 17 Nov 2017 01:28:27 -0800 (PST) X-Google-Smtp-Source: AGs4zMbmdl9D855ifpwI206YS2w047NuDbMQzV/zsLNjim9PXrz5ECgKDAGLaV2XcpLasOUL7Ytq X-Received: by 10.99.95.22 with SMTP id t22mr4439490pgb.195.1510910906918; Fri, 17 Nov 2017 01:28:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510910906; cv=none; d=google.com; s=arc-20160816; b=Ink2yBbKpDnsilkfAbujA26N2J9/l1JTWzvUyXjasSZeCFQl5fDU9+csmwvl/1CMmC 9A5Arxa+8CKvVy3GDI+WqHhQAtGYNAwhJJMEjp5pxbNUwO+3TAd+9hRPhziqPbR5bADe cPqcjYPD5BgL392NvvbaN6eJQe1rdjMUsC4O0hJUNvuXLiMZY4h4ZB+DneuEVxM7s14I iuHZ3UPVzdNnqew9BqTVfS/+XRv63x9Lxusc5adNtch3lRXQZ7ZKuYnbZHirVT79geSm XDABwDYGYF/7rwRv/CPFC1BrnIRzFV98mDWUWiYYP/gDCK+0JEoKr+5h6A9F1iVXJpPK DigA== 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:arc-authentication-results; bh=yDplePHMrTyPmzguKnb50+hslehuLse26N3Or+oYKU0=; b=WXZV+iX5R5i+jjmmOKMOf6oKsF3C6+AHfglfQb65GarCnRMvXXhAxMMK4HNpCiwcem awZqi4a/Td9pz5Bzra9gcaRyL9/L7u6Zlx4lW+A016wYjOklNzUayIHZtH4Sr0GwmbBW qLj/tF1YX91M7y2uU8wPIPLUix7hEXmXjUT9uckvR+S6HiO2y5l8l0sUMWWjBcaTQTvn dt5YuRn5avHfrVxI0hPCXehrwIpV01rTxBqz1Mn2//bvwt1qfItJGlRGM+T5yqXKy26m q9qykSynbSLZ3GDBW7zudaFODMLmFcluGNc0qYtYId7acMAkka71vJP/9BG9+t6WDGDN mfsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 f18si2443174pge.329.2017.11.17.01.28.26; Fri, 17 Nov 2017 01:28:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757460AbdKQJ2S (ORCPT + 6 others); Fri, 17 Nov 2017 04:28:18 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11005 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757449AbdKQJ2Q (ORCPT ); Fri, 17 Nov 2017 04:28:16 -0500 Received: from 172.30.72.58 (EHLO DGGEMS411-HUB.china.huawei.com) ([172.30.72.58]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DLD25361; Fri, 17 Nov 2017 17:28:08 +0800 (CST) Received: from vm167-7.huawei.com (10.177.167.7) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.361.1; Fri, 17 Nov 2017 17:27:33 +0800 From: Xu YiPing To: , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH v3 0/3] Add support for Hi3660 stub clock Date: Fri, 17 Nov 2017 17:27:29 +0800 Message-ID: <1510910852-2175-1-git-send-email-xuyiping@hisilicon.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.177.167.7] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.5A0EABA8.00FD, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 791435460ba60c03487d6c9f3eaf83d9 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Leo Yan Hi3660 has stub clocks for two CPU clusters, GPU and DDR; and the stub clocks use the mailbox to send message to MCU for frequency scaling. This patch set adds support Hi3660 stub clock, and since it needs to use mailbox so this patch set has dependency with Hi3660 mailbox patch set [1]. This patch set has been tested on Hikey960 with CPUFreq enabled. Changes from v1: * According to Rob suggestion, moved dt header definition into DT patch; * According to Julien suggestion, removed "dev" member from stub clock structure and refined code for global variable "stub_clk_chan"; * Fixed DT binding patch. [1] http://archive.armlinux.org.uk/lurker/message/20171027.061501.f895dee8.en.html Kaihua Zhong (2): clk: hisilicon: Add support for Hi3660 stub clocks arm64: dts: Hi3660: Add binding for stub clock Leo Yan (1): dt-bindings: clk: Hi3660: Document stub clock .../devicetree/bindings/clock/hi3660-clock.txt | 6 + arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 7 + drivers/clk/hisilicon/Kconfig | 6 + drivers/clk/hisilicon/Makefile | 1 + drivers/clk/hisilicon/clk-hi3660-stub.c | 186 +++++++++++++++++++++ include/dt-bindings/clock/hi3660-clock.h | 7 + 6 files changed, 213 insertions(+) create mode 100644 drivers/clk/hisilicon/clk-hi3660-stub.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html