Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2748277pxb; Mon, 18 Oct 2021 00:32:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIwTrpRf7t9lFxw7nO5Sbexx9FCpRH576x2HpuDemb0Fzw6vSHqZlAl4nT5YJsfxBc+yrN X-Received: by 2002:a17:906:27cb:: with SMTP id k11mr27280661ejc.140.1634542351497; Mon, 18 Oct 2021 00:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634542351; cv=none; d=google.com; s=arc-20160816; b=Rqxf22NvqmngNpp2vLjHBn+zUWprPJLp1nWhKdnPxS16/DUfiCbfRuFA9JE7mjTgpr E8Q6zWU6blkOL3u5XwyB161+qNpb5jk3+ugbLN+cpGQ4Jj1Sp0h9fXCoQshgZGeWwECs lkw+mEo/OUtHBp2clzzE5ISIkJ6Fdkmv9QzHINwbkQ+Lta1TXCnQmYtxB2D2CRSeia0/ xyu3kX/YVB2bhm06FfENA+i7INCMk7KRXfm41ULkRCNF9tGGQyjY2+sWS8tkII6R5Ozw 8uMWB2yjuvot1RXcsjiB/42qKv7XttGU6oZXfO+vMgZsz7HpME1rSRiE11iYXFAQ8roO T5/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wFXVQ4KEtw8nWvUmZe9/ReIrDj2qrzV0p0234hn1yAw=; b=AJ36k7P5IWmJNO82IeZgjwEr0lIxrwb3CNHf9+W+Rpdczwrh6GV1TTDddVLlFGdBv/ 2ebMIMy9xwvPA6ny73c3jseIpY251dBhgzC1EZUF8R6LGRmL2ylzKTTUfVA1K/8NmNAW rCrvG+2Ab6Wr6LOOBaHTsWy/DyOmNDqXOJB/5ebCxm4jJp0O2kSktriJO220YjadqFLV sDPH/m8e53T09YCDPJnR5PVJyIX5PRAxo//4Rlx4pFohayneEugwOH0GudnCeJaHGanp /LmyoG/qGi7JxH421JKpVU6UZ9nWc8FgOxFjUU9D6iTTEVP7rN0TAygzbU1x9vH7uAvc qEqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TUakONoL; 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 r24si24273625ejy.194.2021.10.18.00.32.07; Mon, 18 Oct 2021 00:32:31 -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=TUakONoL; 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 S230328AbhJRHc1 (ORCPT + 99 others); Mon, 18 Oct 2021 03:32:27 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:46212 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbhJRHc1 (ORCPT ); Mon, 18 Oct 2021 03:32:27 -0400 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (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-internal-1.canonical.com (Postfix) with ESMTPS id 4DB5A40002 for ; Mon, 18 Oct 2021 07:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634542215; bh=wFXVQ4KEtw8nWvUmZe9/ReIrDj2qrzV0p0234hn1yAw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TUakONoLSJEVL0hrnWof73bOVJjzIkn6QswUigN2imkl53sUMC9zaLaULXXmbyvvu 9zntkI8qcg3nAKyP+czLVZn9pc7/41e2dMR99KH1qC8ZiIGUGs27vrnSy7BKqmda4w F9DW99J9btEmnfNL7RqKHmBiXsu6yzqTi07xOvfkKvz4GDjDW9Z4qN4OpIbWjIMk28 7idIwqTNWIp6l9Ovi8ueS3knlpXkCqGEI8mrXQjeLqfQl56gpMUPSfAWJbwVfYv8C+ QgpUaLvod8+PHMWpaxobcUlTDKMYAg2EDSAW26Z+t6LCWJEpyPo4Ay4xl9kHmdKCRG S53vX87R4Ii8g== Received: by mail-wm1-f69.google.com with SMTP id d7-20020a1c7307000000b0030d6982305bso2868172wmb.5 for ; Mon, 18 Oct 2021 00:30:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=wFXVQ4KEtw8nWvUmZe9/ReIrDj2qrzV0p0234hn1yAw=; b=VwmsdCiAKtC2DoBsY8DBIh6pTY3BoIZ2YWmHESkbpV6il40kCNEDIQbyEDXvDL0/pn uchfxgADls3Gpc6fC/x7LDpbctrwzg22dYxRmSa0Q2IHlKmMiLTqatMAy47rrM+wt8ZC i577Fdv8as4gMvtOwdartCYhEASHBnXulRvtUoe0MP5NkHO+FHgJvqZNYUSrPRGCnP5U e/0LzNlOig2WwdezCe/iCgtxktvwo4RvR7SLrk8j8SynCb0StD798w6wdPU2XdWNNCfE d/GP2Kzf/4WVOB2k1BuhetcxNEjhUbXTsszgw3fc8yprqin62MzsTMoWInLJbkAxyPs3 M6tA== X-Gm-Message-State: AOAM533VwqS6oEpQ7PqBL1HcwRiCFPHSrHgmPSD3jlxoWkK0dj8AEPM5 yDvfPsUlBnKkutlq80v5jRnpGcw1pEWJhBvOrVHqdeGqZGpdmfubIzd61+OPJ2MkhgP79FIDJUA NT+bwDQdDLjT9QrnQCGHuxmKNk6Top9uR/J4kHm0AAA== X-Received: by 2002:adf:e3d0:: with SMTP id k16mr30306594wrm.385.1634542214845; Mon, 18 Oct 2021 00:30:14 -0700 (PDT) X-Received: by 2002:adf:e3d0:: with SMTP id k16mr30306572wrm.385.1634542214639; Mon, 18 Oct 2021 00:30:14 -0700 (PDT) Received: from [192.168.123.55] (ip-88-152-144-157.hsi03.unitymediagroup.de. [88.152.144.157]) by smtp.gmail.com with ESMTPSA id w26sm11594434wmk.34.2021.10.18.00.30.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Oct 2021 00:30:14 -0700 (PDT) Message-ID: <7361287f-9c07-8b76-d405-35f287ac1706@canonical.com> Date: Mon, 18 Oct 2021 09:30:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: [PATCH v2 1/1] dt-bindings: reg-io-width for SiFive CLINT Content-Language: en-US To: Anup Patel 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@vger.kernel.org List" , DTML , linux-riscv , OpenSBI References: <20211015120735.27972-1-heinrich.schuchardt@canonical.com> From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/18/21 06:33, Anup Patel wrote: > On Fri, Oct 15, 2021 at 5:37 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. >> 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 >> + > > Please drop the "reg-io-width" DT property. > > Based on discussion on ACLINT MTIMER DT bindings, Rob suggested > using implementation specific compatible string for detecting register IO > width. We should follow the same strategy here as well. Should we create a completely separated yaml document for "allwinner,sun20i-d1-clint", "thead,clint0"? Or should we integrate all in sifive,clint.yaml? Best regards Heinrich > > Regards, > Anup > >> interrupts-extended: >> minItems: 1 >> >> -- >> 2.32.0 >>