From nobody Wed Nov 27 02:26:04 2024 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2065.outbound.protection.outlook.com [40.107.22.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D5FD227B84; Tue, 15 Oct 2024 13:13:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728998035; cv=fail; b=bYevlS0kT/OXZdP7b/qpHeLhhuWmvvCZWoYf0VBMy+/mh5QmNecJj9gwqaJI26WJkB7XlfzPB4mL+VpOmdHI4xxeBCJkHB87nC/U21cZVnM5gx1NmIqCck7Xe7eRHznrlD64tyQkaSZeyagBHExysEAHcSLIpvTOFE/yCHP9Zfc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728998035; c=relaxed/simple; bh=m6QZd2W+FGDZ7/+DLRV6ptbnvayiFlpyLJ1PRo89eNM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=HVbUL/gDQYN3b3r/UwaHL8YAfUPj6fxPXLqlgXc/vLzj9r5zMO3Jif4gfTZ5tQyb6JYam9rChVPStZBwzPefr/UTKeq5Rz+6LvrrciFq4lnAIyHkYLD1Ri5nN/215mKYY/YiPhIFVNpuGgV2RsfwzfXR+5MFR76L+WVNNVF2rbQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=C5/ns6uD; arc=fail smtp.client-ip=40.107.22.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="C5/ns6uD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vbgKDHMYgZuiGEoezfQP0pAJeZBGe8waLNsjhwh6QfZ95RETDSbANgzA+Nca2evYz2TwNGcdyhUq7DTmj0C+dAg9v06lN0CU7jSePUvAw8WjzHOR0HvgS5SBviz9GEohwG7qodG3PW1CZKeeex+ZXTOVSf1tNrKWsRTJMh+r/8mZXUlLcV+VswZaFAOTjfV/9UgwDfQrPZ5d9UFpQIwv7/Qiv51AgGRM46Tfu18js0Is/RHbaMcNJIXuVFbFdL+c2k6kCl6Aimq5k9u7I3bDZcxiWuliXBg5B8HxQGxFt/Efa3mDCmH2B2a0BOIx+OYnAZRrho8nc2oTufWQyanOhA== 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=q33dEmPWNRXmhcrUMfWZDC19xxfRYpOcCFacPXnIzis=; b=Xc1K+hjM/KHdoqV8XxDESgP9c3XsKZrj7DxFVpTE5kkzIZ2dz4+gY5keKqCXjF0UbLEI69zrDTixob/PRolsqwwpcMM9UAmz09rtfzNHCPBQvzd7ViCxuzOYWP6wAVS13w3Y+LQkq8evticWlaMPtfD2a/4ns+q5jRRlEaPnZT/S3OGupQOcZZ98f6qnWavg4z7my+21+QYEfkqBcMwshJIMuKr+kCqwrbLjhlgzpX4TUTidwCEuJ8H7NqfODBS6KR95FqsRLdYvu+ECFcf14smZUaxrFYsQR9K4OVO0/2pPO3SmXoZ8Xk6DwlDZUDwCPoDJfTow6AMAtXurMixBLw== 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=q33dEmPWNRXmhcrUMfWZDC19xxfRYpOcCFacPXnIzis=; b=C5/ns6uDelIJMc2JNxrJNxJ1MsEDJZzB5pP9EsloS2S4fL3D2WD3QXT98nlvKANFJLbv8poEnVjfrSJSMtCF8GfaR0sKs1W2G/8y120H04fvCPVAA6i887auucT5avYh8G+tlVrGNSWdP7xm8cp1ZTVAP6NlC7/P7JgSJi/lrI1JVlWUnmHs8hUvbwgrq7Q77mK/k5QokK9jryrICITs7iDOnrafeVbGBelAU0OSFk1lJFFSngbXnRwKtQpdkn5RhAbiGxCkYF9luq3RYCSqGJOyKimAzQjlvLTq+V42p8/F7HWNWnV0/Lo5Jx4p7KUGPjhgT41uwiay47wFifmrug== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by GVXPR04MB11041.eurprd04.prod.outlook.com (2603:10a6:150:218::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 13:13:50 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%7]) with mapi id 15.20.8026.019; Tue, 15 Oct 2024 13:13:50 +0000 From: Wei Fang To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, vladimir.oltean@nxp.com, claudiu.manoil@nxp.com, xiaoning.wang@nxp.com, Frank.Li@nxp.com, christophe.leroy@csgroup.eu, linux@armlinux.org.uk, bhelgaas@google.com, horms@kernel.org Cc: imx@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v2 net-next 03/13] dt-bindings: net: add bindings for NETC blocks control Date: Tue, 15 Oct 2024 20:58:31 +0800 Message-Id: <20241015125841.1075560-4-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015125841.1075560-1-wei.fang@nxp.com> References: <20241015125841.1075560-1-wei.fang@nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SI1PR02CA0008.apcprd02.prod.outlook.com (2603:1096:4:1f7::14) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|GVXPR04MB11041:EE_ X-MS-Office365-Filtering-Correlation-Id: b5be645e-a9f1-4b4b-bc2a-08dced1b35c2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?L+QESobnR3vTY8E1603I5SuIGCApsYZGDIeB3MrNR+NaL5xKuBmAMgldRMW5?= =?us-ascii?Q?GvuzvDwdvBGuF+SVRs4vZux6lYoM2Dj6QiApBcK5+N7T/iGK6P1a9nuwhUUg?= =?us-ascii?Q?TwDA1QMdOPy+MmAYdYJF9w0UQ/0pEXOoBwNnaGf3D9bTMDdrQEYLYaMGEXhR?= =?us-ascii?Q?xKxOBuccxNP0+fUdAnF96+bD5LKYrYtyYghfHWy56D+nAAoHm3sfKsebMSmP?= =?us-ascii?Q?VaCnup4j3J95ibYAeMQK6XNCqXIgV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uUpW1i8pmVbtpqak9egcikHW6zamOFBXzJNEIaeAayniSi8QbHMKGy9kTULk?= =?us-ascii?Q?rT3jgaNw7cI9MP5MPuD4AmgtItdjcMyAp+qLbanh+yKPbXsGeg3sQWJUqMs2?= =?us-ascii?Q?UqYoFQsiuuQwERVEHVrSkMaQcnCGyhakjZjlOgFMyK2nI3+JRUpyEWe5utz8?= =?us-ascii?Q?jPg=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8510.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?vH9E/RymwlDeMLpsNSJLKpHaHIeNPhqZBDIz7PTgLoYmMlpdZrV5t61vINf9?= =?us-ascii?Q?UrRguhjCZFBmObYxpMPKZanNzJDA6BRq/7LuzPX1N4tG34mKXzvP1Cv914+K?= =?us-ascii?Q?fflCJwtAIb+hdUzg8XjxmNcWOgvolxNgvMZl7AhAqhOCGHTSzqhgawhSAcIq?= =?us-ascii?Q?ILUenQ4x20H0VHnswEFuv6ySkOwOMD3kbqeOXtE2+wqipo3I0OtisMXPaKt1?= =?us-ascii?Q?emTrjgQGS/stfU12DYKoPsGDX4UMs8EnKjljiO1gL5nNI1FsV5JCS5j1+M64?= =?us-ascii?Q?9Q4PcDhdui8rRROfjle0LBZ/c+fi0g/8fTtyv2isQezWxw5WrlEOt5uHgqs9?= =?us-ascii?Q?R7gnZK1mMtFb8xhVApwGvZGc/Ec/0QGTNMLVliMY5YR/FgJ9R/MpDxYK/RQR?= =?us-ascii?Q?1qHgC2buVHa1ZPsMKdFzO8GYwByezITouVSKn0pBHMKiYuoW9eTB8hoCydZt?= =?us-ascii?Q?xz0G8w5LC/IbY0dgGdDa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Q?pziNAHT9HUUU8cvK/9XN9ixUvzn+8W/mwqlXuLSqcdgqn6FNjh5YJVXwZdCH?= =?us-ascii?Q?dcrivvxGoyvIo9+8EdhE+ABWTrXJw3ElfvnK3Ea48+zPX1+vIwwxTTMriKuW?= =?us-ascii?Q?u14lDHEPxcjmz3J1JGJRYML7+9qX4kOCHFPxlLj6HdyY/ZaFuGLvDWcPYOSJ?= =?us-ascii?Q?MKgYRcieFExqcB0sLWanxxv4RfqtLtg8Gxdeqsb4?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5be645e-a9f1-4b4b-bc2a-08dced1b35c2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 13:13:50.3488 (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: 9gptV7H4MWNuPCSoKoqnGIBuhh71DUfeOc2zUIvYZ48lMFePbDPNeiHwMkNNzjfBfp/eS4UMXxS4Hiff4uXrGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB11041 Content-Type: text/plain; charset="utf-8" Add bindings for NXP NETC blocks control. Usually, NETC has 2 blocks of 64KB registers, integrated endpoint register block (IERB) and privileged register block (PRB). IERB is used for pre-boot initialization for all NETC devices, such as ENETC, Timer, EMIDO and so on. And PRB controls global reset and global error handling for NETC. Moreover, for the i.MX platform, there is also a NETCMIX block for link configuration, such as MII protocol, PCS protocol, etc. Signed-off-by: Wei Fang --- v2 changes: 1. Rephrase the commit message. 2. Change unevaluatedProperties to additionalProperties. 3. Remove the useless lables from examples. --- .../bindings/net/nxp,netc-blk-ctrl.yaml | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nxp,netc-blk-ctrl= .yaml diff --git a/Documentation/devicetree/bindings/net/nxp,netc-blk-ctrl.yaml b= /Documentation/devicetree/bindings/net/nxp,netc-blk-ctrl.yaml new file mode 100644 index 000000000000..18a6ccf6bc2e --- /dev/null +++ b/Documentation/devicetree/bindings/net/nxp,netc-blk-ctrl.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/nxp,netc-blk-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NETC Blocks Control + +description: + Usually, NETC has 2 blocks of 64KB registers, integrated endpoint regist= er + block (IERB) and privileged register block (PRB). IERB is used for pre-b= oot + initialization for all NETC devices, such as ENETC, Timer, EMIDO and so = on. + And PRB controls global reset and global error handling for NETC. Moreov= er, + for the i.MX platform, there is also a NETCMIX block for link configurat= ion, + such as MII protocol, PCS protocol, etc. + +maintainers: + - Wei Fang + - Clark Wang + +properties: + compatible: + enum: + - nxp,imx95-netc-blk-ctrl + + reg: + minItems: 2 + maxItems: 3 + + reg-names: + minItems: 2 + items: + - const: ierb + - const: prb + - const: netcmix + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + + ranges: true + + clocks: + items: + - description: NETC system clock + + clock-names: + items: + - const: ipg_clk + + power-domains: + maxItems: 1 + +patternProperties: + "^pcie@[0-9a-f]+$": + $ref: /schemas/pci/host-generic-pci.yaml# + +required: + - compatible + - "#address-cells" + - "#size-cells" + - reg + - reg-names + - ranges + +additionalProperties: false + +examples: + - | + bus { + #address-cells =3D <2>; + #size-cells =3D <2>; + + netc-blk-ctrl@4cde0000 { + compatible =3D "nxp,imx95-netc-blk-ctrl"; + reg =3D <0x0 0x4cde0000 0x0 0x10000>, + <0x0 0x4cdf0000 0x0 0x10000>, + <0x0 0x4c81000c 0x0 0x18>; + reg-names =3D "ierb", "prb", "netcmix"; + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + clocks =3D <&scmi_clk 98>; + clock-names =3D "ipg_clk"; + power-domains =3D <&scmi_devpd 18>; + + pcie@4cb00000 { + compatible =3D "pci-host-ecam-generic"; + reg =3D <0x0 0x4cb00000 0x0 0x100000>; + #address-cells =3D <3>; + #size-cells =3D <2>; + device_type =3D "pci"; + bus-range =3D <0x1 0x1>; + ranges =3D <0x82000000 0x0 0x4cce0000 0x0 0x4cce0000 0x0= 0x20000 + 0xc2000000 0x0 0x4cd10000 0x0 0x4cd10000 0x0 0= x10000>; + + mdio@0,0 { + compatible =3D "pci1131,ee00"; + reg =3D <0x010000 0 0 0 0>; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + }; + }; --=20 2.34.1