Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3562473ybk; Tue, 19 May 2020 07:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPp0iFDtd/IC8ccywRnNHUjSjR5tN77YCLDeHaZ1gBpChMfn+ZxsTi/tBlroinn81lAgie X-Received: by 2002:a17:906:3605:: with SMTP id q5mr19650898ejb.363.1589899241836; Tue, 19 May 2020 07:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589899241; cv=none; d=google.com; s=arc-20160816; b=xy0EkYfu+eC7jaQjj8sdNufDlHGtvmHCgB89zlLhkJErVTLUTz+Ub/pYOSs94OkEuY 3fhjOAIS71eh3AHAVt3eDYMLl2+/FkujwDBLeEZgetWPeXDZ3ysT9zNnNHaP4szjWgEb 6ybp87+xb1Tn5S/nt2Tkzrtg/fYFv4PT14gIQVzFYutOt4Qqp/yjF5Ukpg/1l3zfkpY7 8ABesvI3SYNPtLNxuM5j/6LLs9/fCTFCK/A/pqI9trsn11Pw5LlxAHVd1ixhpm8k/sBd h7m4NtaCbgQzfUKcTzNj3H4CFSdHCdaP5NjRM/ctSsrsmdCx2ts/ku3B+rW+848DHf11 08TQ== 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; bh=786m+2f8seaZWEx+Mm6nWXmKWIOV2dc5LPhmB1u7fYI=; b=SkLahDNgOKW+IPTw6JGBKEk3sHlTMVDy5uXKJVqQxcv6fcqXFb9B0LwSLTak3MWV7i xBKXz+3e80N9AxSEWruBJ8EqG1KzLk2DG10jwzk1kHGVaMbDZEoJj4znj0XbLTc+ZE45 U0HI0OZI321taUWNNbcRhGX1+9zbpvpvwZM4NqnIakL/3DXKkQjsEh+7MwN30jbZsXTQ Ya5E2R2RPYfzzJyZeOXr+ewyDfmiL9ni3fSHIj3iLtXooLOQ7QCfmn0ztRmv6+cp5yZ3 xsndgVqz3Rffy/Z02kNIecdqpSbtIAvMjnv0tps0I7aXTFHg5ueW6aLPDWBsvqBzoLhr 6diA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si8243152ejb.405.2020.05.19.07.40.15; Tue, 19 May 2020 07:40:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729223AbgESOgj (ORCPT + 99 others); Tue, 19 May 2020 10:36:39 -0400 Received: from out28-1.mail.aliyun.com ([115.124.28.1]:58431 "EHLO out28-1.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728775AbgESOgf (ORCPT ); Tue, 19 May 2020 10:36:35 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0850729|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_social|0.0150892-0.000571518-0.984339;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03279;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=20;RT=20;SR=0;TI=SMTPD_---.HalgxFh_1589898954; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.HalgxFh_1589898954) by smtp.aliyun-inc.com(10.147.42.198); Tue, 19 May 2020 22:36:22 +0800 From: =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, tsbogend@alpha.franken.de, paulburton@kernel.org, jiaxun.yang@flygoat.com, chenhc@lemote.com, tglx@linutronix.de, robh+dt@kernel.org, daniel.lezcano@linaro.org, keescook@chromium.org, paul@crapouillou.net, krzk@kernel.org, hns@goldelico.com, ebiederm@xmission.com, dongsheng.qiu@ingenic.com, yanfei.li@ingenic.com, rick.tyliu@ingenic.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com Subject: [PATCH v8 2/6] MIPS: CI20: Modify DTS to support high resolution timer for SMP. Date: Tue, 19 May 2020 22:35:19 +0800 Message-Id: <1589898923-60048-4-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589898923-60048-1-git-send-email-zhouyanjie@wanyeetech.com> References: <1589898923-60048-1-git-send-email-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Modify DTS, change tcu channel from 2 to 3, channel #0 and #1 for per core local timer, #2 for clocksource. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: No change. v2->v3: No change. v3->v4: Rebase on top of kernel 5.6-rc1. v4->v5: Move [5/6] in v4 to this patch, to ensure that we can git-bisect without ending up with a broken kernel. v5->v6: No change. v6->v7: Remove unnecessary "ingenic,pwm-channels-mask". v7->v8: No change. arch/mips/boot/dts/ingenic/ci20.dts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index db0ca25..06e3186 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -486,7 +486,12 @@ }; &tcu { - /* 3 MHz for the system timer and clocksource */ - assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; - assigned-clock-rates = <3000000>, <3000000>; + /* + * 750 kHz for the system timers and clocksource, + * use channel #0 and #1 for the per cpu system timers, + * and use channel #2 for the clocksource. + */ + assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>, + <&tcu TCU_CLK_TIMER2>; + assigned-clock-rates = <750000>, <750000>, <750000>; }; -- 2.7.4