Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3101786rdh; Thu, 28 Sep 2023 02:38:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2WxtRjOyu9yeX9SnZAXst27x9M4e7aTJAYXW9Fry/gwYuQaqP8rzsZkKt8BO3P8iiP4iG X-Received: by 2002:a25:dbc8:0:b0:d78:341d:e475 with SMTP id g191-20020a25dbc8000000b00d78341de475mr534469ybf.44.1695893939380; Thu, 28 Sep 2023 02:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695893939; cv=none; d=google.com; s=arc-20160816; b=WHsRPqIDV3vgK3QBep9DyxrnNgwEmN//JiKKrxqU5PNpXGBLUY/psLkWWkKqxNrpwq gK18adx3jQF9SBnKyHbqgdyTQruRtT/jcRBa+x1MOIEIMTRaqVZhh035MBlw3jkSrEXE lMXe4alyPjF8avGrkn4QV3kAt5pyKprfjO8VTOd4IwR4Ja6KDgJV3jzDoCYIbUf4tKrX H4ASvkKsaMCU18hfaTtePTWpbui7f4yy2M9RKedOCEJVKi7kq/PX7aMvDGW8Sfh1vW/d KSm+ywK1aXuzLmX2WjKOuwQlkwHbkmxdpZYlLu24xLsUAyIPK41OgY8hIMsk6CDpI3NH K1aQ== 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=exqU44vp0OQhVVoPYW7chAWLNAw8ghblo4zFam/LWAs=; fh=nGnkZFlgJqtwGaeSfB/QcETgBm5VXgCFM5tzYnaxwE8=; b=um6F0j35fqKvzwkww4StHQEbKX7OzEUEeLnU2u6D70/H/GHKKqUDS6pXQZsLmokvrZ 4CncgZCg7H0OyFKckueWnZ4zfA2EeVmC27hEX/RIEK3/zdmJc2RZNpVIMUlNsQ8qRG17 BQoLW3o7j78CfWVqOmltRWcJEWENa6l88iWNoxmWoBR3ZL3cVjeFzxnWsUw6Kt8BbS4g MTnV0efSSDy9VwZq8FkUzyEc+YSbLJYRP00YP56g6QH1bG2hb7VplwzDBzW9hMILQpKy OJhvmg1+d/GeVty+NjsfeyF7w+xx+oEa/7NJuIXTg9JkkeWV59GtLIWPt+fYOUURC3Xt ro1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="G/yLwZWG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id h191-20020a6383c8000000b00584a5cd69basi7312126pge.177.2023.09.28.02.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 02:38:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="G/yLwZWG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 4EE93801C9D8; Thu, 28 Sep 2023 00:09:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjI1HJI (ORCPT + 99 others); Thu, 28 Sep 2023 03:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231392AbjI1HIN (ORCPT ); Thu, 28 Sep 2023 03:08:13 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36B7310FA; Thu, 28 Sep 2023 00:07:35 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 23DE620004; Thu, 28 Sep 2023 07:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695884854; 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=exqU44vp0OQhVVoPYW7chAWLNAw8ghblo4zFam/LWAs=; b=G/yLwZWGtW3jYAR0bAZcO6glJTXnfqy0TxdVYNVsTh0sw7G815KnSpFlkJ1QnVwLgmA6S8 ox3I6lYkzQFlFTCQ2yiF32mdC+cQCNZgYZOxGtFDtcI8wgNegtYAKMyyLunHWwpxgWcUQo Qpc0VPrKxBlSSI/6vwD5OcFn7ONURR1M0IltMc9yV4JTV1UqPTTo1CPdvQJbGMWYOPgbPu GE5dbVnDD+Tki98UUIS8zBnX+NFGw13P7/I0s+9aofptTVtxQq26Hb+6TXstK6vRoeFSig 2+lbKUTW5AkuJeGzTH+EMCFtHPdiIpZL4/SwFqQvX0P5AT5032iAG56F3UK4uQ== From: Herve Codina To: Herve Codina , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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, Simon Horman , Christophe JAILLET , Thomas Petazzoni , Rob Herring Subject: [PATCH v7 08/30] dt-bindings: soc: fsl: cpm_qe: cpm1-scc-qmc: Add support for QMC HDLC Date: Thu, 28 Sep 2023 09:06:26 +0200 Message-ID: <20230928070652.330429-9-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928070652.330429-1-herve.codina@bootlin.com> References: <20230928070652.330429-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com 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 morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 00:09:28 -0700 (PDT) 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 Reviewed-by: Rob Herring --- .../soc/fsl/cpm_qe/fsl,cpm1-scc-qmc.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) 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-scc-qmc.yaml index 82d9beb48e00..e802e25923aa 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,32 @@ patternProperties: Channel assigned Rx time-slots within the Rx time-slots routed by the TSA to this cell. + compatible: + items: + - enum: + - fsl,mpc885-scc-qmc-hdlc + - fsl,mpc866-scc-qmc-hdlc + - const: fsl,cpm1-scc-qmc-hdlc + - 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. + + allOf: + - if: + properties: + compatible: + not: + contains: + const: fsl,qmc-hdlc + then: + properties: + fsl,framer: false + required: - reg - fsl,tx-ts-mask @@ -155,9 +181,13 @@ examples: channel@19 { /* Ch19 : 8 TS (TS 8..15) from all routed from TSA */ + compatible = "fsl,mpc885-scc-qmc-hdlc", + "fsl,cpm1-scc-qmc-hdlc", + "fsl,qmc-hdlc"; reg = <19>; fsl,operational-mode = "hdlc"; fsl,tx-ts-mask = <0x00000000 0x0000ff00>; fsl,rx-ts-mask = <0x00000000 0x0000ff00>; + fsl,framer = <&framer>; }; }; -- 2.41.0