Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3290729rdb; Wed, 13 Sep 2023 07:52:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG57Vol6W/VDDnqsj/aVf9Nil7APoTurLBLhULGZ7/yCzlFkPigpJTNbyIWl/BAIlUJObhk X-Received: by 2002:a05:6a21:9983:b0:13a:43e8:3fb5 with SMTP id ve3-20020a056a21998300b0013a43e83fb5mr3021019pzb.51.1694616771574; Wed, 13 Sep 2023 07:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694616771; cv=none; d=google.com; s=arc-20160816; b=ZH51SvnSh7Hr1ECWkBltpHyCD9u0i24T6NenzW8zYtinYeiWWUb7CcbUbI3B3Po0ai iKXWCVeIj+UFQM3gjeNs9nqbJFDEwg7DM20HkDVEO4WN8/7mYQ10M4u2mV+sJ+4Ta4A5 aCaoUFCWOhHBqrJRgvC1T49xbYzY3VEfqtxjUN8mu9ayyYwhH4S5g19KmFDeK4ZbUsuV hOugF3IN/T0r28YnRbti2cvYLI0Hr0fxw+2XATDfjACC+aIHfud8QvWlhfDOFgcWBcSN XHbHBUKM9PgLTRNFZ1bl+H2Dx798XIdoP9L5PlvFj/Lhf1k683biI0DB5CB02kFJnsmR wiCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=O+j8CLkeQqfE/jh3KUACTiWhEVCfAwwkGv+CICyZc1E=; fh=/rzgVKi7hVLgsSGVtRhZOqgn16lZh7ZNeT5UIXovQv4=; b=Zsg96VNObS9UV7hPIQatERdq3rJZ6LkRF3izFpUG7Pt9GB6hDfoM7ZsL2vGYN5J0GR JIj+kkkmjm5cSp+G1BCBKpOu7tFDNJb6t84oBoGDPPvXa3NOpYRTNpm8kwDTjtyOeApd Al9VDctBJUFYpGeOKu3hz4G6K0jMNo099SVFidnR23S5LjtkNfZVfUCCNxyH7POnCo0L u/ms9KCNyqJMofXcW0WaZZ7s+B+2GdMJ+FVMO4U3ELo0Mfg8r6QggkYxJcgK/px8rpii sjXxR3puJmAolzDv/JJ+0OV2t0agRMjw+1j18AC+IH4jJUEjqeXcVerlzVZQUnZjst3b Jp1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=id5wBw+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 19-20020a631753000000b0056531bfc660si10422452pgx.143.2023.09.13.07.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:52:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=id5wBw+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7F7A381A2358; Wed, 13 Sep 2023 00:26:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238575AbjIMH0y (ORCPT + 99 others); Wed, 13 Sep 2023 03:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjIMH0x (ORCPT ); Wed, 13 Sep 2023 03:26:53 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70ACA1986; Wed, 13 Sep 2023 00:26:48 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 26012E000C; Wed, 13 Sep 2023 07:26:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1694590007; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O+j8CLkeQqfE/jh3KUACTiWhEVCfAwwkGv+CICyZc1E=; b=id5wBw+5IoW5nrGIWPBxMOPgujgtR6RcLR+FMdrunmLvgVotlzLE4P7GYyysXkHSpptRua AUfDx7XqGPnc1pFdO+2bGGISGvLbBCzyXlMgzpVW7v7AYC53V4Eaa7Giqyjg+JY6+zA/6X ae1i0V0aWjGLBf6bo0hPvjiAFVEw+x3XTs3VCD8PXidN9bityZlJLHPojdkWvSYwfW1nil jAHS1xzlhg0SXt7dGRnbvV2Qsa4Q1uRXGy564WEw0irLFiw0glEyZRzK5O1GQJ3au0virI 6//y6UwVKL0i+itAqUc3X0+fgIxkEkCePNW0m4OkaNXvPS+DkPuU9xPTWVApzw== Date: Wed, 13 Sep 2023 09:26:40 +0200 From: Herve Codina To: Conor Dooley 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: <20230913092640.76934b31@bootlin.com> In-Reply-To: <20230912-capable-stash-c7a3e33078ac@spud> References: <20230912081527.208499-1-herve.codina@bootlin.com> <20230912101018.225246-1-herve.codina@bootlin.com> <20230912-capable-stash-c7a3e33078ac@spud> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: herve.codina@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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 00:26:57 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.vger.email Hi Conor, On Tue, 12 Sep 2023 18:21:58 +0100 Conor Dooley wrote: > On Tue, Sep 12, 2023 at 12:10:18PM +0200, Herve Codina wrote: > > 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,cpm1-sc= c-qmc.yaml > > index 82d9beb48e00..b5073531f3f1 100644 > > --- a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,cpm1-scc-qmc= .yaml > > +++ b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,cpm1-scc-qmc= .yaml > > @@ -101,6 +101,16 @@ patternProperties: > > Channel assigned Rx time-slots within the Rx time-slots rout= ed 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 th= e 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? Well from the implementation point of view, only the QMC HDLC driver uses t= his property. =46rom the hardware description point of view, this property means that the t= ime slots handled by this channel are connected to the framer. So I think it makes se= nse for any channel no matter the compatible (even if compatible is not present). Should I change and constraint the fsl,framer property to the compatible pr= esence ? If so, is the following correct for this contraint ? --- 8< --- dependencies: - fsl,framer: [ compatible ]; --- 8< --- Regards, Herv=C3=A9 >=20 > Thanks, > Conor. >=20 > > + > > required: > > - reg > > - fsl,tx-ts-mask > > @@ -159,5 +169,8 @@ examples: > > fsl,operational-mode =3D "hdlc"; > > fsl,tx-ts-mask =3D <0x00000000 0x0000ff00>; > > fsl,rx-ts-mask =3D <0x00000000 0x0000ff00>; > > + > > + compatible =3D "fsl,qmc-hdlc"; > > + fsl,framer =3D <&framer>; > > }; > > }; > > --=20 > > 2.41.0 > > =20