From patchwork Tue Aug 29 07:58:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 111193 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp5977381ybm; Tue, 29 Aug 2017 00:59:01 -0700 (PDT) X-Received: by 10.84.215.199 with SMTP id g7mr27506plj.27.1503993541045; Tue, 29 Aug 2017 00:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503993541; cv=none; d=google.com; s=arc-20160816; b=qrmMaGZWW56yOYUKgCVWFy0Q9Zq9ypAMflS7oT5Mu5JGBCAQaDzz4U+vHBMfXlna0Y nCBrvM24irdhXAl/TMyscIkQuu00SSaVkVPfzxsntHcKtamK7Qq+1P4P7BgblelE9TyU ZbOOBUDPDNjc8h9nzc7JwXcq9wMaZH55baQWV1ByFvIaN80/zBdv1KjdyhqoW0CyeFmv RIkfDitcN8yqQkcrTEGx+G474yuo2XNMXO76NLF2xrUufCd8ojInooiTiTT8AAYVUZW1 l6zvPqD0hZmVmVyZ5Sp/YMl1DF9vw2Zjzxueh2qdl23fAvdN4SdCflfmF3hezDNu86Ca 9tFw== 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=uVgaDinCUcAdh6QN9GLXC8pP8fj0H4ITxWSbuXkSqFE=; b=q/QAJ2pDQay24mRoyHBYUkcEvh5ctEHY7DHNZLCFmO8ZbNilT+UTp87prLaPVdjtL5 h5yC2yMa9hZcP894nWQ4ZbRrrD2wc22FhtbcUeK2NkkGzgJT/ielykTuZmhPxvzc6eqR IpCh/J8QFnx9bIS9lrE3wuw/loQZ25t8Q6KL8A+R7c1BzPZD0Vey9tNEk83lBVOqOinm Mrn5I8Ek7b2VjvaZA8/tjJkoKu0b76HGEDQ+YvbPfaqAyHr9nMS1x3slqdqwZRH3tlDf /cRwFHj4Nb1iNU7Jt52cazJg0/6JNEz56mWt8o3VyaxzoswT3w87P8wK+qXKo3HeSjYx TrFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bJTZNtv6; 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 s80si1908882pfj.66.2017.08.29.00.59.00; Tue, 29 Aug 2017 00:59:01 -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 header.s=google header.b=bJTZNtv6; 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 S1750779AbdH2H7A (ORCPT + 6 others); Tue, 29 Aug 2017 03:59:00 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:35503 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbdH2H66 (ORCPT ); Tue, 29 Aug 2017 03:58:58 -0400 Received: by mail-wm0-f52.google.com with SMTP id y71so15782573wmd.0 for ; Tue, 29 Aug 2017 00:58:57 -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=1QTAkAouuld/wM+dc9gS4N+DO6HtlObajL2OqRTxkq8=; b=bJTZNtv6nd511Vi4PEmZ8aEC0ilhQnBUZdFBZRkpXK4T09jbuV3LAG2ClIjSuiIwow hwMjuxg18xerAQ/t/+vnRXxbAkika/ByQefdmDloKgGT02t58p5n6YcHYZQX/MV8dWxR IspLr+o2t5gwHguX43HrYnO59/DMzO7+M3IDo= 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=1QTAkAouuld/wM+dc9gS4N+DO6HtlObajL2OqRTxkq8=; b=rn4R6ldMEI7riO+mN00Rw15SNyi0XfSFeRYTz08CBamW4xCgybaAUs3lO5hzX5p+ci 2heR61iTqKu0NdrjwfKhygHpT5pQ2R74CyESAvwZ54TvPmpg2hvXJ66r4+/coqE9xM/7 3VfrZz+WeZl0VwLO7vGavYtT3MFHrVa2hlMJclhf8fgJ7ieAm/L3hyUtRr3fdbEjdzt0 su8Bszox79O+36JUEfmqSKcZsHmlzTYeWPKVwTGf75yP1R5otYRduZETDmT5njAPbo5v EfCHtLQOUMqnp0keK/Fc/OKBa6sPpAtnq3N131VBPHXCwvbbAE61zYxDAZWwGsV3AuBC Esfg== X-Gm-Message-State: AHYfb5gqBj7E4JgO5Aef+hMDFkdrGDzCm+eWLN9IAxs6fBf5irMq1tIE mx8GjWDVt+JMqXmu X-Received: by 10.80.134.138 with SMTP id r10mr2703412eda.123.1503993537260; Tue, 29 Aug 2017 00:58:57 -0700 (PDT) Received: from localhost.localdomain (li524-22.members.linode.com. [176.58.122.22]) by smtp.gmail.com with ESMTPSA id a30sm965360ede.13.2017.08.29.00.58.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Aug 2017 00:58:55 -0700 (PDT) From: Leo Yan To: Wei Xu , Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd , Zhangfei Gao , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Dmitry Shmidt , Guodong Xu , Haojian Zhuang Cc: Leo Yan Subject: [PATCH 1/2] clk: hi6220: change watchdog clock source Date: Tue, 29 Aug 2017 15:58:37 +0800 Message-Id: <1503993518-24428-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The old code uses tcxo (19.2MHz) as watchdog clock but actually the watchdog uses 32K clock, as result the watchdog timeout cannot be set correctly and delay long time to reset SoC. So this patch is to use 'ref32k' as clock source for watchdog. Fixes: 72ea48610d43 ("clk: hi6220: Clock driver support for Hisilicon hi6220 SoC") Signed-off-by: Leo Yan --- drivers/clk/hisilicon/clk-hi6220.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 -- 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 diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c index 4181b68..e786d71 100644 --- a/drivers/clk/hisilicon/clk-hi6220.c +++ b/drivers/clk/hisilicon/clk-hi6220.c @@ -55,9 +55,9 @@ static struct hisi_fixed_factor_clock hi6220_fixed_factor_clks[] __initdata = { }; static struct hisi_gate_clock hi6220_separated_gate_clks_ao[] __initdata = { - { HI6220_WDT0_PCLK, "wdt0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 12, 0, }, - { HI6220_WDT1_PCLK, "wdt1_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 13, 0, }, - { HI6220_WDT2_PCLK, "wdt2_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 14, 0, }, + { HI6220_WDT0_PCLK, "wdt0_pclk", "ref32k", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 12, 0, }, + { HI6220_WDT1_PCLK, "wdt1_pclk", "ref32k", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 13, 0, }, + { HI6220_WDT2_PCLK, "wdt2_pclk", "ref32k", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 14, 0, }, { HI6220_TIMER0_PCLK, "timer0_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 15, 0, }, { HI6220_TIMER1_PCLK, "timer1_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 16, 0, }, { HI6220_TIMER2_PCLK, "timer2_pclk", "clk_tcxo", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x630, 17, 0, },