From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E6C52F5A36 for ; Thu, 9 Apr 2026 05:37:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.128.173 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775713080; cv=pass; b=gxcbx5IQRZsqIN3SWLQikVMnFtOH/McPcdMX3xpI8zkT7JCRDj0qbJQUlft6F44a7glQV59Rzzvu1DL0+FNcLIt3zq8t98lSOVJK7inRfvoxF41qtxZo5GPxkmjxAVTgrpMuenIrL7WNKVSWg/mwXR299k58pWDr2cwIqB2KP9s= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775713080; c=relaxed/simple; bh=i3XyCP+obrtYFom9qmKraRyXOU/Ju05wWrz/nQcIo2w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Xq7qa0RfxiRH4qpiXC+bFRdQENJuGZMBBLjgzaRu7LVeQvwl8mRoPm4eUZoOnB8t17nWyqAS5NN+lYg8uHjE+8Seok3TmdNquk8FKj/cCZWs9HgAQv17j3dBedUiUxOgiTukiFtkK7ijiJwIKD8JXWSb+0LJogecdXqDrl+++vc= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=IYBm4kMR; arc=pass smtp.client-ip=209.85.128.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="IYBm4kMR" Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-79f855b2575so5237977b3.2 for ; Wed, 08 Apr 2026 22:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775713078; cv=none; d=google.com; s=arc-20240605; b=Ze2dG0/6EOvlOcn5IfsWZIilUVkyxxYhj06IJcvhylq1u+0QqSQMrF7ddFVC2fX7lr oEt9z8a9xddhOeUFGXw3Re/MhUZP4eSuFRoFgRSZXDFHnZ6M2sG9kg2PbNxscU63E7di pvpX4n5C1N1OZXtHPBD8B2IWCn8nVtutoPjfIbbdOiAWuEI0PusKo87RPp7WTADJBzON Yp6KqGbdhZFq7zZ65vXyvhKm5WVnJBoBfQ/CpzKSEsO2A2Xgg3H2Hl9WITPkUxaheFXH OKaSHFQRcZ4G8oYwD4ev9622WBfEKwCv4pVeWzeXUIVps96ua+becD/eBzv7GZs7W9y7 oZ6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=i3XyCP+obrtYFom9qmKraRyXOU/Ju05wWrz/nQcIo2w=; fh=nBH79QEdp65wEbIpxa5tb2oHKOeWzbW9FyQuJ1cEhKM=; b=bpxxRAhCLY8R3MUbsn8tPb7Vq6wweoj7qvZmhynZ7oNkPz3xlfIWNSV/XwYZRHWraZ +GuL38p82GeteIePTr2USsYxKr/bj52nwOoZnVkhjjcwaDyumU78hek3nrcodBFNVg3X Zr09RvlvP9NF1Rs+aBKj0w16i6GESObHytjNJ/PvBM4F9cV7VNIChUErXZ5bfOAnqlwL Xr5QA+YksfcmD9WDYlf/hWadBmy486pkpVFSpssSfDVs7ywjyd5UdKUAP+DGL1or+RHi oiGuZSbkm/XxK1xoZXa0hpJqPpjItIGGg9uCYxO3s+oNRe4344WTz1FbotAOSgIPYGBw L/4w==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1775713078; x=1776317878; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=i3XyCP+obrtYFom9qmKraRyXOU/Ju05wWrz/nQcIo2w=; b=IYBm4kMRETyw6Q+Mlsmusq0UgAH9lJ307+vTpYA5JLLGwqVZFq6vc7FflZtqnHa4Qd bnhCiwucaU4cYlHj4tAf/9hBJZZxTgRcmCp75EK+TPYLUGOotjINE9BSoZ2o/iCdEDpC I8xJrjivERfDRQr1MYJaotP3o7SasHItWfIPnYORutMvKODlqHYjydDmQlk7NUB3mxNo +s0/WGw90XGwP8NEi3ZJTPGWUEFGM7Yfs196n4yEt9YHGh+WQ/yHIuYXSduzlEPUW/Kz Hdbgr6+p7NnZEwidzCsC+/DD2PFzOHV64FfocbZaHnhJOZE87kvQJlZfRgp+5VwAl1x4 tGpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775713078; x=1776317878; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=i3XyCP+obrtYFom9qmKraRyXOU/Ju05wWrz/nQcIo2w=; b=XPFKobCjujOB4cke82IEc13zwlxLtqKZVIcIh02z3Ktv+ChGITp9+5erwoMtmR1PhQ sjYa7EHcGw17X1N8PfvYYgd4cqjW5kavqMlxRSS30EHyuGLG+HMNTBNNSDLhLQt68uwS O6PC1VvthpwfjMSwQw5hOHbpk3BJ/MBVgBV6xB9Y9K4YhYf2SQ3TXlTJQDIoKEcFCBbO IBvXMAWwC1zv4oW+Ie0X6xshJaRmOjpOX10YVugQA65ziUcMIcZhXIzGD4JSEE8Reypo 8abxzCKfehsVhXNO+5rFS/qsj/AWWViU/KvV6OM04CVRxgdXctdhyUjGtAA/QcSxTQEH 19Eg== X-Forwarded-Encrypted: i=1; AJvYcCWfKA2zaFMmkvU4yp7OQem+cFGCAUW+2ZpeKOVmldUQmYjcPxa8QHWGqnsHyXrjixcBy3PjCLpNpndZojI=@vger.kernel.org X-Gm-Message-State: AOJu0YxwD3k9ZS2f6nO2Mke6paSJoty1qMFotrKRN7VtgJbUCtrZIekb FRlJ1LPicoyiVBOcp2SLcxgKmtVgzzobIfUQxUNcTUZ979JE7Q01JXwN9hVxyloRTdPhSNtHjtP OUS6kZvucIVBpLrywa1SOTtDDZZA0ZUNGgd3XE+Vibw== X-Gm-Gg: AeBDieupcRxOMVLHuSB2bPdyIcmXEJIxXhZ4IEa8AiJvfcn6+oov0qSm2hBl9QUHOg6 aFx2Ad6PwdVOlEjYO7V+4ks474AUtFHYid6jC1Ke0IZo/gjosdxQI8kf9Vrr7fDtoMBvcIfVeCg YWuTSK9PtMr4m1MYlXRTyj+sscB2lDM+jQukm1u13rXG1C3plum/7aXWOY0Ywj/q2ysKB+7r7O7 IN7WJwAcNXK8vDsq5zcDwjaqhMaRZ24QQE9FpctH65MtBpXT9mU6FutcDpO9y1zhFhpQXroQlNA A+1axCWK3w== X-Received: by 2002:a05:690c:5c1a:b0:79a:b766:c034 with SMTP id 00721157ae682-7a4d41b69aamr250652307b3.25.1775713078165; Wed, 08 Apr 2026 22:37:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20250321083507.25298-1-nick.hu@sifive.com> In-Reply-To: From: Nick Hu Date: Thu, 9 Apr 2026 13:37:46 +0800 X-Gm-Features: AQROBzBOMRLMyPW1IxjFIvzYLs1WKX-TeC10rrZj9pOqwnojeXqFrZDa0fuKyLU Message-ID: Subject: Re: [PATCH v3] dt-bindings: timer: Add SiFive CLINT2 To: Charles Perry Cc: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Anup Patel , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 8, 2026 at 10:41=E2=80=AFPM Charles Perry wrote: > > On Wed, Apr 08, 2026 at 02:15:19PM +0800, Nick Hu wrote: > > On Fri, Mar 27, 2026 at 4:56=E2=80=AFAM Charles Perry > > wrote: > > > > > > On Fri, Mar 21, 2025 at 04:35:06PM +0800, Nick Hu wrote: > > > > Add compatible string and property for the SiFive CLINT v2. The SiF= ive > > > > CLINT v2 is incompatible with the SiFive CLINT v0 due to difference= s > > > > in their control methods. > > > > > > Hello Nick, > > > > > > Can you help me understand what is this different control method? I'v= e > > > found that both OpenSBI [1] and U-Boot [2] use the same match data in= their > > > clint driver which would indicate that they are compatible. > > > > > Sorry for the late reply. > > Hello Nick, no worries. > > > Unlike v0, v2 requires a write to the mtime register to kick the timer. > > A kick once at the beginning or every time a machine timer interrupt fire= s? > A kick once at the beginning > > > > > Also, do you know if there's an easy way to tell if a sifive clint is= a v0 > > > or v2? > > > > > sifive,clint2 introduces additional MMIO registers > > Is that the high resolution timers (HRT) mentionned in the description? > > And last question, would you happen to know if sifive made a clint v1 tha= t > does NOT require the mtime kick but does have the HRT? > Yes, that's correct. > I'm trying to figure out what should be the compatible for PIC64-HPSC. > Some code from a repository called "FSFM" used "sifive,clint1" for the > compatible. I'm wondering if I should add the clint v1 to this file. > > Thanks, > Charles >