Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4125512pxb; Fri, 11 Feb 2022 16:29:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDc4k7xgEHFFu6ZTDkGWxhNo13aUK8doIjfa+s5fnCIpsyUYp9wj161aKGT4WNwDRJzxLG X-Received: by 2002:a17:90a:4508:: with SMTP id u8mr2923340pjg.171.1644625762944; Fri, 11 Feb 2022 16:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644625762; cv=none; d=google.com; s=arc-20160816; b=BQIE1j84tXteUQg7SMerRr2c3QlJmNYI+vifykVRA0bw/B0XTy7/DDDrAd7+3zTx0L eopAPYuLFf8daE+4BnTMBaeZjn34Sc0eD/InvtJWsJnJtXxBt8xChvhYfqBj9llngDhf IXe6nroma9jTaDJNKhmF5OMKEgk+qn/FSDKoFKi/EkOuSUv2E0Bi/nYbFiDpI8sVoK+s JC7D6BvfiMWS9w+Ls7KBKLU7JXOcsRDLfxU6fguOtT89AoweM9N2NnghMA12PeaPvCfB I3+1dvEO2+w6vgzbSinX1yg/Im6hD9uPbCRQs79Q0LcFPjHr6fpnfJMOmHrrELkgl7uh eAjw== 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; bh=hs6Ap8pvv6rLiNRkR68HWZ4eW38QIARNwTh1k3Vr+zU=; b=wevVRgwCgAWorpeJY9dCAPCEzG4nDehdgrW2wBhxGH9fNAG0eaogEPp8OSzlvMDZLv xzTlOw3eelcbarxMSaRLKW0E1WBqVuUJ1NdsowORhwqmSVO1rdv/4j4dmYSCK1zkdCw3 X9yd1WpwZcfIQMV034S+xYdG9RP7nsihffcboInGzrcPdr05KB3XmUP4tZWJ4UaZS89W LLneN+/nt5+7HJlY2y1V3QwIHT1sIMKRwVfcTsdQZSee5X4j9gEkF2YvEXlvBuo1b5W6 6gwNanIcBtHSO1DwdUfjrXsNkGXMGNA7LK57JdH5gETAShz58H4fPIN+1Bv6KaMCJ3Xv 9Cww== ARC-Authentication-Results: i=1; mx.google.com; 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 x22si5882962pll.382.2022.02.11.16.29.07; Fri, 11 Feb 2022 16:29:22 -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; 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 S1350764AbiBKOVz (ORCPT + 99 others); Fri, 11 Feb 2022 09:21:55 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234454AbiBKOVx (ORCPT ); Fri, 11 Feb 2022 09:21:53 -0500 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC799188; Fri, 11 Feb 2022 06:21:52 -0800 (PST) Received: by mail-qt1-f182.google.com with SMTP id p14so9182137qtx.0; Fri, 11 Feb 2022 06:21:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hs6Ap8pvv6rLiNRkR68HWZ4eW38QIARNwTh1k3Vr+zU=; b=S91l9tYjFkpsDoNMUINV6I2tPp2DPc9eBl8rmUJyPsvHv7xrfLwIgzOzBDb3OBIR/F qeu3rl/cIy1Olalau+rmS5s3LaZvwnUw5bApZPV2lI+lI+XMKVTHaX3X5QcCsOq3J0EB OLOVEHbwRGJOBlCgw2BqtG+RnpPdcAb/XoxQ2x7ZTsQIhLBoMOfiony2zzripV9WOYZY FF+HwEY3VYKcVb7uBnICjT0BY7SXQvNvZNpGmbw4+gNYQmNHDqQPc5fwDhYeDg8aFh+W 5qHE+vLkudn5z8CEbTjKMUu6g52Twcyx3N56nuklqZ2Qv/jFNYhkjOQ1dxpEkIlFnZwA dK6A== X-Gm-Message-State: AOAM533FMBws6yHxSxOZh+xMHX3t3IUoufMivcQ+A9fve0FL71dMTTrC 9qd5zvwtgaTVAcEy+ssZ4A== X-Received: by 2002:ac8:5b94:: with SMTP id a20mr1230049qta.270.1644589312029; Fri, 11 Feb 2022 06:21:52 -0800 (PST) Received: from robh.at.kernel.org ([2607:fb90:20d7:a802:e6b0:6d9c:32f7:4bd9]) by smtp.gmail.com with ESMTPSA id t11sm6372671qkp.82.2022.02.11.06.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 06:21:51 -0800 (PST) Received: (nullmailer pid 304856 invoked by uid 1000); Fri, 11 Feb 2022 14:21:48 -0000 Date: Fri, 11 Feb 2022 08:21:48 -0600 From: Rob Herring To: Alexandre Belloni Cc: Eugen.Hristev@microchip.com, Nicolas.Ferre@microchip.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, clement.leger@bootlin.com Subject: Re: [PATCH] dt-bindings: microchip: atmel,at91rm9200-tcb: remove mandatory interrupts property Message-ID: References: <20220204081446.474991-1-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Feb 04, 2022 at 11:36:02AM +0100, Alexandre Belloni wrote: > On 04/02/2022 10:28:43+0000, Eugen.Hristev@microchip.com wrote: > > On 2/4/22 11:46 AM, Alexandre Belloni wrote: > > > On 04/02/2022 10:14:46+0200, Eugen Hristev wrote: > > >> The timer block can be used only to be read and to measure time in a polling > > >> fashion. This can be used by Linux like this for example, or it can be used > > >> by different projects which do not have interrupt controllers, or do not > > >> wish to enable them (e.g. U-boot). > > >> As DT is ABI, the binding should relate to all possible use cases and describe > > >> the hardware and the requirements. > > >> The interrupt is not a hard requirement for the timer to function in a > > >> specific way. > > >> Thus, choose to remove the interrupts property from the mandatory list of > > >> properties. > > >> > > > > > > The correct hardware description is that the interrupt is present on the > > > IP. Having software behave differently depending on the presence of that > > > property is configuration, not hardware description. > > > > I agree. The interrupt is present on the IP, thus the property exists > > and it's described. > > However, the interrupt is not mandatory for IP operations. Thus it > > should not be in the list of mandatory properties. > > > > If the interrupt is always present, it is mandatory, it doesn't matter > whether is is used or necessary to get the IP to work. Agreed.