Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3300766rdb; Wed, 13 Sep 2023 08:07:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZ44Ev99gyuFC/Tv2r3Q19zwXa97KfI+0S1XTF/i1qYztH2p0ktyt705rFSgf4y6woLllx X-Received: by 2002:a05:6a00:1807:b0:68e:351b:15b8 with SMTP id y7-20020a056a00180700b0068e351b15b8mr3574919pfa.12.1694617644407; Wed, 13 Sep 2023 08:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694617644; cv=none; d=google.com; s=arc-20160816; b=WjmcJ925Q7BCuAA06TP4bRhdvrC5hxluCF8ppfPqpCk69KJGsLCQLtpUKE9mhnEIqH Lt25WGJ9CRTQrGxKQuPRYrW6OF62PfO6tKKIyGw+lxgqM5uD+xGdjCBZfG1bfMmy9zV7 y0GQZz8NvATUTmJMW16v62buqXQEIa6daTpS7HUFTsvpNn8SMj7M1VIQg31A+49/hcIj XT6hTfpls83F62uPgeIe5thXvB5FuHPNu3M9M7VKelHtv0MjYW5yL/hgxUd+YpkN5b82 nqQl0IPmJFxeyuqU5A4gA8ib2/XOTlM3VI6xRYqihhCBvIhHGN84o6QjLnK6MNhEdmbU 2kag== 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=scvwrGI9cp9tikYIcdlqOpx2CBvAw6EzkhygYhg8DQk=; fh=AfKttACWq8jUtejPaPgJw/rEFv4T80l3OYHEtRFUuU0=; b=ADzvsxIl8VIFldCPyJgtFTM1jzwvDAYr40IqeYJ4oBu61d01lJXI2Tb22utau3lTS5 JphvUWSw4WsWYxf2b852RYei4QCKguvpy/VHpnp3s9dJikqaiKZ7ooD5g2Jz2gs4Wwy/ uJJAnEoOUN0/jVkwZkHCU6TB3FnRNmk67w+vCUEt9GiyW24DkjyXzyrFVeiyOci9l1ww bWNojf+kBAzuxYM6/1aEzB6G22jZrqut9ui7xsWbFgUihm3dvEVIHVUGE6PY8GyDV+nc NvQwULXBidD83C4HDA3ZjNgvUnDlrNfrtHICyCUc2bll7eYGtakQMAP2696eG8iw0pFV sR8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EDl19bbf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bt16-20020a056a00439000b0068a4ba92eafsi10139898pfb.54.2023.09.13.08.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 08:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EDl19bbf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id AEA368092C93; Wed, 13 Sep 2023 07:56:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241591AbjIMO4a (ORCPT + 99 others); Wed, 13 Sep 2023 10:56:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241462AbjIMO43 (ORCPT ); Wed, 13 Sep 2023 10:56:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8764AF; Wed, 13 Sep 2023 07:56:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43588C433C7; Wed, 13 Sep 2023 14:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694616985; bh=N3WTRGQRC2DCSVFNDD7+aWUBo/AuSWHVXjENW2+DJOI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EDl19bbfcfT/eKzPy1uhctBEtgQfI7bioxWIylfDjw072ASF7Rw5chvVGEYf7ZXzv D6ag1C6uRMNTgmS0OE+PrgT1a/LUCCCodqAMoIEtHRHs/GW/opSjL/xEs9eHn91wax 8nTuAR3br6x3XJ0MGLXMyxVSKPuxv6tPskLE/bjJ2hWrOluZFIy6koi5RjPh7gvRMb d1I5KXNTaevGJxYkrrG/oj/ikITlwP9pwOsKPraxh00tMQy67CUsQR01mmm9cwF98e sNCa/yk6JfFzQ79mk5ExQRgpVAKfLOlLcnwkbz0K8xylH3muVc7rGZsAx3ueDcvxo4 7iiIZXZFS9rBA== Date: Wed, 13 Sep 2023 15:56:16 +0100 From: Conor Dooley To: Herve Codina Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Linus Walleij , Qiang Zhao , Li Yang , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Christophe Leroy , Randy Dunlap , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, Simon Horman , Christophe JAILLET , Thomas Petazzoni Subject: Re: [PATCH v5 08/31] dt-bindings: soc: fsl: cpm_qe: cpm1-scc-qmc: Add support for QMC HDLC Message-ID: <20230913-oversold-delay-05368e5de9fe@spud> References: <20230912081527.208499-1-herve.codina@bootlin.com> <20230912101018.225246-1-herve.codina@bootlin.com> <20230912-capable-stash-c7a3e33078ac@spud> <20230913092640.76934b31@bootlin.com> <20230913-unruly-recite-7dbbbd7e63e0@spud> <20230913165250.02bab2ad@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="an5JAs7matqyH5h+" Content-Disposition: inline In-Reply-To: <20230913165250.02bab2ad@bootlin.com> 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 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:56:34 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email --an5JAs7matqyH5h+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 13, 2023 at 04:52:50PM +0200, Herve Codina wrote: > On Wed, 13 Sep 2023 15:42:45 +0100 > Conor Dooley wrote: >=20 > > On Wed, Sep 13, 2023 at 09:26:40AM +0200, Herve Codina wrote: > > > Hi Conor, > > >=20 > > > On Tue, 12 Sep 2023 18:21:58 +0100 > > > Conor Dooley wrote: > > > =20 > > > > On Tue, Sep 12, 2023 at 12:10:18PM +0200, Herve Codina wrote: =20 > > > > > The QMC (QUICC mutichannel controller) is a controller present in= some > > > > > PowerQUICC SoC such as MPC885. > > > > > The QMC HDLC uses the QMC controller to transfer HDLC data. > > > > >=20 > > > > > Additionally, a framer can be connected to the QMC HDLC. > > > > > If present, this framer is the interface between the TDM bus used= by the > > > > > QMC HDLC and the E1/T1 line. > > > > > The QMC HDLC can use this framer to get information about the E1/= T1 line > > > > > and configure the E1/T1 line. > > > > >=20 > > > > > Signed-off-by: Herve Codina > > > > > --- > > > > > .../bindings/soc/fsl/cpm_qe/fsl,cpm1-scc-qmc.yaml | 13 +++++++= ++++++ > > > > > 1 file changed, 13 insertions(+) > > > > >=20 > > > > > diff --git a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl= ,cpm1-scc-qmc.yaml b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,c= pm1-scc-qmc.yaml > > > > > index 82d9beb48e00..b5073531f3f1 100644 > > > > > --- a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,cpm1-s= cc-qmc.yaml > > > > > +++ b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,cpm1-s= cc-qmc.yaml > > > > > @@ -101,6 +101,16 @@ patternProperties: > > > > > Channel assigned Rx time-slots within the Rx time-slot= s routed by the > > > > > TSA to this cell. > > > > > =20 > > > > > + compatible: > > > > > + const: fsl,qmc-hdlc > > > > > + > > > > > + fsl,framer: > > > > > + $ref: /schemas/types.yaml#/definitions/phandle > > > > > + description: > > > > > + phandle to the framer node. The framer is in charge of= an E1/T1 line > > > > > + interface connected to the TDM bus. It can be used to = get the E1/T1 line > > > > > + status such as link up/down. =20 > > > >=20 > > > > Sounds like this fsl,framer property should depend on the compatible > > > > being present, no? =20 > > >=20 > > > Well from the implementation point of view, only the QMC HDLC driver = uses this > > > property. > > >=20 > > > From the hardware description point of view, this property means that= the time slots > > > handled by this channel are connected to the framer. So I think it ma= kes sense for > > > any channel no matter the compatible (even if compatible is not prese= nt). > > >=20 > > > Should I change and constraint the fsl,framer property to the compati= ble presence ? > > > If so, is the following correct for this contraint ? > > > --- 8< --- > > > dependencies: > > > - fsl,framer: [ compatible ]; > > > --- 8< --- =20 > >=20 > > The regular sort of > > if: > > compatible: > > contains: > > const: foo > > then: > > required: > > - fsl,framer > > would fit the bill, no? >=20 > Not sure. > "fsl,framer" is an optional property (depending on the hardware we can ha= ve > a framer or not). Ah apologies, I had it backwards! Your suggestion seems fair in that case. Thanks, Conor. --an5JAs7matqyH5h+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQHNkAAKCRB4tDGHoIJi 0rk4AP9tF09K9UpnoFfoFVhxs4hN1zi4zumz8pDO+w2kSvpj+wD/U+zvPN42popV KEeEL83/RHxkPDfOblyLbLTsTcrtZgA= =fzsq -----END PGP SIGNATURE----- --an5JAs7matqyH5h+--