Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2529787imm; Thu, 9 Aug 2018 14:48:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyYB51+IWvd5XaBW55I1jC8TNIQg2ze/zFazJwLBrlddpiAOlQGS7MqPHDwNgUuaaBFLOjo X-Received: by 2002:a17:902:262:: with SMTP id 89-v6mr3487986plc.221.1533851280433; Thu, 09 Aug 2018 14:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533851280; cv=none; d=google.com; s=arc-20160816; b=jxLoNQV94EyW/R3WgHYmuiBsiCY70/+A+M/UW7n1IJYZcPYYP3dIJcVdhdqaA90P2Y UJJBrjZBy6WzmQ8pwMIJ+M/H35U+eTgk/YfQTQ87LGBWKtLmnZ1BB4VJhtYOLWqqkVcC YpI4VPAI3sKzgeXpPF73CZ7YYQBmKkz6qMb6z+2br6Gh06VxNmSanmh0NEVcuSK+Do0i +zh7uMV1/ercVeBRdH9EDuRm2kWTxrlrm4pWBgTtdB4fKJoxGS/MEYHMg5NGHharTvFt AiewSZFHVELjw9aHp+lvRDz5owZkvB3ATd37h/nLTAeN3F72okEL8HFPfahQHjRQf7aw l9iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=+xu/OeCHKCO6Q3l5lbVEoFxxzIwSgK4eEfLEwPioM30=; b=B4HZLvBMhjvQrflbkbXThFprGURyIOXfVtTnFRVsEwXeFWhB1Ke60ganU7DdubrquF zomeiVHk51V1PMHNCexDFZRZN6n5CgiyOlYLiTkqPa5gSgzAeD5GpYoFP8ss0xuqdOe5 RFE5vB9hg/d31XTnFsSHCWZTq0JJeL+nehk2BtL5jhZe15s3l9pE9kW2CUINWjTlJXGi 3Wx7jV3ePtWCu4Okl7/C5HnxbcxpSizOpA4G8wKtCQCKVcqU3zaY82WjpfjZhFdb1eZB FzmLS56c+VkYdVyQBbH/kVJ5S63RHgYuC36/4gGBErQjol1xuDEg5UUMe+EG+HWBnskH ougg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=jwFiGGtk; 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=pass (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 z72-v6si7432337pgd.646.2018.08.09.14.47.46; Thu, 09 Aug 2018 14:48:00 -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=pass header.i=@crapouillou.net header.s=mail header.b=jwFiGGtk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727763AbeHJANR (ORCPT + 99 others); Thu, 9 Aug 2018 20:13:17 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:40364 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727294AbeHJANR (ORCPT ); Thu, 9 Aug 2018 20:13:17 -0400 From: Paul Cercueil To: Rob Herring , Mark Rutland , Thierry Reding , Daniel Lezcano , Thomas Gleixner , Wim Van Sebroeck , Guenter Roeck , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet , Lee Jones , Mathieu Malaterre , Ezequiel Garcia Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@linux-mips.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, Paul Cercueil Subject: [PATCH v6 21/24] MIPS: qi_lb60: Reduce system timer and clocksource to 750 kHz Date: Thu, 9 Aug 2018 23:46:19 +0200 Message-Id: <20180809214622.21256-1-paul@crapouillou.net> In-Reply-To: <20180809214414.20905-1-paul@crapouillou.net> References: <20180809214414.20905-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1533851189; bh=+xu/OeCHKCO6Q3l5lbVEoFxxzIwSgK4eEfLEwPioM30=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=jwFiGGtkwFmNYINXbkPbgXIrZTtVvbZyj8TfdSteGtwz3EelKBZlr1nyWQw2MSNB2cuz8GZHg4Yl+srveYHg/Eg1xt/4PdfejWxOe6esN0wpaG/5lCiNCu9T4O+2X9+L3vHog8XPLvfMrQ7AxqgrtgdgZBMyKDEDIqXwsqDIVMA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The default clock (12 MHz) is too fast for the system timer, which fails to report time accurately. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/qi_lb60.dts | 6 ++++++ 1 file changed, 6 insertions(+) v5: New patch v6: Remove ingenic,clocksource-channel property diff --git a/arch/mips/boot/dts/ingenic/qi_lb60.dts b/arch/mips/boot/dts/ingenic/qi_lb60.dts index 85529a142409..de9d45e2c24a 100644 --- a/arch/mips/boot/dts/ingenic/qi_lb60.dts +++ b/arch/mips/boot/dts/ingenic/qi_lb60.dts @@ -45,3 +45,9 @@ bias-disable; }; }; + +&tcu { + /* 750 kHz for the system timer and clocksource */ + assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; + assigned-clock-rates = <750000>, <750000>; +}; -- 2.11.0