Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp581797pxb; Fri, 15 Oct 2021 11:29:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDGoLvjlv/CaFqIfn7tGrdkLerP76d1t7Z7jNUgHnikdXbhZz4CRorFDsoKXoD/Usjr9l3 X-Received: by 2002:aa7:81c7:0:b0:44c:517f:a759 with SMTP id c7-20020aa781c7000000b0044c517fa759mr13137080pfn.3.1634322544543; Fri, 15 Oct 2021 11:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634322544; cv=none; d=google.com; s=arc-20160816; b=qO8QDNcBro/XTSvsdT5lH8D0dds3YFRh5ynwfSJlLUNPoTrdgVMlGXvwAkSeica8kT YmYMwqN3yVRqbaD51rzJ0+n3aLNWc77LcEDG9266llV7H+luBgq55HSTdaajv30io0DR lYf8va8NIko1v4JO/2Oze/hnIuI1DNo33kFbpuk26w/OdMEIy8lm2spX+saxu/iuQspc YVq0rpfB6WVJI075jLIWt3cZoIFCjUua/lBYmfZUAf/5EC5J08v4fGZ/FczS+ThkBAEG 8G9s7WCUcJaSZqqf9ou3kBVnrZf60KdZjic+mYGj7G5zc5zjG9K/pJjj1rcfRGb86vTJ RiMg== 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=4vBofezLzSZ267ePulcBjbn/3hP3KcAP9nzxWY7BwCc=; b=hndtRlNVLNz+vpKOi5V8fJvvlN0BVur4MN+LouE0BqQEMK24qIIUoT3K6FUfz0Ceiz SUOrNnM2ZPfAIYoXdhI1oVEWFxu/wuoTF9wG2gcw1+1tnE84dr5TWwN6dT7WGj9gDkt5 UmJHduy3B+iqnYEpYltfAEvfZlR5x4t7ELeeUXmlx3KmV2XVDIZxCmR+VGAi4igLM2Ug AAzDC7lTdgTPmGi5s6lzOPNG4vcyjJnQtEh2GEltn3SHOY5NnGrW8G4Ofpqxl++FWgMk wynBQTjfwvAILLuH3+M/dV72m7TyzwZwXjSNaMgcDTCkolGiDYW2RYG1MWv/oeJuHLze mv0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=oo7KCxGi; 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 y30si8930397pgk.563.2021.10.15.11.28.51; Fri, 15 Oct 2021 11:29:04 -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=oo7KCxGi; 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 S237572AbhJOKL7 (ORCPT + 99 others); Fri, 15 Oct 2021 06:11:59 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:40278 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231776AbhJOKL6 (ORCPT ); Fri, 15 Oct 2021 06:11:58 -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-1.canonical.com (Postfix) with ESMTPSA id 909263F0B8; Fri, 15 Oct 2021 10:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634292589; bh=4vBofezLzSZ267ePulcBjbn/3hP3KcAP9nzxWY7BwCc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oo7KCxGip8hAvtiFb6719RTzo21kgwTdVknb14u/HrnGiSZ++JCoY/YoYbdd6mrue p9vEdK5oHaFbPg+MtyPXXUFK9XxZxtBZDR/Lf+A05aFGsSlvKtg5srEUXJMB4+6RVc v/EGNYYyb+zBeT+FSM5goCPaXupEqGePlVv9+35HVzlVAfqAoc3mLSIb/SBj3Houno EHVshFC4/ZzcD629vQ/zDl85T0O7CmuoD99/fO8T97j+d8UltFu8q53t0o6GhF7OZt Iy2Og74H0FkjnBH+X1XJkMXc+Dx+QRq0eKYfzfy7UOjrXiwHhoHaEsMl0vbiraFkhd LVaHi5tzWURYA== 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 1/1] dt-bindings: reg-io-width for SiFive CLINT Date: Fri, 15 Oct 2021 12:09:41 +0200 Message-Id: <20211015100941.17621-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. 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 -- 2.32.0