Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3166182ybd; Mon, 24 Jun 2019 20:47:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDwHmaKdvSc3uEeqQm9uj4Xcc8Zltz0E6XaB1w+0BBeJgjbBipAdmXefOdNUrD+bP77qFd X-Received: by 2002:a17:902:4aa3:: with SMTP id x32mr29237784pld.119.1561434427617; Mon, 24 Jun 2019 20:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561434427; cv=none; d=google.com; s=arc-20160816; b=cLThlbyUHqlV2wuiNGZdqB18dILLEBiy3NHAxAXBmf/3e3syFfV4sg0VUHnsOe6xbX pH7noQ41sWTNJB9LzXqm6SFQgiZv/iOPwHNj2/NJgYMEsHpgjZhCOH6E5VnbIp+ZXtnN QxVnwZvAvQVtaR6oXQ29Er3boX7HiemjFldh/Kemqgjt7ppZ2z4jysBs8bLjstZzrZH1 6ypvCY2BSQd8HzAcMpCwpSpv6YWWPSeS11gC4Ek2dI/spw1S/vFrWUGKw3iJaoXy0IpU r3DsLk9GvStd5OlU94vafbriBehHEsnszpWbC0KgqH43DUr+5jQCmPrpgmAi1Fit0SB2 XuPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fHJcYCBcNXUYSUeyWJH2G52Q0AesBRVp7Eaq8JNgz+c=; b=sPNC5caMiY563KJR+Ay+NxI8e8iiyt0jRgQFTJzuvgwTmwjeU6cW7l57UNQ5PiMXH+ R5nG9ssWEaRburoXSeqCIzthunk02zEsW2fio1Mi5QAx6MQLOFInDP4yxZtasvaR6u/n Xkvz4bzS5cjJuzqXHLndVYrMz9HblK9fIPmJM4+zSYzDQTASEYcYrOo0VZmSfZfnMrrT 0CFlrgk4k1yZNB5vwPZb159Og2MWAfMFTaPv9VB+DiiKlPlL0TCTblM5dFPPTgdAxnHS BoHQcqWi/Z6piKPMfbSRww7Zs8yYx+Ks8uSqU0T1ovE+R/8N7DiGgS07t2Lny6hgdEnP OgXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=XE9orqoA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si11687538pll.343.2019.06.24.20.46.51; Mon, 24 Jun 2019 20:47:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=XE9orqoA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727881AbfFXW6k (ORCPT + 99 others); Mon, 24 Jun 2019 18:58:40 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:33376 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727714AbfFXW6g (ORCPT ); Mon, 24 Jun 2019 18:58:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1561417113; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fHJcYCBcNXUYSUeyWJH2G52Q0AesBRVp7Eaq8JNgz+c=; b=XE9orqoAfLtAq05fWzcx5ey8xD1fTeRMCP0772m4dova49spoEI+yiz2tdhneI5SCDvAIG yX/uxFQ0isovMIWPz9LnMmjCbrG2rig9aOa0h/U82iaNXyR8JWgbXPPK8KoaCs9l/2tsSJ CXeq9XSYPfDY6/jLrBydGr4F0BInyig= From: Paul Cercueil To: Daniel Lezcano , Thomas Gleixner , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet , Michael Turquette , Stephen Boyd , Jason Cooper , Marc Zyngier , Lee Jones Cc: Mathieu Malaterre , od@zcrc.me, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, Paul Cercueil , Artur Rojek Subject: [PATCH v13 11/13] MIPS: CI20: Reduce system timer and clocksource to 3 MHz Date: Tue, 25 Jun 2019 00:57:57 +0200 Message-Id: <20190624225759.18299-12-paul@crapouillou.net> In-Reply-To: <20190624225759.18299-1-paul@crapouillou.net> References: <20190624225759.18299-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The default clock (48 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8: No change v9: Don't configure clock timer1, as the OS Timer is used as clocksource on this SoC v10: Revert back to v8 bahaviour. Let the user choose what clocksource should be used. v11-v13: No change arch/mips/boot/dts/ingenic/ci20.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index 4f7b1fa31cf5..2e9952311ecd 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -2,6 +2,7 @@ /dts-v1/; #include "jz4780.dtsi" +#include #include / { @@ -238,3 +239,9 @@ bias-disable; }; }; + +&tcu { + /* 3 MHz for the system timer and clocksource */ + assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; + assigned-clock-rates = <3000000>, <3000000>; +}; -- 2.21.0.593.g511ec345e18