Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp149706pxb; Mon, 18 Oct 2021 23:11:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8Zqec3a5QF5/74SqfIJjnFRvzXrOJGaqMd8znvPBQ87GvrX8NSETmvDYKEIGb3gQpz9L3 X-Received: by 2002:a63:84c3:: with SMTP id k186mr27626605pgd.462.1634623917650; Mon, 18 Oct 2021 23:11:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634623917; cv=none; d=google.com; s=arc-20160816; b=dbiXApR+JCVAwAvnkuGbAUeKlKatG8jvh8h6b5+u0QtUV4m/R3H/ta2ZEK4sappulz 4WtJB4gOreJltF/g2jRApzfmI4in6vwKZnTpRcGXgORXJe/SScsBfVTPXuSWIeXw6ZYf 5xUBUjXSS1FMvouyBWfmyNPjkCOODic/F46nPlD38IOjLF/du/uyWCrxyzYc/pUA95sN N0WQdOIhoYEYhJi7SRSaKcOEKB6cQxIv5lb4ZwIuxy2I7REaVktJrtZwLmu4PNKu/+jG y7ViUDXAF/XgYRcJ7L1BUGiz7eMECDphRQNkp4h53vnYQ8w7vRAOs92yCCsQEMdKFsof 5M3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=baT2DdVLnGlxA7Cs0INCbyh8GFwSww9FrJbYcyRUZzA=; b=h6pErmHUq5hXKrzpyM23mDLaTDDiuQOm/mJWmCXhrISS6NDMUCX/eyFxHdfJV6RMPc SGuUXulbOSuSaCLOvoBmVlHOSqMQJd93A3ZwndHO+7naBqsykzvnCK6b9LCatQSQNaWX nuFQqg/6rTZpP1Aymnwghlt5bYt7M6hk8yxeRGPbApuBlrox/vlkz1wlxfFH6apxppzq wkBT4ceUQtjA5hmhLC6ajHjX34iJGTfqEHFGlsYEIyYqYg4Sl2+jNYoXiluUi/O+auCh /cVQOYa9Oq50Ge2uc5maZ/+7U6mCuLnQebHd7C0qeUCDYGazDic+3mbyHcArpKtdnHs9 C1xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPkhJySx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si2475587pfc.166.2021.10.18.23.11.44; Mon, 18 Oct 2021 23:11:57 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPkhJySx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbhJSGMo (ORCPT + 99 others); Tue, 19 Oct 2021 02:12:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:48012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbhJSGMn (ORCPT ); Tue, 19 Oct 2021 02:12:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 612F761212; Tue, 19 Oct 2021 06:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634623831; bh=u+Ilu8ZfCIk/SAHfeUMLovFRamhqskc32+yAIxg0U+0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DPkhJySxmCpIUk2eNWQTLHbFcR/tyojuHdM5zdK1mzRiPsABPFMPgPdyoofQ4PXoW 1X9pjj0vKQPh2ZAmyX/XwOkFYdV6BcAF3NF/qv62c5vQom2zOVFjfWoUIFnG1S4YJ2 yCg/AzSW6lH4RJ0QQRD8ZbOhYhgx3d4jkPNCeB4ER92YGvWNkkspjD84sEDQgogBro dTR5qWEA4HzD5CEl97TPb3vhfgJveiREpUXFRlYpmDdKczpRuUlrTiHFWkdr1E4w5B yk7ToI331G1T7wzyaBLL6AX/vL5yqf4euyHJMToJG1YqxXZwAeDXnxzcZ1yjPeCT3E XX3bEM/JDdoNQ== Received: by mail-ua1-f48.google.com with SMTP id f4so1298041uad.4; Mon, 18 Oct 2021 23:10:31 -0700 (PDT) X-Gm-Message-State: AOAM530kZvh4U7x+d5qqX6BNsKv6Gvrah90alHRNxx52CQFurqCNdkKy 0DzsjXIf5BN5qDDm/c+Qx5N4X8B6bgkDQmr7GL8= X-Received: by 2002:ab0:6797:: with SMTP id v23mr31062668uar.97.1634623830411; Mon, 18 Oct 2021 23:10:30 -0700 (PDT) MIME-Version: 1.0 References: <20211015100941.17621-1-heinrich.schuchardt@canonical.com> In-Reply-To: <20211015100941.17621-1-heinrich.schuchardt@canonical.com> From: Guo Ren Date: Tue, 19 Oct 2021 14:10:19 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] dt-bindings: reg-io-width for SiFive CLINT To: Heinrich Schuchardt Cc: Daniel Lezcano , Thomas Gleixner , Guo Ren , Bin Meng , Xiang W , Samuel Holland , Atish Patra , Rob Herring , Palmer Dabbelt , Paul Walmsley , Anup Patel , Linux Kernel Mailing List , devicetree , linux-riscv , OpenSBI Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 15, 2021 at 6:10 PM Heinrich Schuchardt wrote: > > The CLINT in the T-HEAD 9xx processors do not support 64bit mmio access to > the MTIMER device. The current schema does not allow to specify this. > > OpenSBI currently uses a property 'clint,has-no-64bit-mmio' to indicate the > restriction. Samuael Holland suggested in > lib: utils/timer: Use standard property to specify 32-bit I/O > https://github.com/smaeul/opensbi/commit/b95e9cf7cf93b0af16fc89204378bc59ff30008e > to use "reg-io-width = <4>;" as the reg-io-width property is generally used > in the devicetree schema for such a condition. > > A release candidate of the ACLINT specification is available at > https://github.com/riscv/riscv-aclint/releases > > Add reg-io-width as optional property to the SiFive Core Local Interruptor. > > Signed-off-by: Heinrich Schuchardt > --- > Documentation/devicetree/bindings/timer/sifive,clint.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > index a35952f48742..266012d887b5 100644 > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > @@ -41,6 +41,13 @@ properties: > reg: > maxItems: 1 > > + reg-io-width: > + description: | > + Some CLINT implementations, e.g. on the T-HEAD 9xx, only support ^^^^^^^^^^^ -> allwinner d1, new version of our processors would support 64bit access > + 32bit access for MTIMER. > + $ref: /schemas/types.yaml#/definitions/uint32 > + const: 4 > + > interrupts-extended: > minItems: 1 > > -- > 2.32.0 > > > -- > opensbi mailing list > opensbi@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/opensbi -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/