Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1555327rdb; Mon, 2 Oct 2023 13:21:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgVAnr0UIrSQcT+XYEcpZKUO95Z8Ew1/OEwN7lA+CvaQ3xi8NeNnx5E/+QRdbw13OskY3m X-Received: by 2002:a05:6808:90c:b0:3a8:1906:6a80 with SMTP id w12-20020a056808090c00b003a819066a80mr12478291oih.10.1696278098537; Mon, 02 Oct 2023 13:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696278098; cv=none; d=google.com; s=arc-20160816; b=Es4hKe6VN725efzWiB/fZ+N08ZjEnqm0VBLaIbIv93HT5zY9BK7YxRj9fr5QPV3MhX ZezplN73MFkhJby5G2wjpiJR3dSOKeSqd7fB2MGr8kfYyXYxF+nBAxf00yJiR9BndnE6 0/9rbKD1BpKn/XDlUAzUz56tmUjxVrORCWn2cJEx+xKdV5BVAlwnoT9hAQgjwvfO6Er1 U+0vkPMwyQ9q4e219PTbopPRWK4sXHJhCguU2WEaNoQG1ZI+XnjdtxJU/uwbQzSNRoMt 96Kna3BJKH6Zyg8bzjfeGBbd4Fyu/H9dbO79fj7izanu7MNFONvSstzEgKywxfeA049v qGcQ== 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=w29UzpR308qe4Hu2MTZmZX6mLUHJ/cYKAWqyfeJE7Sw=; fh=odVqJs3438plV6bKXhBShTCuxGgth+cFPIfh3sHVE7o=; b=GhRbZDHbujEmbuUJI1fjqDfAidF5f582WA9M7hG6NLQYgIs/Ypdti5dk1+qAMTXChB 8ImuWLrN83Af/ppscGgjpPv9L6p4fiaHqmKbg3dRXNkmJIukeVfBl4rcnhM2csedUh13 V5BrJAA/7ks1/mIF37xd7C78GsIM13Asz3fzr76vYHhj0G9VJ0M/JbzQEi2XdwnrQ/h3 RnryC2zzsM1Fafx7FBPJWXirfJViCn2pRSnh+xkzRyyScvU5Hoy+P5tlnudSL5u6oDX4 EW/8/EJ1HFrvDWK1Erhy8WqTyTZLZWgKALWPvY1M//UoXo9DAPp62R0GCxRQaEnsN2bo UuYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gyLFkAvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id gp13-20020a17090adf0d00b0026f9b5fe711si8388229pjb.108.2023.10.02.13.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 13:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gyLFkAvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 27E3C811F13F; Mon, 2 Oct 2023 13:07:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234849AbjJBUHV (ORCPT + 99 others); Mon, 2 Oct 2023 16:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234669AbjJBUHT (ORCPT ); Mon, 2 Oct 2023 16:07:19 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFB34DD for ; Mon, 2 Oct 2023 13:07:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68E09C433C7; Mon, 2 Oct 2023 20:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696277234; bh=YTI1p52+JDOx/ndLU4/rvBQRdqn0ffVJBgdAmS9Eysc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gyLFkAvbjBsbz7EtRlxuSXURkv3HF8sxzr6VvY8aPN6XrFZq+whtSwjwqgfAoyVOv uu1UjqSVvJOqHPcoDTwDzIYarhyc0oITL9vP9PgxA5nC26YYqMHC1pUmxSmyldtix7 NRwQyNsFrwh2//nec0VLzVO9ifuwcs6zq9G10JlXwQIVUoQ8oiJTG6LqzAeSPoeD7T 9yKNGGS4TQ9YkXj+jdpp5e4JAuAThsYx7F9o8kAdr9WzhsoISUNMS6d3SiG56VCIXx 61g75uobcYXI/iqgympFxVBGsEx8IliyluNxgW8cgkHDiApXbam8Dk6rNTEn+iqw3C dbZlyx9XbY2rA== Date: Mon, 2 Oct 2023 21:07:10 +0100 From: Conor Dooley To: "Balas, Eliza" Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [PATCH v2 1/2] dt-bindings: misc: adi,axi-tdd: Add device-tree binding for TDD engine Message-ID: <20231002-carnivore-clapped-33140a07ff67@spud> References: <20230928092804.22612-1-eliza.balas@analog.com> <20230928092804.22612-2-eliza.balas@analog.com> <20231002163244.GA1886905-robh@kernel.org> <20231002-aggregate-scanner-3ca2ae69cf0c@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="451K07UXANYYvndp" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 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_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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 13:07:22 -0700 (PDT) --451K07UXANYYvndp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 02, 2023 at 07:48:42PM +0000, Balas, Eliza wrote: > > -----Original Message----- > > From: Conor Dooley > > Sent: Monday, October 2, 2023 22:21 > > To: Balas, Eliza > > Cc: Rob Herring ; Krzysztof Kozlowski ; Conor Dooley ; > > Derek Kiernan ; Dragan Cvetic ; Arnd Bergmann ; Greg > > Kroah-Hartman ; linux-kernel@vger.kernel.or= g; devicetree@vger.kernel.org > > Subject: Re: [PATCH v2 1/2] dt-bindings: misc: adi,axi-tdd: Add device-= tree binding for TDD engine > >=20 > > [External] > >=20 > > On Mon, Oct 02, 2023 at 04:46:26PM +0000, Balas, Eliza wrote: > > > > -----Original Message----- > > > > From: Rob Herring > > > > Sent: Monday, October 2, 2023 19:33 > > > > To: Balas, Eliza > > > > Cc: Krzysztof Kozlowski ; Conor = Dooley ; Derek Kiernan > > > > ; Dragan Cvetic ; Arn= d Bergmann ; Greg Kroah-Hartman > > > > ; linux-kernel@vger.kernel.org; devicet= ree@vger.kernel.org > > > > Subject: Re: [PATCH v2 1/2] dt-bindings: misc: adi,axi-tdd: Add dev= ice-tree binding for TDD engine > > > > > > > > [External] > > > > > > > > On Thu, Sep 28, 2023 at 12:28:03PM +0300, Eliza Balas wrote: > > > > > Add device tree documentation for the AXI TDD Core. > > > > > The generic TDD controller is in essence a waveform generator > > > > > capable of addressing RF applications which require Time Division > > > > > Duplexing, as well as controlling other modules of general > > > > > applications through its dedicated 32 channel outputs. > > > > > > > > > > The reason of creating the generic TDD controller was to reduce > > > > > the naming confusion around the existing repurposed TDD core > > > > > built for AD9361, as well as expanding its number of output > > > > > channels for systems which require more than six controlling sign= als. > > > > > > > > > > Signed-off-by: Eliza Balas > > > > > --- > > > > > .../devicetree/bindings/misc/adi,axi-tdd.yaml | 65 +++++++++++++= ++++++ > > > > > MAINTAINERS | 7 ++ > > > > > 2 files changed, 72 insertions(+) > > > > > create mode 100644 Documentation/devicetree/bindings/misc/adi,ax= i-tdd.yaml > > > > > > > > > > diff --git a/Documentation/devicetree/bindings/misc/adi,axi-tdd.y= aml b/Documentation/devicetree/bindings/misc/adi,axi- > > tdd.yaml > > > > > new file mode 100644 > > > > > index 000000000000..8938da801b95 > > > > > --- /dev/null > > > > > +++ b/Documentation/devicetree/bindings/misc/adi,axi-tdd.yaml > > > > > @@ -0,0 +1,65 @@ > > > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > > > +# Copyright 2023 Analog Devices Inc. > > > > > +%YAML 1.2 > > > > > +--- > > > > > +$id: https://urldefense.com/v3/__http://devicetree.org/schemas/m= isc/adi,axi- > > > > tdd.yaml*__;Iw!!A3Ni8CS0y2Y!5Cxus2huppjhkiJZLWTpJEgA0IXdLZx4t0fS9J1= yt0xgjp9g3Y1N5PbZ7pAcIkKU4WPbS_TR9yjTKw$ > > > > > +$schema: https://urldefense.com/v3/__http://devicetree.org/meta- > > > > > > schemas/core.yaml*__;Iw!!A3Ni8CS0y2Y!5Cxus2huppjhkiJZLWTpJEgA0IXdLZx4t0= fS9J1yt0xgjp9g3Y1N5PbZ7pAcIkKU4WPbS_RK8aQ9xw$ > > > > > + > > > > > +title: Analog Devices AXI TDD Core > > > > > + > > > > > +maintainers: > > > > > + - Eliza Balas > > > > > + > > > > > +description: | > > > > > + The TDD controller is a waveform generator capable of addressi= ng RF > > > > > + applications which require Time Division Duplexing, as well as= controlling > > > > > + other modules of general applications through its dedicated 32= channel > > > > > + outputs. It solves the synchronization issue when transmitting= and receiving > > > > > + multiple frames of data through multiple buffers. > > > > > + The TDD IP core is part of the Analog Devices hdl reference de= signs and has > > > > > + the following features: > > > > > + * Up to 32 independent output channels > > > > > + * Start/stop time values per channel > > > > > + * Enable and polarity bit values per channel > > > > > + * 32 bit-max internal reference counter > > > > > + * Initial startup delay before waveform generation > > > > > + * Configurable frame length and number of frames per burst > > > > > + * 3 sources of synchronization: external, internal and softw= are generated > > > > > + For more information see the wiki: > > > > > + https://wiki.analog.com/resources/fpga/docs/axi_tdd > > > > > + > > > > > +properties: > > > > > + compatible: > > > > > + enum: > > > > > + - adi,axi-tdd-2.00.a > > > > > > > > Where does this version number come from? I looked at the above lin= k and > > > > see versions such as '2021_R2', '2019_r2', etc. I didn't dig deeper > > > > whether there's some per IP version. > > > > > > > > If you want to use version numbers, please document the versioning > > > > scheme. For example, see > > > > Documentation/devicetree/bindings/sifive/sifive-blocks-ip-versionin= g.txt. > > > > > > > > Rob > > > > > > The version refers to the IP version. The version of the IP is also > > > specified in its VERSION register (there is a drop down to expand the > > > register map on the wiki page) which is verified by the driver during > > > probe. "2021_R2" refers to the compatible tool version used for > > > creating the FPGAIP Core. > >=20 > > If you have version registers in these IPs, what benefit does version > > numbers in the compatible string bring? > > Rather than using the version numbers to validate what the DT gave you, > > which not the kernel's job IMO, why not just use the information from > > the register to determine the version? > >=20 > > Cheers, > > Conor. >=20 > As the description of this patch says, we want to resolve the naming conf= usion around the existing repurposed TDD core (https://wiki.analog.com/reso= urces/eval/user-guides/ad-pzsdr2400tdd-eb/reference_hdl#tdd_controller) > built for AD9361 and this TDD Engine IP core (https://wiki.analog.com/res= ources/fpga/docs/axi_tdd) which is a similar core, with more output channel= s and some extra features. The version numbers in the compatible string are= used to differentiate between the two IPs. Firstly, please fix your mail client to wrap text at a sane width :) Secondly, where is the binding for that TDD ad9361 specific core that calling this generic one "adi,axi-tdd" would conflict with? Grepping the bindings directory of the kernel tree for "adi.*tdd" returns nothing. If there is an ad9361 specific tdd, I would expect it to have a compatible like "adi,ad9361-tdd". --451K07UXANYYvndp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRsi7QAKCRB4tDGHoIJi 0hgGAP4ungSPkt3sOkkUfztwf/Bq59bmcxo3fKJ4RIVg4zoGVgD/V1qv0td9doEv pyLisaQ1Jcocjto+qx4QwOdWOkU+sg4= =MzeR -----END PGP SIGNATURE----- --451K07UXANYYvndp--