Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1572476pxb; Tue, 8 Feb 2022 22:42:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkPE4yFOS1hdMrIqgoPM6Pb18Z/8TukZtWFkCPWiSuO1j/aVuWj2363rV1+jOdtxgQTEo4 X-Received: by 2002:a17:906:99c1:: with SMTP id s1mr695563ejn.298.1644388977648; Tue, 08 Feb 2022 22:42:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644388977; cv=none; d=google.com; s=arc-20160816; b=HWy53BncbT6uSQXsUnNDRGaLU5Qb42obT5mUbGEj9yJjkXbq177L2jQANpTjGTyNNf 3iWtAQylZ9MhvxKd6WEwQvUw/c4Pgdnf6uml5rjHSNCBx3laKOTQwvA3zpSCYVziKp/P EPtCXLsn/LwoCfbjI6n74Yzmj1oCiuoqgTfdAm7YJ6L1nBZQqgzr10i2zJ2Y/eNlItAx cwR4ip3yxPOu2XJ1ZGzUJF0+JiCyks2PMrlk0wN3hEm1SJYHv0hG7rHec2R3XFYyT8FK QgzaMeOAdO7CFCQhutxauKgOPyiXhH09jd0tXpNP5aecKaQI+ScExIHEtiLXjvA9zSI5 4f6w== 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=qMxcVPsdmhWvTGX23bq2bnDt9bInTpit0TJ0BdWBSkM=; b=r9IS6uFH7RQJZXyRDis6R4RtnZpumBR1U4ejGymV/pZvOWY6jTZS502cnO3L5lzntN qFBdhqCD76XQAGb62VfG9xSxbnE3tJUYL8NF19Kj+2vpa9+/JJJOlc0kWYr00jGyKiek Sb0uZVj4iIbqSQQh3xkUxDMWplcoHhNeRrMjM83ADFVovgMhtMR5LRSY5ubIZM9PIWOb rfQ1isPT5C8oficZQo4T7ZPWasZrs1pXr967ZCRbNEhZ/rFCbtQNWsyVGiY2Sklrxq5Y JENN5lJJ3dd46McusjRUM0dbkY2wyJvnT4Wb6OmaYqePZJ/wTKhC55PSImNx8bHN9Ssd eJxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=c9Y0y4t9; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si2544786ede.513.2022.02.08.22.42.32; Tue, 08 Feb 2022 22:42:57 -0800 (PST) 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=@bootlin.com header.s=gm1 header.b=c9Y0y4t9; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357870AbiBDKgI (ORCPT + 99 others); Fri, 4 Feb 2022 05:36:08 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:39817 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbiBDKgG (ORCPT ); Fri, 4 Feb 2022 05:36:06 -0500 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B0319240002; Fri, 4 Feb 2022 10:36:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1643970965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qMxcVPsdmhWvTGX23bq2bnDt9bInTpit0TJ0BdWBSkM=; b=c9Y0y4t92Y1oTOGSK5FqtxRpMl++eZdypLIHpCg/2bZ0s8R3t7LcSfqWxQnrYEPwzwV8E7 tZK/tKVyJS7zYGdaxowQjEDI2TEEFfHh0zgHmo9VHB5pQ/9fdV/Xlo323fM3qUsxF9ncrp 7JcvsthkimsJx99o8ZbvQC+ewNFBHCOT/Hc2BRNcZzuyoYCsuTJMBxYOUaETdtmkcvmctv tjipPnty/CQ7/8cH+gAv2PJCA164U1gE/fjPzG5iL4mdc5B7aDZdJ4UZXDPliPeZo9MD16 7XJp8Qnr/kvb4ZWT1wjC7rkKZMQwxLoPkNAVE8l7Mb3HnG1QIsk4LefDu1V1kg== Date: Fri, 4 Feb 2022 11:36:02 +0100 From: Alexandre Belloni To: Eugen.Hristev@microchip.com Cc: robh+dt@kernel.org, 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > >> Signed-off-by: Eugen Hristev > >> --- > >> .../devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml | 1 - > >> 1 file changed, 1 deletion(-) > >> > >> diff --git a/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml b/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml > >> index 597d67fba92f..27f78459b892 100644 > >> --- a/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml > >> +++ b/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml > >> @@ -134,7 +134,6 @@ allOf: > >> required: > >> - compatible > >> - reg > >> - - interrupts > >> - clocks > >> - clock-names > >> - '#address-cells' > >> -- > >> 2.25.1 > >> > > > > -- > > Alexandre Belloni, co-owner and COO, Bootlin > > Embedded Linux and Kernel engineering > > https://bootlin.com > > > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com