From nobody Mon Feb 9 21:38:25 2026 Received: from GVXPR05CU001.outbound.protection.outlook.com (mail-swedencentralazon11013031.outbound.protection.outlook.com [52.101.83.31]) (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 A68D142E00D; Thu, 22 Jan 2026 10:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.83.31 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769079456; cv=fail; b=Y37igdgDwbK3DE7IdxNPhAhkDw/i0oFxoPOcQJlDMoIre5uWr4Pvx/EywFlVSF5Tz/aeBl0b4NtkXXFfdoYwVOzFuEw7Rnap3EVnKDtIIMmuB1XsT9XNYMtuIcrLkAHcgsx2PUvfG11XpjB8d7nRicPKJrF7bhnXROhtc04O2Tc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769079456; c=relaxed/simple; bh=vvGIbjLA1X9Gwbc8kPXoLUDdHHKb5xKXbcQ+TuymKfQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=dRH371cSzGmG8Ts1JW/RY5DmES71fICxSJ5B5AkDfWPiKpaglVm/tuaGwQ2xxe3F/7x1DOazwICS/SG4xOwm3TxA9L6Czd1133s+zRD+YeaRLN7KJfGAEFGm9vqtclg70nmIh+Xo9ZQzbv6BdcOAPheDcv1av10g+FT2KQY7oCQ= 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=DybhCqbp; arc=fail smtp.client-ip=52.101.83.31 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="DybhCqbp" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=r3FdhxiVqmj5oP4q+mhVvrxbs/TraQhShVMVRNt44LuVbOop4SJweHAsCDAQo7ZDj9RzB3xloproDYR+JiR6t2aYccLkku2Bglf2Cd2dqm30QU908rbejjnKfGDdz8jzsFrC+a79Kl9raauNEWFs4v7nfAwzcloqwFJb0n1QhtXq/0oZUtuExH81f80MM7Y1seXuIA4RV/VqYdIUy53495EKW6nZO943azpc3TGNQrLnW3XXqNPDm4VyP3vOQY47Z5ifWFDsyr3lSNRT5lGC/MKjS54hjO0myBshD44HMtE7fapGH10tDE+HAp61UnnnpxYz/CK8ZyTnYfA846dvXw== 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=OZuSq7P55xRHlzYPvIlN5IVdF3QJa5H4o8vX8ObCgnw=; b=qs4ID5KG9fnKHARkjdUCtdchQhyzThH1EXEaeaObXGht26dh/UwZi70U5OGUaPeYK61uj1SJsZvG/qHvfqU8ii0dxchdIyXl6FRD9NhkuQYHp7F329YS/ftQj+V2kU/oP/hjRlzEshMtWTjAfxmjThVBAo4utRgNs5fxA//GHE+NJcLbQ+MRsSJhhwntY6bStnY5X1rvLLzu6KujkWTOaoGdWJDj/IMOU8bJ0mlHUBOsIkJErJEZJyOxaaobIZjsUFWc00dPid+4cT5qtgOXokF1LweFCZzV0rS/UNxqPq2zP7MZ9JkD4WS51YlG2+yBh5zz6mRqy8kvuEpR4HcuZA== 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=OZuSq7P55xRHlzYPvIlN5IVdF3QJa5H4o8vX8ObCgnw=; b=DybhCqbpBt2v7K2XyJ5bgfqjkAQWFpniz6UmLJFGwRhVE/qhfX0GB5O9UTlBm61+R8IjqOZXdCoSTZRNde8sGZ29GI0hNxESRRSh+/6rkA2LAZA+/TAkZiuZNJrQNOsdK+0dE6B9y6VTHjfXb1f0IclVW+csDDPoLOtDHS4/eDP0JNLCHPHxymAfWO82lME15OYLgZTHvxb1t2bKzmkn9dey2GoLv7/FX3PPlyYRUZERl4oVzP8orraYTQYnvDdwltY9BdEpYF/spWFxj1t8WRnFtXe1Yey1krSKNkxqiV2CV/Skxoaa88Ijka0A0bV9pfoDp35aA/PVOjS1rS5gMA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM9PR04MB8585.eurprd04.prod.outlook.com (2603:10a6:20b:438::13) by AM0PR04MB11853.eurprd04.prod.outlook.com (2603:10a6:20b:6f9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.9; Thu, 22 Jan 2026 10:57:23 +0000 Received: from AM9PR04MB8585.eurprd04.prod.outlook.com ([fe80::f010:fca8:7ef:62f4]) by AM9PR04MB8585.eurprd04.prod.outlook.com ([fe80::f010:fca8:7ef:62f4%4]) with mapi id 15.20.9520.011; Thu, 22 Jan 2026 10:57:23 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, Andy Shevchenko , Herve Codina , Mark Brown , Serge Semin , Maxime Chevallier , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, Choong Yong Liang , Jiawen Wu Subject: [PATCH v2 net-next 09/15] dt-bindings: net: dsa: sja1105: document the PCS nodes Date: Thu, 22 Jan 2026 12:56:48 +0200 Message-Id: <20260122105654.105600-10-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260122105654.105600-1-vladimir.oltean@nxp.com> References: <20260122105654.105600-1-vladimir.oltean@nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AS4P192CA0029.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:5e1::14) To AM9PR04MB8585.eurprd04.prod.outlook.com (2603:10a6:20b:438::13) 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: AM9PR04MB8585:EE_|AM0PR04MB11853:EE_ X-MS-Office365-Filtering-Correlation-Id: fa0a32ce-b92d-4ccc-63a9-08de59a50578 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|19092799006|1800799024|52116014|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?iRAvWchPD0XHZhLR34jz3YK1vAnSEMXA9buNp6a6T+c+PjiLKsyxeYqqxWOA?= =?us-ascii?Q?F/YweDeD2jAcszmqyKdq3eLA1M9qwxndXAVOVtyHEUZQkxw/2gKW3N8GR0Id?= =?us-ascii?Q?KVsyysBmSXj72N1fxzy4Jnxkq01OBDUwwIG2kL/wzaeXk523KgzYwRmjP+5N?= =?us-ascii?Q?CH8FBoqApUPl/hzdpDEeLBh8lZfC4FR+IgPrrCk70BxTdxSAyEJBzcqkaUhP?= =?us-ascii?Q?SVNkdxzBi2eX7qaDT/BzUIXbFhttZUwMwAPeyviZJ7ZySoPkzPMuu7tfC/YL?= =?us-ascii?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p0WJdVqYltvgGoIfSXdSKmfL+EuIgz3x?= =?us-ascii?Q?nbi3qMrD8kFZr4Qwe5nHznqdi4d+KoZwgQVbxMkg0ZuHlUiSV6S4f53Aeofo?= =?us-ascii?Q?l2LsFj6tHmUu/fg3tdX1xCLdidc1vTvvhBrtXSxm0nc8GfGATSnuYQn4YyA4?= =?us-ascii?Q?ViLLcqHy3Az0RBtLF1yTZIKjIZlfx1gYwWyOGzfcNRzzPivjeZH9NuSjZzs3?= =?us-ascii?Q?1DS0beRQuLi3dSpZww94CeZC8RS6Ag89HtsRv/ucQJ8CJLkn4CkF3LzFRLjE?= =?us-ascii?Q?yuDp0l8HHaMug6yhZpJ4T7O/9TbsObM4YPID2oyH8xn2ezG8hzgvaVhc8Rhb?= =?us-ascii?Q?FqeIn7deW1s1OJ/LzUyy0jaR0nJhtd7boKLSFpxWq9/tVerEkLTdTlQgqxNW?= =?us-ascii?Q?XSTd5UfHa4OHlt6AVU4R/7Q0c5HjHJy/P8q+N8cP6HckZ4EN+uKL5aLxoPEj?= =?us-ascii?Q?NsgoXV6UNxcRXVK8NOG2WH8=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8585.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(19092799006)(1800799024)(52116014)(376014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?qknF+vFdFAMG4lWX//Ffy6tNlC4JFnEIgHwgsBvW3/jmioR5kNFmqlM2mH+h?= =?us-ascii?Q?qaCP/Sa4QdaCySEKPfZ8B9XjqMU0oQzFFuiMkUmHcseLZ+Wp6NVz1bP27Nsn?= =?us-ascii?Q?uvj0yLn1TVSAiqUzVHCYsNPMKeVLue1HQVWU67dvXWntVygfup/svlVFFKNB?= =?us-ascii?Q?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NPsMwt?= =?us-ascii?Q?aNrySE2zhnQ9AoYSKN/qABk4LPj3YvnuT0gCV3ZaWMG5bu0tQvhT0gva4c8Z?= =?us-ascii?Q?kE7P+Ae66b0Su9Mp/VRWVXiR79zmou4Wo2K9O6rePUXG3JkL+fA/sj6NqQ/y?= =?us-ascii?Q?pIkK0GV5BDBgpELtePw7dZhnFVbOg6ikIaskrJb9Z5PJpbRLEmhX+0Sx5Jym?= =?us-ascii?Q?oAzyS+KOOHsDbPyMPvmz3NGR3KDsg0tihxsTuHtNHMogChSMHUepABlMNQQn?= =?us-ascii?Q?qA6J6vtifujSmovT2LpFMwRlWfZHZSxrOPUTtt8Ppn0+IpdYWHkEvazmv+A+?= =?us-ascii?Q?2RmKHdG/HNOcNEAV7RSXUm/PpICLW0gL0SKAvqhMsIEHSFw1QCoO2Bg09mYH?= =?us-ascii?Q?gRCwJyUWvoYASt6PNGiDJ9tDt2dI7HYaW+eHOeNtrnPHiEQLG4fcaLS2GXNa?= =?us-ascii?Q?kY6vAVqVTnn3EdXaGNAoVqPHu0K3zeD5yORob8Goe/mqIDmq1GOU6sZviesG?= =?us-ascii?Q?k/byvP0OTj/nXgxcNaUhgkAhGedNdOqvofCgB8gqgcFKIfZU6pTJZQtbLoK5?= =?us-ascii?Q?Xg6qcs1Ewso5KR1v0QkTRDKJytppDzze2ucFStSF5G5rtQD/u33bisM1q4yu?= =?us-ascii?Q?HroCjGxYgOtGXjsG/zCfGF+jEwXQCi5PF3HcckI5K7Cr+i1C4WHPHcI7wbvt?= =?us-ascii?Q?sLoGmtAMvg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa0a32ce-b92d-4ccc-63a9-08de59a50578 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8585.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2026 10:57:23.1424 (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: H8BzOnYN4jTbEtUZBNf0pKVi04RgEq/r+kThAV0F5/MBZ2UoCC3Lux6TcAaQwp624XX2sfd7Sb/TzgUerT4taA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB11853 Content-Type: text/plain; charset="utf-8" Some (not all) use cases are in dire need of describing the XPCS blocks embedded in the NXP SJA1105 and SJA1110 switches in the device tree. The use case driving this effort is specifying custom 'rx-polarity' or 'tx-polarity' property values. These PCS blocks follow the same bindings as the other instances which are memory-mapped using an APB3 or MCI interface. Since the SJA1105 applies the Documentation/devicetree/bindings/net/ethernet-switch.yaml schema directly on the SPI device OF node, its bindings are incompatible with describing address space regions where sub-devices like the XPCS exist. Namely, ethernet-switch.yaml wants #address-cells and #size-cells =3D <0> to satisfy the unit-address-less '^(ethernet-)?ports$' child node. But the XPCS sub-devices want their unit address to be the start of their "reg" region in the switch address space, and that requires #address-cells and #size-cells =3D <1>. If the SPI device OF node had an MFD-style schema, i.e. "(1)" from here: https://lore.kernel.org/netdev/20260109121432.lu2o22iijd4i57qq@skbuf/ things would have been simpler. But that ship has sailed and we need to continue supporting the direction in which the SJA1105 bindings have started already. The retrofit-ready compromise solution is for the ethernet-switch to define a custom "regs" sub-node with #address-cells and #size-cells =3D <1>, and this will hold any memory-mapped sub-devices, like the XPCS in this case. This solution could have been used for the "nxp,sja1110-base-t1-mdio" and "nxp,sja1110-base-tx-mdio" sub-devices too (although that ship has also sailed), and is further extensible for other SJA1110 sub-devices not yet supported (GPIO controller, cascaded IRQ controller). Document the XPCS integration-specific compatible string, positioning in the switch's "regs" subnode, and the pcs-handle to them. The "type: object" addition in the ethernet-port node is to suppress a dt_binding_check warning that states "node schemas must have a type or $ref". Rob Herring explains why this started being required just now: https://lore.kernel.org/netdev/20251120173012.GA1563834-robh@kernel.org/ Because the regs and ethernet-pcs nodes are optional, I don't want to pollute the example with them. However, I think I can add them to the commit message: compatible =3D "nxp,sja1105s"; ... regs { #address-cells =3D <0x01>; #size-cells =3D <0x01>; ethernet-pcs@0 { compatible =3D "nxp,sja1105-pcs"; reg =3D <0x00 0x800000>; reg-names =3D "direct"; reg-io-width =3D <0x04>; tx-polarity =3D ; }; }; compatible =3D "nxp,sja1110a"; ... regs { #address-cells =3D <0x01>; #size-cells =3D <0x01>; ethernet-pcs@705000 { compatible =3D "nxp,sja1110-pcs"; reg =3D <0x705000 0x1000>; reg-names =3D "indirect"; reg-io-width =3D <0x04>; tx-polarity =3D ; }; ethernet-pcs@706000 { compatible =3D "nxp,sja1110-pcs"; reg =3D <0x706000 0x1000>; reg-names =3D "indirect"; reg-io-width =3D <0x04>; tx-polarity =3D ; }; ethernet-pcs@707000 { compatible =3D "nxp,sja1110-pcs"; reg =3D <0x707000 0x1000>; reg-names =3D "indirect"; reg-io-width =3D <0x04>; tx-polarity =3D ; }; ethernet-pcs@708000 { compatible =3D "nxp,sja1110-pcs"; reg =3D <0x708000 0x1000>; reg-names =3D "indirect"; reg-io-width =3D <0x04>; tx-polarity =3D ; }; }; Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Conor Dooley Cc: devicetree@vger.kernel.org Signed-off-by: Vladimir Oltean Reviewed-by: Rob Herring (Arm) --- v1->v2: rewrite commit message .../bindings/net/dsa/nxp,sja1105.yaml | 27 +++++++++++++++++++ .../bindings/net/pcs/snps,dw-xpcs.yaml | 8 ++++++ 2 files changed, 35 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml b/D= ocumentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml index 607b7fe8d28e..af86e425cd9a 100644 --- a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml +++ b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml @@ -85,11 +85,31 @@ properties: - compatible - reg =20 + regs: + type: object + description: + Optional container node for peripherals in the switch address space = other + than the switching IP itself. This node and its children only need t= o be + described if board-specific properties need to be specified, like Se= rDes + lane polarity inversion. If absent, default descriptions are used. + additionalProperties: false + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 1 + + patternProperties: + "^ethernet-pcs@[0-9a-f]+$": + $ref: /schemas/net/pcs/snps,dw-xpcs.yaml# + patternProperties: "^(ethernet-)?ports$": additionalProperties: true patternProperties: "^(ethernet-)?port@[0-9]$": + type: object allOf: - if: properties: @@ -107,6 +127,13 @@ patternProperties: tx-internal-delay-ps: $ref: "#/$defs/internal-delay-ps" =20 + properties: + pcs-handle: + description: + Phandle to a PCS device node from the "regs" container. + Can be skipped if the PCS description is missing - in that c= ase, + the connection is implicit. + required: - compatible - reg diff --git a/Documentation/devicetree/bindings/net/pcs/snps,dw-xpcs.yaml b/= Documentation/devicetree/bindings/net/pcs/snps,dw-xpcs.yaml index e77eec9ac9ee..46e4f611f714 100644 --- a/Documentation/devicetree/bindings/net/pcs/snps,dw-xpcs.yaml +++ b/Documentation/devicetree/bindings/net/pcs/snps,dw-xpcs.yaml @@ -25,6 +25,14 @@ description: properties: compatible: oneOf: + - description: + Synopsys DesignWare XPCS in NXP SJA1105 switch (direct APB3 acce= ss + via SPI) with custom PMA + const: nxp,sja1105-pcs + - description: + Synopsys DesignWare XPCS in NXP SJA1110 switch (indirect APB3 ac= cess + via SPI) with custom PMA + const: nxp,sja1110-pcs - description: Synopsys DesignWare XPCS with none or unknown PMA const: snps,dw-xpcs - description: Synopsys DesignWare XPCS with Consumer Gen1 3G PMA --=20 2.34.1