From patchwork Wed Aug 9 13:27:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 133267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2816312vqr; Wed, 9 Aug 2023 06:57:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE87I6/m5vuBu/luzOAntpYOBWuMWDluxX0e2nhmJwPL6W9qIibBCzeVe6oklCN8XZFvzrZ X-Received: by 2002:a17:90a:5294:b0:263:3386:9da8 with SMTP id w20-20020a17090a529400b0026333869da8mr1741616pjh.49.1691589430955; Wed, 09 Aug 2023 06:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691589430; cv=none; d=google.com; s=arc-20160816; b=nptqgVks1WtTqxPWFS9LZxgDH5ASTCZmhn1XBhCLllwzErUpC3B9+LmHuBDEU9vXKN F+DRgugh8dC7SXtAZG15rxZBaHY8+9RoKS4R2hzZpgOzPHJhX4grFOssbxWaBoltRFUe 2WXxCjFPnFi7q/u5VqYAh14+/Cr73dqJapYiJhq6EB73N0NJAu2e10GHluEqurUT5lKK JjrrtCcIlEvE0hmXnZlDSiuY36eLINrHF35JbTAkalOPP3KaQjGJqiR3JuJIptxVI+xN ChVkRCSQ8gkKC2jsgFcUvE3pB+gdogCHL15knxsNCP8W/oTcUm1nsTj5DMY3YDZyqXSi scwQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3JD+3fKGnMbSvdz1F67euTX0+sfYtpi8OvnsedJgBLQ=; fh=OtJVFpZ5Y8/ND7g8QcUIbRSFhG4LznwcYYtG4zWKevM=; b=CQyxaMFQBHmTfSQPEitbEnriI/7IkD7dNllWh8LrOJCTnMVxjb+iLvO0Qx9qNi1AkW 7BBojdvBwXN+oGqdT9+HEv/40b9uYffkG3Lxsky3TLrAfIn3Ry+oJzmtAD+0bW9eHl5l URcuyzBeZQzpkxz7EXprDfEnmNdCtfqXhaN/IvSX3RQzHmVVD31IVj+B6h1icTWcwc0q 3jBLTxFE+h1pwP9cr6B3Lnsl5jOgs8dGBykD6DFrlrm2qUf0Pvx+txRCuVKxP4pyqBZJ +oFWuYFPmIONKKkMGl2vdy6eLWTJyebk7E64ktiIy3MYpR1Kh1+r3xXlWs5p3KTsXAp2 QzTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=c0wz82JN; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch5-20020a17090af40500b00263542b45a4si1490468pjb.43.2023.08.09.06.56.57; Wed, 09 Aug 2023 06:57:10 -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=@bootlin.com header.s=gm1 header.b=c0wz82JN; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231875AbjHIN2r (ORCPT + 99 others); Wed, 9 Aug 2023 09:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232946AbjHIN23 (ORCPT ); Wed, 9 Aug 2023 09:28:29 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778B42694; Wed, 9 Aug 2023 06:28:20 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id E51A040015; Wed, 9 Aug 2023 13:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691587699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3JD+3fKGnMbSvdz1F67euTX0+sfYtpi8OvnsedJgBLQ=; b=c0wz82JNYLUNv3xyAjAZVJp3guw2pXI+9LbiLhL3ka2EuoPEKN8NHlGP6TWDJVgyekrpU6 /WOnIlP4xvVWpCoHTcwypdqn2MMgYzFLlqu5CyD5qYcnhEfBQZ+L73b0gc9wZwAWGWJ1Ho +vltVn/Qxbfg8c4oGyCaEhOVqMW4W/VaqsR0O1oefNS+vP4tVhDv4km+dF7lwNJJ2/Kg4F OamiwYRWvzB7BDscOdWsMAiwhNLYuFkWHsWcJiUcsIwAxb4OaVPAJ9tTN/1NblOMwqq2Wm 5NrlcsGQZ19FodnA+X4k1uu7dQyInbDze5rHs536a0uZ/9SWXtWwVwQETtip1Q== From: Herve Codina To: Herve Codina , "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 Cc: 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, Thomas Petazzoni Subject: [PATCH v3 06/28] dt-bindings: net: Add support for QMC HDLC Date: Wed, 9 Aug 2023 15:27:33 +0200 Message-ID: <20230809132757.2470544-7-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809132757.2470544-1-herve.codina@bootlin.com> References: <20230809132757.2470544-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: herve.codina@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773760079247440262 X-GMAIL-MSGID: 1773760079247440262 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. 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. Signed-off-by: Herve Codina --- .../devicetree/bindings/net/fsl,qmc-hdlc.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/fsl,qmc-hdlc.yaml diff --git a/Documentation/devicetree/bindings/net/fsl,qmc-hdlc.yaml b/Documentation/devicetree/bindings/net/fsl,qmc-hdlc.yaml new file mode 100644 index 000000000000..13f3572f0feb --- /dev/null +++ b/Documentation/devicetree/bindings/net/fsl,qmc-hdlc.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/fsl,qmc-hdlc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale/NXP QUICC Multichannel Controller (QMC) HDLC + +maintainers: + - Herve Codina + +description: | + The QMC HDLC uses a QMC (QUICC Multichannel Controller) channel to transfer + HDLC data. + +properties: + compatible: + const: fsl,qmc-hdlc + + fsl,qmc-chan: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to QMC node + - description: Channel number + description: + Should be a phandle/number pair. The phandle to QMC node and the QMC + channel to use. + + framer: + $ref: /schemas/types.yaml#/definitions/phandle + description: + phandle to the framer node + +required: + - compatible + - fsl,qmc-chan + +additionalProperties: false + +examples: + - | + hdlc { + compatible = "fsl,qmc-hdlc"; + fsl,qmc-chan = <&qmc 16>; + };