Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2618458pxb; Sun, 17 Oct 2021 20:40:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+LVFvg0B4GiNIvx8YkWWgkFJoDNdO5jddqKrUua3/m1S2mNhaRgqu1OUCZ1FAuORk37aC X-Received: by 2002:a65:6aa8:: with SMTP id x8mr21287263pgu.136.1634528438893; Sun, 17 Oct 2021 20:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528438; cv=none; d=google.com; s=arc-20160816; b=F2/oys34h7w9r/iltCXUgk8uCoA3Mh6ykR/9b02ToBQwQ3C6Bo1jcgox2vbUOvra78 6md4bEgKtS7r0hm4xwYwOXsApLYnKe+NZ+MW01py3AlfOmsv0zBTbUP2utIv/8bfIaYt cnk1fP170jqWB7ggpT1y+Fe4qw2IShOuI2SmfQQhibfqXjcarpS7voitVIJ+x630Dj7P FdIqOQIz9aiSazaPFw4ynL1IQoKxniKaoE3Fyh94mLxyKcMgJ8rey/pdJjE3frYkOaxR HfugWwA9t0qo9kP+M8xlaqRz8f7Fg4ehjmUrDy9XEV39QnvuSoAg19gauITTADTJ4s86 ZD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=kfvAxb6atL/vWwpV/RLDdStnL8qUxjQfmKzvVV1svv0=; b=0Wpq/OEaY1aJ7cRvaybthkJXAZhBIaX1lRTxGRad01XLST9zW5CTpAI3hir8zVcaxH yWlm4rR6HTasddFVMZLWQ+bRdt0tVoQDLqkiAcpH83nM891QnkIt2De2+Zf7Hk2c5IOr TpPTweeYHFkXYhXhts/9I8I6VUqFQl2HWXYemQ9g4FtAFydnQ87U8wLvDM1rB5voWFIM 07YBo/1nepyStIkcgX5Yk4XBBioZQ1cXzvR+53jsyDbi0ZC6Hkae65CEnZcWKlCf8oZW AFsMkBo58Ce26pLGxCatT5wb/bx4h++6f4cjjcehLrwkZ4vuGu0gJWRKIRGRg6kbp7Te tKLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=a6WZOqw4; 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=126.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si277058plf.311.2021.10.17.20.40.26; Sun, 17 Oct 2021 20:40:38 -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=@126.com header.s=s110527 header.b=a6WZOqw4; 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=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245058AbhJQI3V (ORCPT + 98 others); Sun, 17 Oct 2021 04:29:21 -0400 Received: from mail-m963.mail.126.com ([123.126.96.3]:50978 "EHLO mail-m963.mail.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245032AbhJQI3Q (ORCPT ); Sun, 17 Oct 2021 04:29:16 -0400 X-Greylist: delayed 1870 seconds by postgrey-1.27 at vger.kernel.org; Sun, 17 Oct 2021 04:29:15 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Message-ID:Subject:From:Date:MIME-Version; bh=kfvAx b6atL/vWwpV/RLDdStnL8qUxjQfmKzvVV1svv0=; b=a6WZOqw4G5xuXe+lnsjqw 1tv72V3TVFYyiXayQp40lpcELhhLTFG69o+Hn+J2zk+Hvz2D0XtBhEwcpIXF+Lo+ ZOdnVZ98mxj+Z/v+oomb5gG69+Qi3HjIdmKktDxJ6hc0QWdO6KsEOGnG8TJbUHRg 020vdYf0T1kAst/lKAGaxM= Received: from [127.0.0.1] (unknown [153.99.123.184]) by smtp8 (Coremail) with SMTP id NORpCgBnbrK+1mthlSZQAQ--.27969S2; Sun, 17 Oct 2021 15:54:40 +0800 (CST) Message-ID: <2cca0c29a56fd8be0dc9b25f68f5c308484d093b.camel@126.com> Subject: Re: [PATCH 1/1] dt-bindings: reg-io-width for SiFive CLINT From: Xiang W To: Heinrich Schuchardt , Daniel Lezcano , Thomas Gleixner Cc: Guo Ren , Bin Meng , Samuel Holland , Atish Patra , Rob Herring , Palmer Dabbelt , Paul Walmsley , Anup Patel , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, opensbi@lists.infradead.org Date: Sun, 17 Oct 2021 15:54:38 +0800 In-Reply-To: <20211015100941.17621-1-heinrich.schuchardt@canonical.com> References: <20211015100941.17621-1-heinrich.schuchardt@canonical.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: NORpCgBnbrK+1mthlSZQAQ--.27969S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7CFyDGr15Ar18Wr4ftFWUJwb_yoW8CrW7pa yxCFnFga1Iga4xWayxXa1kCrW5XrWkJw4293WDt347Gr4DWa4FqayagrnrX3W7A3Wv9FZF qa409r15Ga12vr7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U4yIbUUUUU= X-Originating-IP: [153.99.123.184] X-CM-SenderInfo: pz0m23b26rjloofrz/1tbiIQAvOlpECkDIvgAAsW Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021-10-15星期五的 12:09 +0200,Heinrich Schuchardt写道: > 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 > +      32bit access for MTIMER. > +    $ref: /schemas/types.yaml#/definitions/uint32 > +    const: 4 > + >    interrupts-extended: >      minItems: 1 >   I think we can move has_64bit_mmio to fdt_match->data.This way we no longer rely on 'clint, has-no-64bit-mmio' or 'reg-io-width' Regards, Xiang W