Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp674422ybh; Tue, 21 Jul 2020 05:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOdiXIw5j9eODQfEfKDJwHEZIGDFSlDlfIaXyxecg6Mr1d5+/BdhVxXO3oNKRcUar8pScG X-Received: by 2002:aa7:d2d2:: with SMTP id k18mr24838681edr.16.1595333936037; Tue, 21 Jul 2020 05:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595333936; cv=none; d=google.com; s=arc-20160816; b=g7uOPiyT3X0VDH8ztGQplJSNRcPZRrHi/9KR8QNlo50KDhZwukUu9eO/n2Hwy+gFAS s7L0EpqXVpBaT1s0Rmzrml4fPEBKqf9dLBl6jWVQHbQiZHi9fLZazPHud7eJqpp2nhnE Nwm3ic4zYTsaIIxzNr6XIHf3fpBw85srCwnhAI7o17oyCsp3fSkk1yO0hfxYwF4Frfzs iBev+RFsyMIYae+2TYBtHtyJATuHC5bLpcRAS3dNdZiAS1MmhgvIRGzwCID1br3c1DDG tNeD5tYLsrlh5x6bCcpMIrdKhghy8CVr35JtpFp8jHFKq7S9CeFmwkVkWq5dLz9eDYcC DHcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=bXPYZoz1OZvFJbxoCWlNL9817NOB+zxWWBK3hJr5qF0=; b=HQAPNW9GiQEsHKCAkjsEJBwUhbzIwIBiJpC71Q0iguUTILeKGXEIt5UAFsTrAW/b1Z zxBv4VMK1JWBC6jRlE2ALjczV48nQAS6kVmlKcscXKS3lNqv7Mio8TYkE9zH3tDfIaOZ JGEI1l36nGib0g9R9ytzMpQG9EgQyiof/GvCxOa9E4gb/IQntNKvSwBwjBxf/SdqJGrQ X5IYKObucJ42PZ8wv38PGhr+mPPoIeisVinfi0lCEpxUCErIAFbYQTHcIk0hFZ6D8Gkr 08c6olyJ9QaKENOzlVwvlvhy6aAPrYpyag15bhkq0wovw1ypEKEWwZfFQh1R4isiCxQj F4rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q1bGCE8E; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si12892432edq.471.2020.07.21.05.18.33; Tue, 21 Jul 2020 05:18:56 -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=@gmail.com header.s=20161025 header.b=q1bGCE8E; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729933AbgGUMSD (ORCPT + 99 others); Tue, 21 Jul 2020 08:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726715AbgGUMSC (ORCPT ); Tue, 21 Jul 2020 08:18:02 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60DEFC061794; Tue, 21 Jul 2020 05:18:02 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id u8so9161037qvj.12; Tue, 21 Jul 2020 05:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bXPYZoz1OZvFJbxoCWlNL9817NOB+zxWWBK3hJr5qF0=; b=q1bGCE8EcEkb1VR8sk6YW4pGfBsPhbbNXM39cJ/a8oyNHDSzyC5IIgzzr1p9F/bUU6 Ss70SU+nK1LAxIv5y0ilgsQGGUiOKY8IczcGMPdWyzM8gf3SpFQc9T0l+yVsrUw3RhuF NbEa1LdB6i7768zAYEPTE/W8Imh2VDNsQQf+5w70nCKP8wyVLZidby3MjIfYjurQ8lng xv0leU8swMonzqB+wQqkBmGYxQDeSCwRnFfk9IG7i1SfrMAEdceoP5VNu/1vwR9ZOxyS VCMxuOOXGwDFXZ/bZR9OB1H3DMvVUFoetXGW9Ok9IvfTgEpNbV5oqQnvRGi3znMie2Iy DCzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=bXPYZoz1OZvFJbxoCWlNL9817NOB+zxWWBK3hJr5qF0=; b=lKtxhPQ85V6NZGVUR3GJlTRwNZe4h9FNhCjusPNaqDy6BF6i68iJegGwSCceV3Kr9d XKJQ72WJq0LOV4M0o6lh/somM3VFIlZdAZ/Or0PUnpTT45D57dW5ZT92M4MBgTQovcW2 nsMztfF5P//mHBnuGyenesD95SkeTmTMAf9ZhWPfk51BmfZNukweV9G1kmyMy8qr6k66 BLNWkcSHnCqun++eBv0aU6TB0fTdmCqZz2J/cjkIMJQzzMsoUGuBzAhaspShSUKqPQBg nQzgYUn5orWzvoWUdx1XB2CBME4P3toG8eV+5hm2pE5G6nKpYNZtUTTHobpRsnZVqUgX lk5A== X-Gm-Message-State: AOAM530+jzw7MhqtG8B53/vh+IpJxGXxNZmEnLrA6MmvnXJas6OD/fnd pZO1q8jGNI2ZYnGY81GWez4= X-Received: by 2002:a0c:8643:: with SMTP id p61mr26743630qva.43.1595333881577; Tue, 21 Jul 2020 05:18:01 -0700 (PDT) Received: from [192.168.1.201] (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.googlemail.com with ESMTPSA id t35sm24309428qth.79.2020.07.21.05.18.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 05:18:00 -0700 (PDT) Subject: Re: [PATCH v4 4/4] dt-bindings: timer: Add CLINT bindings To: Anup Patel , Atish Patra Cc: devicetree@vger.kernel.org, Damien Le Moal , Daniel Lezcano , Emil Renner Berhing , Anup Patel , "linux-kernel@vger.kernel.org List" , Atish Patra , Rob Herring , Palmer Dabbelt , Paul Walmsley , Palmer Dabbelt , Alistair Francis , Thomas Gleixner , linux-riscv , Albert Ou References: <20200717075101.263332-1-anup.patel@wdc.com> <20200717075101.263332-5-anup.patel@wdc.com> From: Sean Anderson Autocrypt: addr=seanga2@gmail.com; prefer-encrypt=mutual; keydata= mQENBFe74PkBCACoLC5Zq2gwrDcCkr+EPGsT14bsxrW07GiYzQhLCgwnPdEpgU95pXltbFhw 46GfyffABWxHKO2x+3L1S6ZxC5AiKbYXo7lpnTBYjamPWYouz+VJEVjUx9aaSEByBah5kX6a lKFZWNbXLAJh+dE1HFaMi3TQXXaInaREc+aO1F7fCa2zNE75ja+6ah8L4TPRFZ2HKQzve0/Y GXtoRw97qmnm3U36vKWT/m2AiLF619F4T1mHvlfjyd9hrVwjH5h/2rFyroXVXBZHGA9Aj8eN F2si35dWSZlIwXkNu9bXp0/pIu6FD0bI+BEkD5S7aH1G1iAcMFi5Qq2RNa041DfQSDDHABEB AAG0K1NlYW4gR2FsbGFnaGVyIEFuZGVyc29uIDxzZWFuZ2EyQGdtYWlsLmNvbT6JAVcEEwEK AEECGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4ACGQEWIQSQYR1bzo1I0gP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xE86Bv69ErLVPUyYbp4doLadScilXlvkkjL iq1wOt3rRzOuw+qnWVgWGBPxdDftz0Wck941tYF9XE0aMgkf4o1sGoDZFUFPCQdfEYPzzV7O S5hN3/mP5UeooFHb Message-ID: Date: Tue, 21 Jul 2020 08:17:59 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/20/20 9:15 PM, Atish Patra wrote: > On Fri, Jul 17, 2020 at 12:52 AM Anup Patel wrote: >> >> We add DT bindings documentation for CLINT device. >> >> Signed-off-by: Anup Patel >> Reviewed-by: Palmer Dabbelt >> Tested-by: Emil Renner Berhing >> --- >> .../bindings/timer/sifive,clint.yaml | 58 +++++++++++++++++++ >> 1 file changed, 58 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/timer/sifive,clint.yaml >> >> diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >> new file mode 100644 >> index 000000000000..8ad115611860 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml >> @@ -0,0 +1,58 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/timer/sifive,clint.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: SiFive Core Local Interruptor >> + >> +maintainers: >> + - Palmer Dabbelt >> + - Anup Patel >> + >> +description: >> + SiFive (and other RISC-V) SOCs include an implementation of the SiFive >> + Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor >> + interrupts. It directly connects to the timer and inter-processor interrupt >> + lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local >> + interrupt controller is the parent interrupt controller for CLINT device. >> + The clock frequency of CLINT is specified via "timebase-frequency" DT >> + property of "/cpus" DT node. The "timebase-frequency" DT property is >> + described in Documentation/devicetree/bindings/riscv/cpus.yaml >> + >> +properties: >> + compatible: >> + items: >> + - const: sifive,clint0 >> + - const: sifive,fu540-c000-clint >> + >> + description: >> + Should be "sifive,-clint" and "sifive,clint". >> + Supported compatible strings are - >> + "sifive,fu540-c000-clint" for the SiFive CLINT v0 as integrated >> + onto the SiFive FU540 chip, 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 >> + > > As the DT binding suggests that the clint device should be named as "sifive,**", > I think we should change the DT property in kendryte dts as well. The kendryte device is based on Rocket Chip, not any SiFive IP/device. If anything, the general binding should be "chipsalliance,clint" and the specific bindings should be "sifive,clint" and "kendryte,clint" (or "canaan,clint"). --Sean