From patchwork Mon Aug 12 16:50:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13760850 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 53202C52D7C for ; Mon, 12 Aug 2024 16:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=2CTVRmxbByW2YRbrohBxDwhpt7SeRR15knglV8wjIpc=; b=PAJhe/ObgMBQUzhem8lplaFzek u09D56BS/K2JJ2Dr/C1JvTbxn8P9etuGNwq9qFnblp/NhxeDBfdto1B2uT7pxSuwo4bF7xWTIzdcm y/QVFdIWa55Rp8uiIZEzFlOe24XmSQQx8p9/2iEr1f8oFVso76Rb277RYQ1TCn8VcxsyG1Ax2u8Ur ulQ+LhkNyjvme4qyFm/SjAsbZZWms6O+Wm8RwKQb6l4rlcgKkoNA8Go1JpWix/Q7coXTzq8xpKNPM k7l5DrS3+EqJCAyEQLb2B66TY2b/PkqujFW/qKwOzp/CyUJ4d/g9H+V0jBvKGnVsTrTc5Z8j9PbU8 4n3q17Mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdYGo-00000000wZ8-0g6E; Mon, 12 Aug 2024 16:51:46 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdYG9-00000000wOX-3Eik for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 16:51:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BYvuqW0hqLga4FjtzPm7M/etdxhnFNntV2CdEmnyyno/eEHv9O5/fWYz+pYPtj/MDud8C0Ft3IFxetvpKXVcGMKqF9Voynty/2WBSn0hocP2F5EKDEr9UApsdaBnlviJV2Mta9lqNokWim6Ba1lAHk18m+27CQsmauUTPHsqYkKvMtZj+EUVCsd6nc2717NCo6D7G8RRYwJNl1EXII4JceWVSMQoXx10xAu1nx1TmN7Ps/HR90K94HaSxMSHFKarAm3nGuj88B5/Ecb6G/AWj9WyKTkk6+gVqhLlw2xHsmczTVWAJQJk2aqCX6FgvY8MV2kFrEECugnRIqwKZxqaAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2CTVRmxbByW2YRbrohBxDwhpt7SeRR15knglV8wjIpc=; b=Mm34YfkgQdwIg5P+PxENrvYyG34iR7b1Q4senruNnqlgrTNJnAQqlX4yGX8ZA96kyz9Fwfy3oTcJR2ra8urpxFyww8DIO5tABgU555BFmfr7JSpJBx5k9sEvup9vPzJAeWjOTP5/d4jYutEX22A9WWmJBc0uppqSU6rbbzhS26WP0ARsmckPg4atNyZK4ROOB/InOxXk08FuFulcLOjke4sp9XIZDtIj2TmkW5L2QuMGeTGcmYG82WAcXSiCFBGoV3e9UJz7eXP3xdFJTdGvcZKYbqvpWkXNqPAO7WC7B2qql1J6VAbTPDC/cCKaq5F/zaquRdukcJNgwsBHu3ehZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2CTVRmxbByW2YRbrohBxDwhpt7SeRR15knglV8wjIpc=; b=iBfHpl+izZOKXLw87J+2k6n++I5wqD5BsCmjmCiVl8TS9tl2qzkSkKan/NxSSryd1F3JgOtsXMORZwhD2MemnJ1ESL9UTmmyl8tDgnsCdF6ln+qpv9fMpDbRWsNiC7cp9LprVyhIJb14mI8JeswEqd15slIwBPaTLffQRs9qneUQ1ZkwHXRvGJx2CPjcGw0RhXVRIZjmtrfCS2YNYmuAurcKBYblyVSIqQoK/tg72CvA8osVdF8VWPthtK5FDTuEhUdMxpZkc1vayIE3D1JmPAXO5P9PDgoyLm/oerLg1sh9ydw9SdFfAoqygfu1yLOP0iIr0wfgVa6Lz19Wrf5lKQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS5PR04MB9825.eurprd04.prod.outlook.com (2603:10a6:20b:672::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.20; Mon, 12 Aug 2024 16:51:00 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%3]) with mapi id 15.20.7849.019; Mon, 12 Aug 2024 16:51:00 +0000 From: Frank Li To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Christophe Leroy , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linuxppc-dev@lists.ozlabs.org (open list:FREESCALE SOC DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:FREESCALE SOC DRIVERS) Cc: imx@lists.linux.dev Subject: [PATCH 1/1] dt-bindings: soc: fsl: cpm_qe: convert network.txt to yaml Date: Mon, 12 Aug 2024 12:50:35 -0400 Message-Id: <20240812165041.3815525-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR13CA0017.namprd13.prod.outlook.com (2603:10b6:a03:2c0::22) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS5PR04MB9825:EE_ X-MS-Office365-Filtering-Correlation-Id: 6247cb31-8d62-4005-5bad-08dcbaeef1b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|7416014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: hdt1DKQhqAOZDiwLyORJ+HygN4eNslI8hYVNk2U6IpkXuwPqus78OiF0EJiSqUEhlt9MiZk12HxZ7A5wRoA4McqrP2iw6+RrCy9WjMe+KBW/wdxHy04z+KHIqKH0MTDxpblRMClFrAU9+HtcuUsYap09s2peRl7YLhsdFRLMBsAse7A/mrslBeG/FrRrAP/iO3pm6/Qes0JDv9roKuT5xtJGyDGkTc/n76gYgIXAGVtlEhmp98t2FWcIILnbV7FafucUTFRT0PYCMQbPHofLuLaY57wfMfUbcmBLLDqhdu3Hm8lPvUmOHQH1bq99/T9dKhR8q36uCYxMZYFOvzDMYOwwHdo8GZCWIW5LSIHFFUNtMvRhTQnraNxHv3LeXhMeduVkhA6hfUXMSf8YvEErc8f3Ups0P8k6TnQ9mCcFOfDA5Rw0l+GFTxMbJp9tE1Lc2XtSowhdvyhGsY3ThD5BlMnU7ECC8HywC1sv0wu//Os0UfZUeg0wAvzRSz0DHbo6uWq150gkQqjZyzd4vNqy3ggkuy8WhkvVtTvZrQgq3jcouUEctQjciXiNvQ94zRN+1QagpKqLGbDrM64pspUUdSirPUxicI2Z5vu2NlOiQ72BqOz+rgJfH5PX3/ebHBXMPYuAVF1eBVaefpJTmvSPjZEgXcJZUEeVdSIXpxy62UJZtA8XbgriB2T1hLSQV/yo9T/2tsFQWaYR2iDsSCT3IasnyEqeYbd2zVycLgiieIkkDKRq07S0t8Y8ab211DYbFlVdHwTKdS0VkCBy6zcAAodbB5JP+Z3rLBDgKgKjOLUbW6HjBYYZOZZSNPtP7ratigW7EXIGLP/ZJxQK6imS3mRvoGRzkMSjYLBsVWfcm9QMAlQHoeTioQddznI6zEoyMg7RtpGwlxYvjn0AqOYWyqbu6hVM8kO8lRPOhhI1zKRN6rVWhQ8tGqhPfz9ygLc+fcT4tWszbWGYCddd8V2g/Mfrw+5zKR0vi6E7zrGS9sg5BVL35WKBRuig6MF4gYO2lvEM8mpnVRS1kl799+hSpwcC0328t8yjx5KnN7VAALFJnflkldaaFL82iDQNgxgU/2iMCrNn3xuIbrbI/zQr1eu2hiuhPXID53V4Z0PyJGAfKKDDB7FNQyPHptBmgJW/3ZIey1fkAelEeWhsyDVi+nyvWSg+/I6lMO8htkiujKV+HE4sGBMiWCCr7rz+uduiQrJWizgrbrAr6cst1B9vetM+BEv41Ma7+NTBu6k+1vJD0ALZ7EH0eFEQXuLaPxhDv3rrN3PHqxXzkMVDzDeEtzvhwXiYtRXCiARL7zlCcg3HgfAyvq4tTWDA2KRPXfF4x47jmFAp9MO5ZQHMFWNBYhOpMrzsaA6qRt8xhYO3cGc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(7416014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dFmEXmg7lKfSU8keG4zTcTkL1gvZzz7R26sgfUT4vmStGCm0M2griaqOs1iqgvygMqFh28i8CvF8IDH5Guhw8zty/LCkhs/LVrPf4qO7B0mUOVS8bS29XO8vW7xRNz/PrpnBewHIJO4dh2JFfscZ/YHq5BgxdU2jQwmIzWZXWgvGJd5AfRrw7KP1yYHYvJk4cvHHr4mfrfjplm+WGQYrtKMQ3dVVUuzvIJ3ceXzeZOHRD7qIo4WIghtXKJCp1JCtJdo/8VASp+p6TRK7k8f0ORTa4gRRA82KycaURjtaV26LgGvz1GU9jURlsZBTSADoQIXatPG56hGYuv60ozqJB+gC0wooVwUB78+xijAFDETUjfPOOdf54osvsCZAbrxT7h+9dRQokIAGU1He0c5oiNy1X2qFFlibwyMpaXTWcwlMdmfye5mKOodixUpKAM+lepdfdD4e0c4VECGQG76NbmvsR+Ddf335hgODLj7x/SOKw5FqdpW4mVqL7w8/ccjikn4UnBb7Ku7mN24iX4TAhJlo0mPq6FUF71hiGTM17E7uGSuo2K5VeYwUg/LijRxpo8emXmzIKwWVU7Ys3DHPjttnqV/XYuhX+HhTghCl5DpbXawqtjfK+I5yepE467Xlj9FcrmCyKh+c62MoKpHcm3HrK1t8Kndnk1cMdcqEeJyC8RCvhK1mgHjIf1I3Pl3rbGPeATcENQJLYOI0+V6R7Xm2A8wctLprc+5YivCU4pf+9uLcOBBQ/eLAygyL8Igzb3IWRnFalTC/NzCQ77TVCsK4C85rm19RkSuoBLythKA6zpan/BpZpmsbmVRJlFPMUTZGF7ecc78SKAv+KxQwaqAXAEFnnaqcU7AiRyxiLynhyU2ORIWr2pXZumRkPnI8uerqlP7Eb6ANPRJ7KWeWVR6S4ZCYfGc1fmt1DNFCnKp39YBHRyGjHrOtQrRUrLiiQCmjgI7khz4qREYyw1naxWwoMqknVDKSJStbrqobWTGtUQyq78dsliFelr9d8UlZt3TAkriSZV79Ek7xhePeGZlSCB4j/SBRn91FdwFuX4mLp7reIFUK1MfM+nfQ1amSt2affMyDFN9arulG3jnxjR2sPhtpNlZvhESuXTE+k5MB+t398zjMBNKthyZ3Qkb5EuEWN7VjDaZUcTxJJgibJT/gqXusClY/ymTPAgQ8d9vIusmIhecNvWQM8gbHf3BsfT7gIH6wX6Ky5EmeHCIP5ffAtXSN4u0TUq0Q1DLyGy4qeoIwFIf/6Y1VKvtA0CoyknxFdnKAqNV1dJ5NK8bPE4H10OQOta/kmd83LKV+l/wATZXGX7ejGFBM3VrDYTx3dPzyBe4POM3H6tKMqb+V/i20k4/KFTuhx+vfv7DpCEn/YvNZqnBHoaQUPKsstxxOsOgJHI4AYffq1dcGQaXn7yua7cFeZs8k6DBGhjKUQYYw/SoV2fTnd10zrjM0dcBVLl1PSbbXip6yhOJLpHtRpezS/iBbM8xJrhy9amS/0G0MMn9Otv4K4BbPCIS035uCBtnzQGc0MF7MEUqD/l7Cp2kygBNMk47zSTB6dETSne8= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6247cb31-8d62-4005-5bad-08dcbaeef1b5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2024 16:51:00.2278 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bqnrg0CEvHO6CEnMFi0bvFOcQNsdHfATaaaReA+LiJ7j1o6ZbYVu7rqExOfLYgYg6F7DO0cnmMfoyIKSXh7M2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9825 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_095105_981297_C039EA57 X-CRM114-Status: GOOD ( 16.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert binding doc newwork.txt to yaml format. HDLC part: - Convert to "fsl,ucc-hdlc.yaml". - Add missed reg and interrupt property. - Update example to pass build. ethernet part: - Convert to net/fsl,cpm-enet.yaml - Add 0x in example, which should be hex value - Add ref to ethernet-controller.yaml mdio part: - Convert to net/fsl,cpm-mdio.yaml - Add 0x in example, which should be hex value - Add ref to mdio.yaml Signed-off-by: Frank Li Acked-by: Jakub Kicinski --- This one is quite old. The detail informaiton is limited. --- .../devicetree/bindings/net/fsl,cpm-enet.yaml | 59 ++++++++ .../devicetree/bindings/net/fsl,cpm-mdio.yaml | 55 +++++++ .../bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml | 140 ++++++++++++++++++ .../bindings/soc/fsl/cpm_qe/network.txt | 130 ---------------- 4 files changed, 254 insertions(+), 130 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/fsl,cpm-enet.yaml create mode 100644 Documentation/devicetree/bindings/net/fsl,cpm-mdio.yaml create mode 100644 Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml delete mode 100644 Documentation/devicetree/bindings/soc/fsl/cpm_qe/network.txt diff --git a/Documentation/devicetree/bindings/net/fsl,cpm-enet.yaml b/Documentation/devicetree/bindings/net/fsl,cpm-enet.yaml new file mode 100644 index 0000000000000..da836477e8bad --- /dev/null +++ b/Documentation/devicetree/bindings/net/fsl,cpm-enet.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/fsl,cpm-enet.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Network for cpm enet + +maintainers: + - Frank Li + +properties: + compatible: + oneOf: + - enum: + - fsl,cpm1-scc-enet + - fsl,cpm2-scc-enet + - fsl,cpm1-fec-enet + - fsl,cpm2-fcc-enet + - fsl,qe-enet + - items: + - enum: + - fsl,mpc8272-fcc-enet + - const: fsl,cpm2-fcc-enet + + reg: + minItems: 1 + maxItems: 3 + + interrupts: + maxItems: 1 + + fsl,cpm-command: + $ref: /schemas/types.yaml#/definitions/uint32 + description: cpm command + +required: + - compatible + - reg + - interrupts + +allOf: + - $ref: ethernet-controller.yaml + +unevaluatedProperties: false + +examples: + - | + ethernet@11300 { + compatible = "fsl,mpc8272-fcc-enet", + "fsl,cpm2-fcc-enet"; + reg = <0x11300 0x20 0x8400 0x100 0x11390 1>; + local-mac-address = [ 00 00 00 00 00 00 ]; + interrupts = <20 8>; + interrupt-parent = <&pic>; + phy-handle = <&phy0>; + fsl,cpm-command = <0x12000300>; + }; + diff --git a/Documentation/devicetree/bindings/net/fsl,cpm-mdio.yaml b/Documentation/devicetree/bindings/net/fsl,cpm-mdio.yaml new file mode 100644 index 0000000000000..b1791a3c490e2 --- /dev/null +++ b/Documentation/devicetree/bindings/net/fsl,cpm-mdio.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/fsl,cpm-mdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale CPM MDIO Device + +maintainers: + - Frank Li + +properties: + compatible: + oneOf: + - enum: + - fsl,pq1-fec-mdio + - fsl,cpm2-mdio-bitbang + - items: + - const: fsl,mpc8272ads-mdio-bitbang + - const: fsl,mpc8272-mdio-bitbang + - const: fsl,cpm2-mdio-bitbang + + reg: + maxItems: 1 + + fsl,mdio-pin: + $ref: /schemas/types.yaml#/definitions/uint32 + description: pin of port C controlling mdio data + + fsl,mdc-pin: + $ref: /schemas/types.yaml#/definitions/uint32 + description: pin of port C controlling mdio clock + +required: + - compatible + - reg + +allOf: + - $ref: mdio.yaml# + +unevaluatedProperties: false + +examples: + - | + mdio@10d40 { + compatible = "fsl,mpc8272ads-mdio-bitbang", + "fsl,mpc8272-mdio-bitbang", + "fsl,cpm2-mdio-bitbang"; + reg = <0x10d40 0x14>; + #address-cells = <1>; + #size-cells = <0>; + fsl,mdio-pin = <12>; + fsl,mdc-pin = <13>; + }; + diff --git a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml new file mode 100644 index 0000000000000..64ffbf75dd9d2 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml @@ -0,0 +1,140 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: High-Level Data Link Control(HDLC) + +description: HDLC part in Universal communication controllers (UCCs) + +maintainers: + - Frank Li + +properties: + compatible: + const: fsl,ucc-hdlc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + cell-index: + $ref: /schemas/types.yaml#/definitions/uint32 + + rx-clock-name: + $ref: /schemas/types.yaml#/definitions/string + oneOf: + - pattern: "^brg([0-9]|1[0-6])$" + - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" + + tx-clock-name: + $ref: /schemas/types.yaml#/definitions/string + oneOf: + - pattern: "^brg([0-9]|1[0-6])$" + - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" + + fsl,tdm-interface: + $ref: /schemas/types.yaml#/definitions/flag + description: Specify that hdlc is based on tdm-interface + + fsl,rx-sync-clock: + $ref: /schemas/types.yaml#/definitions/string + description: rx-sync + enum: + - none + - rsync_pin + - brg9 + - brg10 + - brg11 + - brg13 + - brg14 + - brg15 + + fsl,tx-sync-clock: + $ref: /schemas/types.yaml#/definitions/string + description: tx-sync + enum: + - none + - tsync_pin + - brg9 + - brg10 + - brg11 + - brg13 + - brg14 + - brg15 + + fsl,tdm-framer-type: + $ref: /schemas/types.yaml#/definitions/string + description: required for tdm interface + enum: [e1, t1] + + fsl,tdm-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: number of TDM ID + + fsl,tx-timeslot-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + required for tdm interface. + time slot mask for TDM operation. Indicates which time + slots used for transmitting and receiving. + + fsl,rx-timeslot-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + required for tdm interface. + time slot mask for TDM operation. Indicates which time + slots used for transmitting and receiving. + + fsl,siram-entry-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + required for tdm interface + Must be 0,2,4...64. the number of TDM entry. + + fsl,tdm-internal-loopback: + $ref: /schemas/types.yaml#/definitions/flag + description: + optional for tdm interface + Internal loopback connecting on TDM layer. + + fsl,hmask: + $ref: /schemas/types.yaml#/definitions/uint16 + description: | + HDLC address recognition. Set to zero to disable + address filtering of packets: + fsl,hmask = /bits/ 16 <0x0000>; + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + communication@2000 { + compatible = "fsl,ucc-hdlc"; + reg = <0x2000 0x200>; + rx-clock-name = "clk8"; + tx-clock-name = "clk9"; + fsl,rx-sync-clock = "rsync_pin"; + fsl,tx-sync-clock = "tsync_pin"; + fsl,tx-timeslot-mask = <0xfffffffe>; + fsl,rx-timeslot-mask = <0xfffffffe>; + fsl,tdm-framer-type = "e1"; + fsl,tdm-id = <0>; + fsl,siram-entry-id = <0>; + fsl,tdm-interface; + }; + + - | + communication@2000 { + compatible = "fsl,ucc-hdlc"; + reg = <0x2000 0x200>; + rx-clock-name = "brg1"; + tx-clock-name = "brg1"; + }; diff --git a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/network.txt b/Documentation/devicetree/bindings/soc/fsl/cpm_qe/network.txt deleted file mode 100644 index 6d2dd8a31482a..0000000000000 --- a/Documentation/devicetree/bindings/soc/fsl/cpm_qe/network.txt +++ /dev/null @@ -1,130 +0,0 @@ -* Network - -Currently defined compatibles: -- fsl,cpm1-scc-enet -- fsl,cpm2-scc-enet -- fsl,cpm1-fec-enet -- fsl,cpm2-fcc-enet (third resource is GFEMR) -- fsl,qe-enet - -Example: - - ethernet@11300 { - compatible = "fsl,mpc8272-fcc-enet", - "fsl,cpm2-fcc-enet"; - reg = <11300 20 8400 100 11390 1>; - local-mac-address = [ 00 00 00 00 00 00 ]; - interrupts = <20 8>; - interrupt-parent = <&PIC>; - phy-handle = <&PHY0>; - fsl,cpm-command = <12000300>; - }; - -* MDIO - -Currently defined compatibles: -fsl,pq1-fec-mdio (reg is same as first resource of FEC device) -fsl,cpm2-mdio-bitbang (reg is port C registers) - -Properties for fsl,cpm2-mdio-bitbang: -fsl,mdio-pin : pin of port C controlling mdio data -fsl,mdc-pin : pin of port C controlling mdio clock - -Example: - mdio@10d40 { - compatible = "fsl,mpc8272ads-mdio-bitbang", - "fsl,mpc8272-mdio-bitbang", - "fsl,cpm2-mdio-bitbang"; - reg = <10d40 14>; - #address-cells = <1>; - #size-cells = <0>; - fsl,mdio-pin = <12>; - fsl,mdc-pin = <13>; - }; - -* HDLC - -Currently defined compatibles: -- fsl,ucc-hdlc - -Properties for fsl,ucc-hdlc: -- rx-clock-name -- tx-clock-name - Usage: required - Value type: - Definition : Must be "brg1"-"brg16" for internal clock source, - Must be "clk1"-"clk24" for external clock source. - -- fsl,tdm-interface - Usage: optional - Value type: - Definition : Specify that hdlc is based on tdm-interface - -The property below is dependent on fsl,tdm-interface: -- fsl,rx-sync-clock - Usage: required - Value type: - Definition : Must be "none", "rsync_pin", "brg9-11" and "brg13-15". - -- fsl,tx-sync-clock - Usage: required - Value type: - Definition : Must be "none", "tsync_pin", "brg9-11" and "brg13-15". - -- fsl,tdm-framer-type - Usage: required for tdm interface - Value type: - Definition : "e1" or "t1".Now e1 and t1 are used, other framer types - are not supported. - -- fsl,tdm-id - Usage: required for tdm interface - Value type: - Definition : number of TDM ID - -- fsl,tx-timeslot-mask -- fsl,rx-timeslot-mask - Usage: required for tdm interface - Value type: - Definition : time slot mask for TDM operation. Indicates which time - slots used for transmitting and receiving. - -- fsl,siram-entry-id - Usage: required for tdm interface - Value type: - Definition : Must be 0,2,4...64. the number of TDM entry. - -- fsl,tdm-internal-loopback - usage: optional for tdm interface - value type: - Definition : Internal loopback connecting on TDM layer. -- fsl,hmask - usage: optional - Value type: - Definition: HDLC address recognition. Set to zero to disable - address filtering of packets: - fsl,hmask = /bits/ 16 <0x0000>; - -Example for tdm interface: - - ucc@2000 { - compatible = "fsl,ucc-hdlc"; - rx-clock-name = "clk8"; - tx-clock-name = "clk9"; - fsl,rx-sync-clock = "rsync_pin"; - fsl,tx-sync-clock = "tsync_pin"; - fsl,tx-timeslot-mask = <0xfffffffe>; - fsl,rx-timeslot-mask = <0xfffffffe>; - fsl,tdm-framer-type = "e1"; - fsl,tdm-id = <0>; - fsl,siram-entry-id = <0>; - fsl,tdm-interface; - }; - -Example for hdlc without tdm interface: - - ucc@2000 { - compatible = "fsl,ucc-hdlc"; - rx-clock-name = "brg1"; - tx-clock-name = "brg1"; - };