From patchwork Sun Aug 4 20:49:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Petrous X-Patchwork-Id: 13752707 X-Patchwork-Delegate: kuba@kernel.org Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013045.outbound.protection.outlook.com [52.101.67.45]) (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 C634877102; Sun, 4 Aug 2024 20:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.45 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722804604; cv=fail; b=IWoxUP4f5e1N8yn4fQEt17ocVOjRc3Ec2nHKWr6vr+2SrChjvCLbdynZjyl3RVjUswm6m+nHRkEWfGTj4sJWI//Inrg7fcVmhwxo9wmM1dkUniuw5fPssrdQdXBUQNBCt8+D6TfxJ6blt2pg79XqHKAbFJmQU65FfwrX3h8knXo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722804604; c=relaxed/simple; bh=rsfZWh6Pdl8abiHTkN8k5uYzX6cbziQ2r4PDgjZREk0=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=B663h9KqAAEN++b9jfeeRDcftCag6XL6VtNhfvc7aJdFYl0bDfPLGeAnBuC07MsHTfMJdpe8Z66s90fGir3djkZmF5EcIPSOGsmEc+omnbQwCjz6qTy9YXB8z+2I9Yx7m/Ecwao5oa0rMItMcn4VcKs2Sx+muVJsNwrL5OviTTw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=w15O0Qcc; arc=fail smtp.client-ip=52.101.67.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="w15O0Qcc" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BSPypwUng6dLspPuJLzYnoZBrjt6Gzdnp6qazIpZWworA5A0caUH7PORJP0xXZSXIfersTA1g/Q1pmmoJU6IjE/tVKoMWOlh67Aq3kTBFtSqxWxD8A/tT1GnNlQRdMPPPHPBMZA7oIPk/hSX9oIUaPOYztoimQq/kdNAPAY+hsgjQh/bTc6pUIU1txaofUYBxj2wfrFkKtPH9oNChuhM+LlpyvHmb/n9cZmeDu+F3K6uBfrLXgP8YYiSSwRKjzwnZrGxNCbowygRxBDS3CbB03PVXc36fUhyUUpx7zywT84PbhN/+RG/jRWtMweKW0y09JLsvJ2tB9XbcumpHXQ0zQ== 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=qwKhSRw+uiEh5mXtgk+giF0HBGnyeb2UKaFcSBnRScg=; b=fboHan2sFZA2vWWRrcsyvKp6l3SvnnUtCqmasOOK+dvxwHGn0SI0/XHHtndVi5fz6Ae+HFDyFpa7tqFE0Iqw2I9vr7IuakFrzIIBbL+BcuzqLIEzc60XrKFMQYHHPimmdC3dzzU1Y3fRSAGUTOu7xh7bHlaWDVkcKrgDrwYQcOSMASwh7gYsZRo/Vx2dOmJWzJx1WMCdSCoBqZ4+uEKSqqUvrbtpT3KyfC4AG03mooviS9WZ9heVJbzhInIIWzbsB8w7HTrnIxzf4n5tM13kKXTIKTWNroYmOiZ720+Kt12d7jtx6BHBpuPFaqpJR8Bvbej3H5ngBrYA1g7O9+FuGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qwKhSRw+uiEh5mXtgk+giF0HBGnyeb2UKaFcSBnRScg=; b=w15O0Qcce+QuQ/VG774emuAEM7i+n4KaKNRp9SzszBcaZdzyaf11+417l79GPZl+kP6SScI9LxM1sGmSujSYYCfRVqcnurVn9D9hOP3/AdQKGkeR90rEkvW28Ucx/OAQh3PXWG3h9uW2k1N3U43LS0sIGQkS5oMXywZT4dgqSZm0gnaQIkvTDMyoOqkwr23IouywtK3YVlY9iUG656peJnbcBpR5EeJZs6fEYj31KIDVxYGQMnpbDWEO8+umDq4asHA+4wsgVyE5wLpyZ+FO18/Ono/oqOESCaEqD9EFIw9lt4/fI8fPVLtvmJclfcBugnNAKZsmaUiBeJHXX09otw== Received: from AM9PR04MB8506.eurprd04.prod.outlook.com (2603:10a6:20b:431::16) by PA4PR04MB7965.eurprd04.prod.outlook.com (2603:10a6:102:c9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Sun, 4 Aug 2024 20:49:58 +0000 Received: from AM9PR04MB8506.eurprd04.prod.outlook.com ([fe80::5f7:9bab:66a3:fe27]) by AM9PR04MB8506.eurprd04.prod.outlook.com ([fe80::5f7:9bab:66a3:fe27%4]) with mapi id 15.20.7828.024; Sun, 4 Aug 2024 20:49:58 +0000 From: "Jan Petrous (OSS)" To: Maxime Coquelin , Alexandre Torgue CC: dl-S32 , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , Claudiu Manoil , "netdev@vger.kernel.org" Subject: [PATCH 3/6] dt-bindings: net: Add DT bindings for DWMAC on NXP S32G/R Thread-Topic: [PATCH 3/6] dt-bindings: net: Add DT bindings for DWMAC on NXP S32G/R Thread-Index: AdrmrOTtkwWMBqX8SE2obTTIuZV8xg== Date: Sun, 4 Aug 2024 20:49:58 +0000 Message-ID: Accept-Language: cs-CZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM9PR04MB8506:EE_|PA4PR04MB7965:EE_ x-ms-office365-filtering-correlation-id: 95e724cd-036c-482e-17f3-08dcb4c7010c x-ms-exchange-sharedmailbox-routingagent-processed: True x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|376014|366016|1800799024|38070700018; x-microsoft-antispam-message-info: bsV0Lq89C/tHUrOl3M0uTMiXfknKIIs6y7Ka5KPhdaZSRwbi8G+mxj801D2/TKeJJn7IkZmxiqaqpBsmOGaTk0lSbNnVUG6rG12czWjcli6k3oyIzuJ2Mp+DzxMEQaDCRmwz0ghL/t03ct+8/sC4r6WZDfSYwS1N5RZ48fCswEu1+4xzS2YIrsFfqi4Ozjxv5FAe9A/xpNfIGGbKzit6PjVGmdHoQj4ucBWMcq3e45BfgU3uO+8PvfU7peBT+4Nn2WeFREbaIvaLgYflk5AJwYM4Jm9Q6bMK+fnGJYyIlZfLV1uUZidwJLbs9Iax6mHxc804ftZIwESwfZaRTFiokP3s2G/+ZVXcIejJaVhnwuQH+NaVwUWxkXNwibVY+S3X7PTPpJlgY7oxMtFcVbaK4N9SsFRBo+bDP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S:(13230040)(376014)(366016)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: gOZguMxaqw8ic/M74yQiP+Ij+BmDG0gblDTO9anF3MRHTWqOLWtL6UW8TXR74OKECdtMt7OYNiBLQ0uMTnGs+shUmhGHQajo/RMe9E/jD05BzubyPqOvqbsEVMlCe1smfuLFcqL2S8jOrdnqL5KPLlPmVaqC99MR9z9c4pdsZs3iZXR3a1OSbakQWk8KZGcljk65Xtqx91+XlOrjOLqt2mOJBRdWjBJWX2KyFc+Hpf4wS8dbKb2oDtf/AS+XHIsHgFDRtgHo3+uvlk9vA4YdDR8nXf9bgpBk6OzNFX/As0mGMKyWB4PoPQ1BiOB1tbmcsenqZ37lF8APTB3VYr8we9Xy5QyZJdbg2JF+McUCWE+zBY8Om8UpkJRHdG6DPLlWeSHOxlutVdUghStoU8u9fX3WabG9P74TViIxbDjcN1S2CAqR8Up0CJxi8aajtjb5JJqVlIxkLzcIPb3xmKrTCGNBkbW9AvpLFMeIe4pqA79tk2fCK9rD3+cbmy2fHjXkDal2JVq/TUVn/Rv2/AoOo3bGZSvnHS4C5tZciuhvizLGJutFud6+xt9pFAJOk+Npr7zty+u+/d3KTXbiQDhi6IbXTKLuUv6Alyd6TA0QB7buybouATxizYJOm419i0H2StvgBi+fAs4agJdlBk1/cxIxi/6KQbG8M0TVGVj8ItH1OwfiHb907wg2Ijkg3nHzcTmXUINehbLwWQZR18q0L5tfZox5bEBw5MXbvdKx/fDcRJcQwTsDqEgF/9TX2T43x8eQLEtLYGeUyFL1P8AQtvS7nwXoitFl9flxnA7PsWUIMwSitPPh97GVt4XtITBp+R4xAhDBGm2yNKkOIDBFBUwqKpYumWG6AZL56ggQhEwrGFxc7l3LFSYfJWYwI3GcDKlZVObyMJHTJPx5txMocV2dA3CIXq0Gy0droiwLB5JP6P0Dm2xU1jXKrcV8/NOTMFVMDfqs39mqKg9pKBDadj0WvFEbCTbv9bkBt6+sjurDjp4mliJnYs6K76XDQxpMG6vQzQGMLPmQ2VoSVJqIzRt4kVVCY2v32R4qTzvH6UMJ1jYBlnuc2Buut11CBt/Q0EOuVHiSsVRH1u5KconVJVEZ0cWqv85h1h921Zk9uifZZQUSuYuhWAAU/xd2BJfEmGphiTfvtz8Qa7DVnZJOD6FKA5eF0brxdIgX9eVWY4ifdTAAbd5RcpBUg6SxYazRjRawAUkw6N6E/O+XqA0pV2LhOhH6K1D+auQ/WjTq9qi5o/pXZk6ZR84jAS61f5M0bG6RFwwvRnHDn+vdmFhT1SASe1b/xf5nxNzlAvwx++M9MXSWIZQbUxpSGf5KcGYp2g7YWXzire9OQ2pk+AJ2q0NqSRtN7IdB1dkf4A1rDaKu1sUr+0AfwsE+gSEOvcJnXB9fRAMKyY0qkqyDSXKCPSYL9kjhUv4W6s7dGyZ6k1DTpmbmxLc/uvgxj7BmhuHqO+WFXLNrln8uTxPEb9cYcMycCsMLnoM45c5gCH0Xd3Er9Y4Eub5qHze6pKVjCcqcnSBAnrZFOyLX3+1ZoPfdrqUdTUhUL89bW3tDnOc9CGyo6wIRLl3BaUlD7lFUnE1+ Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8506.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95e724cd-036c-482e-17f3-08dcb4c7010c X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2024 20:49:58.8563 (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: 6lrJzuIad+BiLWyBFbFeGr5ZjuoJWf/XQhl+oyFokvRDCPnvKvzmfKfLzaA9beAxtMe27nBIMiFTtbBDgJ2dnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7965 X-Patchwork-Delegate: kuba@kernel.org Add basic description for DWMAC ethernet IP on NXP S32G2xx, S32G3xx and S32R45 automotive series SoCs. Signed-off-by: Jan Petrous (OSS) --- .../bindings/net/nxp,s32cc-dwmac.yaml | 127 ++++++++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 1 + 2 files changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nxp,s32cc-dwmac.yaml diff --git a/Documentation/devicetree/bindings/net/nxp,s32cc-dwmac.yaml b/Documentation/devicetree/bindings/net/nxp,s32cc-dwmac.yaml new file mode 100644 index 000000000000..443ad918a9a5 --- /dev/null +++ b/Documentation/devicetree/bindings/net/nxp,s32cc-dwmac.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright 2021-2024 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/nxp,s32cc-dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP S32G2xx/S32G3xx/S32R45 GMAC ethernet controller + +maintainers: + - Jan Petrous (OSS) + +description: | + This device is a platform glue layer for stmmac. + Please see snps,dwmac.yaml for the other unchanged properties. + +properties: + compatible: + enum: + - nxp,s32g2-dwmac + - nxp,s32g3-dwmac + - nxp,s32r45-dwmac + + reg: + items: + - description: Main GMAC registers + - description: GMAC PHY mode control register + + interrupts: + description: Common GMAC interrupt + + interrupt-names: + const: macirq + + clocks: + items: + - description: Main GMAC clock + - description: Transmit clock + - description: Receive clock + - description: PTP reference clock + + clock-names: + items: + - const: stmmaceth + - const: tx + - const: rx + - const: ptp_ref + +required: + - compatible + - reg + - interrupts + - interrupt-names + - clocks + - clock-names + - phy-mode + +allOf: + - $ref: snps,dwmac.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + bus { + #address-cells = <2>; + #size-cells = <2>; + + ethernet@4033c000 { + compatible = "nxp,s32cc-dwmac"; + reg = <0x0 0x4033c000 0x0 0x2000>, /* gmac IP */ + <0x0 0x4007c004 0x0 0x4>; /* GMAC_0_CTRL_STS */ + interrupt-parent = <&gic>; + interrupts = ; + interrupt-names = "macirq"; + snps,mtl-rx-config = <&mtl_rx_setup>; + snps,mtl-tx-config = <&mtl_tx_setup>; + clocks = <&clks 24>, <&clks 17>, <&clks 16>, <&clks 15>; + clock-names = "stmmaceth", "tx", "rx", "ptp_ref"; + phy-mode = "rgmii-id"; + phy-handle = <&phy0>; + + mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use = <5>; + + queue0 { + }; + queue1 { + }; + queue2 { + }; + queue3 { + }; + queue4 { + }; + }; + + mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use = <5>; + + queue0 { + }; + queue1 { + }; + queue2 { + }; + queue3 { + }; + queue4 { + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + + phy0: ethernet-phy@0 { + reg = <0>; + }; + + }; + }; + }; diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index 3eb65e63fdae..3311438f67ee 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -66,6 +66,7 @@ properties: - ingenic,x2000-mac - loongson,ls2k-dwmac - loongson,ls7a-dwmac + - nxp,s32cc-dwmac - qcom,qcs404-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos