Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7765149rwb; Wed, 23 Nov 2022 10:24:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mhSrP1whlFDgmkr4QmHytn4T9Gm1cT5PxVYPRo9v8GRanVMhQa6akovFnJxdVE0ULfv4K X-Received: by 2002:aa7:c941:0:b0:469:172:4f46 with SMTP id h1-20020aa7c941000000b0046901724f46mr24096212edt.130.1669227868750; Wed, 23 Nov 2022 10:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669227868; cv=none; d=google.com; s=arc-20160816; b=fRgkNYEl+5H8qFexlySctC9wtKhufEktb7WVQ9Xt2Iixg3fEZGXY+DaMDunTmtbJkt 8DXFWlzT0shJ6/HQ1UyMRnQCsmwbZCO2/Frel4Zl/x0A5/wTncWD4WlJPSUgLfaOOFC1 9HXATnqPsTOPOaul1CX/kIirQNv6Rba2+zmH4XIbkd1FOJ2XDK0BEgTKUvTLwCNOhlgw KAtAdXypDZ7SFB8QqGwtHLGbgOI2i5h1Yuv4cjaNsys6qteNxYWWA8dSD6iYpkdCKNUX qu13gbI+f/RkZQWX57M9NoFEreiTcRFtPltoGwsAuNqpP6qZewwJiqNk3yiTChFAKL2k 3Ygw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9K55d4VrNJvZSOFOhGgAjxLvvI8ZTPV0zSECcMIccTI=; b=MN3qE/B2YzViolNja3dUR2gUkvomDnc+W+9Aykh6euhgX/E/u9J4WVhcjWwdprrzja lDEc60q6Je332hEgV5AwvNFUQPwUmKMK2TKGPWToRltMtT+8E92oug52us4kMZnjeLUG UIRMHc4K5xevpDHIv/ewTW+J9xWTZE4WTtsBeDQs38Zwru8xJhhBTeMaNlbR97Dlr7nn c9YLPWFRUzd+EEo+jT+g2SrBFYoaxcR0kU8BmaJ/QeAn+N9Z13wTC0GrHN2lbYEu68g8 gheq07XPJsg+kowW48O3gA/s1t6ODT8j1Gf3U8OeL8rwSWF3BXy6gjicJHXcj3u/lPXH lhgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pOkPLTiR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a056402358600b004642b0f2357si22251edc.589.2022.11.23.10.24.05; Wed, 23 Nov 2022 10:24:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pOkPLTiR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238443AbiKWR7g (ORCPT + 89 others); Wed, 23 Nov 2022 12:59:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236875AbiKWR7e (ORCPT ); Wed, 23 Nov 2022 12:59:34 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5D83EE37; Wed, 23 Nov 2022 09:59:33 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 51AF8B82215; Wed, 23 Nov 2022 17:59:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEFFBC433D6; Wed, 23 Nov 2022 17:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669226371; bh=fo+5RajrLOWrgXzM+Dx5VV6uRU0lJQMAjI3KTS77p5w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pOkPLTiR2ZiV9f0l+NjiZnJhsn0x52zY/ZL5PiWHoxrD2La5EXianO7ellh88t2WX hr166iVCyjUmSqY7LN01JwfRpROB2NbDSKS7qUz5hqJqV8g+7In3WlqgM3g7v5fOsV vkAQC6ZLl1vYZcywAnPMdFaULMpRSGAb7lBz18jXGp3kBtAIGKWL0Mt/LgLjv+bUxS HND3rRTW7oUGYkE/4THvnKBknxqeHAtAussMTvuN3ZujmAGtBrmFSW4lTkhGUYc2pq fZNFyWczoe1zbpsc/9c81jWcIZlXIBMvtBHAPaK/e4ZyIqRTW3reqgtV4UYRspKnsx kyVPfmSLfTiew== Date: Wed, 23 Nov 2022 17:59:25 +0000 From: Conor Dooley To: Anup Patel Cc: Conor Dooley , Anup Patel , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Daniel Lezcano , Thomas Gleixner , Andrew Jones , Atish Patra , Samuel Holland , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: riscv: Add optional DT property riscv,timer-can-wake-cpu Message-ID: References: <20220727114302.302201-1-apatel@ventanamicro.com> <20220727114302.302201-2-apatel@ventanamicro.com> <372e37bf-ac90-c371-ad9e-b9c18e1cc059@linaro.org> <7a0477a0-9f0f-87d6-4070-30321745f4cc@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 23, 2022 at 09:16:55PM +0530, Anup Patel wrote: > On Wed, Nov 23, 2022 at 7:17 PM Conor Dooley wrote: > > > Adding a new timer DT node would mean, the RISC-V timer driver > > > will now be probed using the compatible to the new DT node whereas > > > the RISC-V timer driver is currently probed using CPU DT nodes. > > > > In that case, we would have to retain the ability to match against the > > "riscv". Spitballing: > > - add a new timer node > > - keep matching against "riscv" > > - look up a timer node during init w/ of_find_matching_node() that > > contains any new timer properties > > > > I think it's unlikely that this will be the last time we have to add > > some timer properties & we should avoid doing odd things in a DT to suit > > an operating system? > > > > Would something along those lines work Anup, or am I, yet again, missing > > something? > > I was already working on v3 along these lines. I will try to post a v3 this > week itself. Cool, I'll keep my eyes peeled :) Thanks Anup!