Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4155774ybl; Mon, 13 Jan 2020 08:46:28 -0800 (PST) X-Google-Smtp-Source: APXvYqySJ6IgaqsPw6t2viWBPwFO8KHGF1D+zKBoKUWzNoPbgyFK4L/Dvf7qlwapslCer0dY6U8E X-Received: by 2002:a54:4086:: with SMTP id i6mr13440030oii.65.1578933988526; Mon, 13 Jan 2020 08:46:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578933988; cv=none; d=google.com; s=arc-20160816; b=vtFSU/3qGxg73ZMP3CqmLrDbzwaDXLxCWEYYRCkxLgeD30UxoBWP7sOL1+dSQAoBmP P0yN4h/0a4gDFY6xzFMmd3KtgJZtTyhMEu3tnt5zOA/V7ADbpdz6V6pr7R06f9RyBg3X cwZ90BgE10OUCcvVicyZnqEK1WdbtWMsvc06kgEs2uClMuraf+/w7aMo3jYGipaeCOvM 7hndXY6O/bdZn9nngIAJ3tM9fSoG6b3e4OIcL/R2u1T8NO+pCTNgB+0zurnnJf75++gJ A547s0zSmTy0imUyrccXI9lFT87v///gDl4+AKQZI4kCWpbGKGbXhrN1FFo2flqy6eSR 5UYQ== 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=56ueVequ/cY5OBTevN52Uk2drfTvzqRmudlVOyWp3tY=; b=WSBt43mUwR9zeUi+wm/E/2VBjtBBG2ZKXWQp1gJM3koTCVhpVlflQUX9qRFhDVdud/ wJa0axxhNo/8MGaxjOIsQ2Lr83xwKGrz38c893g0Ow9nR2e6fsWn/j8+y/06mcmnxGwa CqCR8Ysjd+KQ8Vh23rZ7Og+U097IUGOAQ5ijy9LP00jnJUM438Wb5KlNb8LgAPmHV1Yb ruKieHyWItkiFi/vAETnBl0SBsScXAR7vUiRL6P8ORqnpfC83TVP8XblxsbrWgXT6xCO miCa+Wedv9VcSHvoGCUNHrTDPoe1hZJsAK1GcxoSW4CfZmG4px8xi1XBDPUFiL7ZiRFO uvEw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si6910902otm.312.2020.01.13.08.46.16; Mon, 13 Jan 2020 08:46:28 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728990AbgAMQoh (ORCPT + 99 others); Mon, 13 Jan 2020 11:44:37 -0500 Received: from out28-51.mail.aliyun.com ([115.124.28.51]:51671 "EHLO out28-51.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728774AbgAMQof (ORCPT ); Mon, 13 Jan 2020 11:44:35 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08580225|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.258727-0.0162396-0.725034;DS=CONTINUE|ham_system_inform|0.080439-0.00417079-0.91539;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03279;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=25;RT=25;SR=0;TI=SMTPD_---.GbRhA7M_1578933839; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.GbRhA7M_1578933839) by smtp.aliyun-inc.com(10.147.40.233); Tue, 14 Jan 2020 00:44:17 +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, robh+dt@kernel.org, paul.burton@mips.com, paulburton@kernel.org, jhogan@kernel.org, miquel.raynal@bootlin.com, mark.rutland@arm.com, syq@debian.org, ralf@linux-mips.org, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, jiaxun.yang@flygoat.com, chenhc@lemote.com, daniel.lezcano@linaro.org, ebiederm@xmission.com, keescook@chromium.org, ak@linux.intel.com, krzk@kernel.org, paul@crapouillou.net, prasannatsmkumar@gmail.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com Subject: [PATCH 5/6] MIPS: CI20: Modify DTS to support high resolution timer for SMP. Date: Tue, 14 Jan 2020 00:43:32 +0800 Message-Id: <1578933813-80122-7-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578933813-80122-1-git-send-email-zhouyanjie@wanyeetech.com> References: <1578933813-80122-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. Signed-off-by: 周琰杰 (Zhou Yanjie) --- arch/mips/boot/dts/ingenic/ci20.dts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index 37b9316..98c4c42 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -456,6 +456,13 @@ &tcu { /* 3 MHz for the system timer and clocksource */ - assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>; - assigned-clock-rates = <3000000>, <3000000>; + assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>, + <&tcu TCU_CLK_TIMER2>; + assigned-clock-rates = <3000000>, <3000000>, <750000>; + + /* + * Use channel #0 and #1 for the per core system timer, + * and use channel #2 for the clocksource. + */ + ingenic,pwm-channels-mask = <0xF8>; }; -- 2.7.4