Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3095662rwd; Mon, 29 May 2023 05:47:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YMbn6GJSxZ/vGfqvrcKokWwp2u6Me1WACE5aeGm5YJpN/uQDNBhbAGn3GGQFx/z6MRlJn X-Received: by 2002:a05:6a20:1454:b0:10c:5ff4:8bc6 with SMTP id a20-20020a056a20145400b0010c5ff48bc6mr9875601pzi.38.1685364460885; Mon, 29 May 2023 05:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685364460; cv=none; d=google.com; s=arc-20160816; b=OjP/ZMAvPgCVSJBgItzZ8uONmn8wkWwTAE55R8AjTUCPOnATUb1A8RwvNrmHMY02kM lj9PAVb7vD0ym2oa8Yn+yNEnxh+ITBWUgjO61YiZ8Ml+3QznMle8oItkPZOdYo5yLFCP t9aLpb6ioAPQGpiVv3sxkljZcmKwNlmU9Wdiy5KbbxRumdW8WxNsfvW/nN7uKCv7J0r9 7hhOOYyVNDV1yoekxf/eINllPQTLCPc6XlTm7tT1JopeHScCTWsqMNrym3HkWyvEX1/x sXw+Bi873Hs6y0dDmGRsQgUKv0tdnngDpVpTpDFKzgPkp+BMnkIdiGOSbGfxvHQYIsQ8 U4BA== 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=D20z/WTWCpbSLHKMAJMqPW1S3hIiJyEQwHqEDVc976c=; b=HeQtlxbXLXE28PSdrK6hSrJvVr3HPTm1EhZ8BdIEPVJHXmJGOyidh6RyJI/yxgfd7E j+pM+YbRFjNV6jAFAJ96s+S6PyBTw91eWz9d38uZ7txkDVvlbGrxOMHORYo0MKrbw0j0 ZtpQcV64/wmlNp/5qTttfXv7b4NhGOA1LLqkp1NbtIHP7lfN6zpNuPf51s81zZhCrjo+ z1fFgnvAyafUgGxun5Uo8nrLTKKlrR7s+RT0y7/Pi3k0Ydiublnau6c7TzWM8CKfkv+d +T6D0c2wjllp5V84keBO2lpY42udQUd8Yt929k1rOt1X4JpUf9SAZOSapeeJzBv9c4pT h+AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=qoeuTHSN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a633d02000000b0050f6925a400si2009909pga.589.2023.05.29.05.47.28; Mon, 29 May 2023 05:47:40 -0700 (PDT) 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=@microchip.com header.s=mchp header.b=qoeuTHSN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbjE2MRo (ORCPT + 99 others); Mon, 29 May 2023 08:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbjE2MRm (ORCPT ); Mon, 29 May 2023 08:17:42 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE49DC2; Mon, 29 May 2023 05:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1685362660; x=1716898660; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PHiUGMjxRQ6M/GUGwXf1RDiZRcVrGdxl0s2yVo9wSVQ=; b=qoeuTHSNte5PF76ImmbU8u6Aly64zJuxerVP1A4zblu7Tu/N/VYfEYmB 8Ef98wuBcrJ26S18PqxoHrNNo9UxPCPVKCdCtnjUZuLjI5/tZduT0ZF0/ GfF/avkqwEB5ab5JDJs/bfoT1NDq/ORL9+bwtrFmxqIcf76sK2JGws7XA /lLU7u8p9t2CGSoqebvh86B2TaqfnjsIUS3E00gsOr1l0Y+6wXp2GsX3s jB2cWwhlS9LuosOqOousUONd2F9ms2qdFzr51zCL5dWvQ2CFDm1isjy7S GNWI0NntGn0sLkAA11PQuJ2LpwTMToOxCQr4BILTWTCmfpMBhl6OFlEN+ A==; X-IronPort-AV: E=Sophos;i="6.00,201,1681196400"; d="asc'?scan'208";a="213543328" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 29 May 2023 05:17:39 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 29 May 2023 05:17:39 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 29 May 2023 05:17:37 -0700 Date: Mon, 29 May 2023 13:17:14 +0100 From: Conor Dooley To: Claudiu Beznea CC: , , , , , , , , , , , , Subject: Re: [PATCH v2 2/4] dt-bindings: timer: atmel,at91sam9260-pit: convert to yaml Message-ID: <20230529-chuck-turbofan-a8aabbdd9341@wendy> References: <20230529062604.1498052-1-claudiu.beznea@microchip.com> <20230529062604.1498052-3-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MDW8BcZEu6MUYNEl" Content-Disposition: inline In-Reply-To: <20230529062604.1498052-3-claudiu.beznea@microchip.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 --MDW8BcZEu6MUYNEl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Claudiu, On Mon, May 29, 2023 at 09:26:02AM +0300, Claudiu Beznea wrote: > Convert Microchip AT91 PIT bindings to YAML. Along with it clocks and > clock-names bindings were added as the drivers needs it to ensure proper > hardware functionality. >=20 > Signed-off-by: Claudiu Beznea > --- > .../devicetree/bindings/arm/atmel-sysregs.txt | 12 --- > .../bindings/timer/atmel,at91sam9260-pit.yaml | 96 +++++++++++++++++++ > 2 files changed, 96 insertions(+), 12 deletions(-) > create mode 100644 Documentation/devicetree/bindings/timer/atmel,at91sam= 9260-pit.yaml >=20 > diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Do= cumentation/devicetree/bindings/arm/atmel-sysregs.txt > index 67a66bf74895..54d3f586403e 100644 > --- a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt > +++ b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt > @@ -4,18 +4,6 @@ Chipid required properties: > - compatible: Should be "atmel,sama5d2-chipid" or "microchip,sama7g5-chi= pid" > - reg : Should contain registers location and length > =20 > -PIT Timer required properties: > -- compatible: Should be "atmel,at91sam9260-pit" > -- reg: Should contain registers location and length > -- interrupts: Should contain interrupt for the PIT which is the IRQ line > - shared across all System Controller members. > - > -PIT64B Timer required properties: > -- compatible: Should be "microchip,sam9x60-pit64b" > -- reg: Should contain registers location and length > -- interrupts: Should contain interrupt for PIT64B timer > -- clocks: Should contain the available clock sources for PIT64B timer. > - > System Timer (ST) required properties: > - compatible: Should be "atmel,at91rm9200-st", "syscon", "simple-mfd" > - reg: Should contain registers location and length > diff --git a/Documentation/devicetree/bindings/timer/atmel,at91sam9260-pi= t.yaml b/Documentation/devicetree/bindings/timer/atmel,at91sam9260-pit.yaml > new file mode 100644 > index 000000000000..1cc7b7494e4b > --- /dev/null > +++ b/Documentation/devicetree/bindings/timer/atmel,at91sam9260-pit.yaml > @@ -0,0 +1,96 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/timer/atmel,at91sam9260-pit.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip AT91 Periodic Interval Timer (PIT) > + > +maintainers: > + - Claudiu Beznea > + > +description: > + Microchip AT91 periodic interval timer provides the operating system s= cheduler > + interrupt. It is designed to offer maximum accuracy and efficient mana= gement, > + even for systems with long response time. > + > +properties: > + compatible: > + enum: > + - atmel,at91sam9260-pit > + - microchip,sam9x60-pit64b The missing compatible should probably be added here, rather than removed from the devicetree. > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 1 > + maxItems: 2 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + const: atmel,at91sam9260-pit > + then: > + properties: > + interrupts: > + description: > + Contain interrupt for the PIT which is the IRQ line shared a= cross all > + System Controller members. I think you should drop this & the corresponding section below, since both PIT and PIT64 have a single interrupt. Thanks, Conor. > + clocks: > + maxItems: 1 > + > + else: > + properties: > + interrupts: > + description: > + PIT64B peripheral interrupt identifier. > + clocks: > + minItems: 2 > + clock-names: > + items: > + - const: pclk > + - const: gclk > + required: > + - clock-names --MDW8BcZEu6MUYNEl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZHSXygAKCRB4tDGHoIJi 0lloAP90iVLfmKixUT2X7Jvpsdvgj+TPj5hIYGyTIPBn44lzYgEAyNQOMUvamzjZ WsLACZkOX75RoA9nLwB208Nkk8RUww8= =W65y -----END PGP SIGNATURE----- --MDW8BcZEu6MUYNEl--