From patchwork Thu May 18 01:50:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 100021 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp503662qge; Wed, 17 May 2017 18:51:11 -0700 (PDT) X-Received: by 10.98.217.5 with SMTP id s5mr1724735pfg.42.1495072271705; Wed, 17 May 2017 18:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495072271; cv=none; d=google.com; s=arc-20160816; b=pNNVFat8AS/fpVt5ahOEkGnwEpLcmGgZ4YaEX78+3r2bGanJkyohr9JDFWE668uEQq Irg9NRJghHAeKJu1KWbfiddMKvKfjEuVBpmx7wiXHWkL5HEdMakkCT+B7KLM70OsHNgJ ThraZbTtldYw2IGuSA4AjMrj9B+Ry3SsEemytvjo1pFfQUb/3oW1ywQkA+G50wFhlUt0 1cgb/UFqVL7TTZWHt3P0+Heqq33dcCs0A/0K49P9ZEZJzl44++WVh1HsO2duSTZQDHKH 1IHfZrGei5aIreL+cGH9P3KNkYPt84PHrnRyE5BEiD//vRZieYAiQvaS0bqJxISmMIl1 FiNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=WvAh8wgqWYf2xq9GY26xW04Ha56ZHJ1GL2lbE4utwJo=; b=MSUqXX80Z6CY4naEuAAx2PNRuWilyQmXBrUKyse3Zkyc9EOyoVsC3YA5A1FSNKkpUj bFZDN4/MzNAak65C5VwU/+gcadbNaEKRst+3wlhZXjiRv9qSN5AATiOjXk1on+Nc/5g0 5A+OnhNzIWhXBDwCy+vKxPC3/xkWfMkaPKeN1WOsgts83cK2hgZpW4LLXD4Y+rvf3ZS9 bY6tct/kMGexE0crt+1w61uNchEr0OWQj/2eUAGpCAQFFCkJ/FrOonS+y/MZwhOxGOXf rhW3jw96I4vPu0iZ4+ieaUEZfGkl84RMAp38SqyYZXkITyvomeAFjJ1wwYDaIST5ua22 SINw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w63si3685122pgb.333.2017.05.17.18.51.11; Wed, 17 May 2017 18:51:11 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754779AbdERBvK (ORCPT + 7 others); Wed, 17 May 2017 21:51:10 -0400 Received: from mail-pg0-f53.google.com ([74.125.83.53]:34519 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754759AbdERBvJ (ORCPT ); Wed, 17 May 2017 21:51:09 -0400 Received: by mail-pg0-f53.google.com with SMTP id u28so15197738pgn.1 for ; Wed, 17 May 2017 18:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=on99t6hpB88X0ekCl7WpUPOuRaDiD0Rh/uclbDTk1gE=; b=BWHYdq+t9JNW+suSjHzJmRFF1H/HawKI/hcdhpvT0QY4wpfo4+xYcMlpgAJmKDn8Jg 6PWYzMxle/RcnPN2kUPhX434WgtOwTSoYFauuIKuVGyxYCF+175EVMiC9pbldDGBYGLa KCY5qF8sfglvkNpMhG+QZOA20nIDdsnpXfJdM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=on99t6hpB88X0ekCl7WpUPOuRaDiD0Rh/uclbDTk1gE=; b=a8vpbiFNINtKvj4onBSvmTUGs4P+emNNUCBP+OIDsPWxOBeMFxLRBUriZ2i4q3TGp2 1cFJwo4dHlK+kdmqspoln0oj1cadrWWtlUR91WKNkUyBIR8xjyqiE2tFAGPEPs4U1EIs YDAGCuRz+n9Oo4wTrIxVOz0R7v+T9nCHQulcj1ar7MBdzg2KhXUHhtsmUAQtNOgBnC4p amgSKacegN/7sqxzJGbb0/qBj2E4FiDuppDgV23AZvOTrfBPDp4LjzwbbQvHwARsuE7c Lu47mgm/BVBeSwT6De9B5RnUzRUO0xZmnG3V6w6GPyRGpK0W6AWk0g09/1jXhF4YLmBQ I0Vg== X-Gm-Message-State: AODbwcAYL3IoYWjjCWKXgh1ze8kpQr1k1AaCvHNSJbmK2cbpXwtOmyfJ ypQV2r32CAvPy4j4 X-Received: by 10.84.230.133 with SMTP id e5mr1845104plk.71.1495072268361; Wed, 17 May 2017 18:51:08 -0700 (PDT) Received: from localhost.localdomain (li1627-128.members.linode.com. [172.104.47.128]) by smtp.gmail.com with ESMTPSA id m25sm5801020pfk.15.2017.05.17.18.50.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 18:51:06 -0700 (PDT) From: Leo Yan To: Wei Xu , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Guodong Xu , Zhong Kaihua , Chen Jun , Zhangfei Gao , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Daniel Lezcano Cc: Leo Yan Subject: [PATCH v2 0/2] Hi3660: enable sp804 timer Date: Thu, 18 May 2017 09:50:45 +0800 Message-Id: <1495072247-25217-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch set is to enable sp804 timer on Hi3660 for Hikey960 platform. On Hi3660, the sp804 timer co-exists with CPUs' architecture timer; but sp804 timer is located in SoC level but CPU's architecture timer is in CPU power domain. sp804 timer is used as broadcast timer when CPU enters idle states and the CPU (includes architecture timer) power domain is powered off. So sp804 timer enabling is prerequisite before we enable CPUIdle on Hi3660. This patch set is to enable sp804 timer, the first patch is to adjust crgctrl clock regiseration so ensure clock is avaiable for timer. The second patch is to add description for timer in dts. Have rebased this patch set on Guodong's dts patch set [1] and verified this patch set on Hikey960. [1] http://archive.armlinux.org.uk/lurker/message/20170517.083733.8207a50e.en.html Changes from v1: * Follow Steven's suggestion on IRC, Change to only use CLK_OF_DECLARE_DRIVER for crgctrl clock. Leo Yan (2): clk: Hi3660: change to register crgctrl clock with CLK_OF_DECLARE_DRIVER arm64: dts: add sp804 timer node for Hi3660 arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 11 +++++++++++ drivers/clk/hisilicon/clk-hi3660.c | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) -- 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