Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp721486pxb; Fri, 15 Oct 2021 14:52:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzULy+lyP26fwH04WQEy2froH2gIwzPH+Zp5Fg98Ca5Du6bgc4Y3SWT5uauouHfuNNLRAE1 X-Received: by 2002:a17:90a:6782:: with SMTP id o2mr30801463pjj.165.1634334764629; Fri, 15 Oct 2021 14:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634334764; cv=none; d=google.com; s=arc-20160816; b=yYU6FtiDwVUgiH7UuSToa7Sdv537i90+FRj5cF9AsrY3ioGs7z6qqvagXg5LM8W2l7 uSH1sZd7GuxXLBCtHtf0TDE9cXU37QAaMLmwCcYWEvLbGDScYZQ+RDbC+8UADqI3q5QU qXZCnleSOU2ls9QEYfM+kesS8Zu/fg1oc3QkwMjHKnmUZuv2GWdoMv2YujCftCRE/ypv yqV7tlCCHXjm3aBCKM4LB0Fj1VvpM69dUhgjQUBYwK4Vb5jqSW+JxhFMXcQMPZh41ew6 SjnxdOqUxtoJniv3eUW/JJFcHgmD5R4E5sP8w4Di/exNJ1czHVo4g5Mztp0+mk8DfyPx chzQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=2e9Gjwt5Cjo6AC9tkBVaY/EImJ9+xhZBLuu1MnFPT5Y=; b=KvD75ZI/styyMaUxEuv3zQnNpv5XBOaSq81Ik/mfcEEXoUasSoInoUoXdSrUXj5SW2 JTSvv9EGuIpuA63+XbVtTnQqTIGfSdyAoKeE+cACs+oS6p5nzOZhvR0cgv9sCLuf+Eso JfNfA5Wh7Vj5I4azW2CbndPjYyFt1zkOI7N1T28NlsL1Ot+fit6kmWRe+u6xaaRmP0rL tBSKr94G6G3TqK+7GtIWeLF9UVbdeAXKydVjPJ5j8SKnoKib0z3kO6PKxkVJ4LD6mEwB cL8sjkgfnWGCou1oQkrAkMr4gLlWYceLPzRkqGzp3E8zxas+QelZBd6L8XmcJ+BgT+4d pa7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=CSXsmqSP; 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si11839969plx.363.2021.10.15.14.52.30; Fri, 15 Oct 2021 14:52:44 -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=@canonical.com header.s=20210705 header.b=CSXsmqSP; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238650AbhJOMJr (ORCPT + 99 others); Fri, 15 Oct 2021 08:09:47 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:48818 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238617AbhJOMJr (ORCPT ); Fri, 15 Oct 2021 08:09:47 -0400 Received: from workstation5.fritz.box (ip-88-152-144-157.hsi03.unitymediagroup.de [88.152.144.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 62B103F10B; Fri, 15 Oct 2021 12:07:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634299659; bh=2e9Gjwt5Cjo6AC9tkBVaY/EImJ9+xhZBLuu1MnFPT5Y=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=CSXsmqSPfeMtKRwmUskuONONORt5Yuo54jB2C/q6oseS9zDNprREI8hshq8SmhgvZ 87MWTVnvSJUuZJK47kx8rTxiKAzLY17nEnMykdhS4y6yiGFvgrfwizXwi7sXp46yPS W2MXlW17oqrV/lt5Go4CIlCF4bMJtY1wBVT3N51Cwj52CW28WDrkEBvbUCq19O93+f 06/hp9ih58OZn2ISgdemSzxhbFmqBORpfRD9bZfhaQxj2yedyJpjwxDkI2pIdhMYTC 2uJ9ZzreVEbfaAMk6hNGGGghdBZpQL59szl0/f7VSuXOEoz+Mya+5K2q5dfJCeVFZ/ P/co+9iqmL4Qw== From: Heinrich Schuchardt To: Daniel Lezcano , Thomas Gleixner Cc: Guo Ren , Bin Meng , Xiang W , 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, Heinrich Schuchardt Subject: [PATCH v2 1/1] dt-bindings: reg-io-width for SiFive CLINT Date: Fri, 15 Oct 2021 14:07:35 +0200 Message-Id: <20211015120735.27972-1-heinrich.schuchardt@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Add a new compatible string "allwinner,sun20i-d1-clint" for the CLINT of the Allwinner D1 SoC. Signed-off-by: Heinrich Schuchardt --- .../devicetree/bindings/timer/sifive,clint.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index a35952f48742..d3b4c6844e2f 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -26,6 +26,7 @@ properties: - enum: - sifive,fu540-c000-clint - canaan,k210-clint + - allwinner,sun20i-d1-clint - const: sifive,clint0 description: @@ -33,14 +34,22 @@ properties: Supported compatible strings are - "sifive,fu540-c000-clint" for the SiFive CLINT v0 as integrated onto the SiFive FU540 chip, "canaan,k210-clint" for the SiFive - CLINT v0 as integrated onto the Canaan Kendryte K210 chip, and - "sifive,clint0" for the SiFive CLINT v0 IP block with no chip + CLINT v0 as integrated onto the Canaan Kendryte K210 chip, + "allwinner,sun20i-d1-clint" for the CLINT in the Allwinner D1 SoC, + and "sifive,clint0" for the SiFive CLINT v0 IP block with no chip integration tweaks. Please refer to sifive-blocks-ip-versioning.txt for details 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 -- 2.32.0