From patchwork Fri Dec 20 12:39:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13916692 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2049.outbound.protection.outlook.com [40.107.247.49]) (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 2E3EB2153EE for ; Fri, 20 Dec 2024 12:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698373; cv=fail; b=BtqCqFAczprNR50oh9/wK8lf+3QazCNJ+62JKdrsAMkLyvGQpfPeTXm0HUAcrRkbfUW2s19w0rXFjNinguKmCzimRPcpQb/NvV+slVR0QoHtya3T6Te29ZQyKMCKpBbFxKbZCa5ZIt5o5ajYLuTDhUxD8+AkNHAVXTa6IuXxpvw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734698373; c=relaxed/simple; bh=V6Z4ZVwvqpMn16SzKuQYkVBLoy8s3e08eftEKp1LnJI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=FOHst4R7DRe03vGh3o5dirj9dham2UWKdEEMo/2bKO2fmHfc8H2NZT6rDQ0wdxy4i/3lVEMk1h95M0S7++wTguVHgHldhCcI+UK54sihLg/8Tgkjmz+Ewgtco3+SEwKIkwBn7nV+8Gn+nR4SZWRWskxEzm9NblX1WoratJTp/Q0= 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=vrroVWVu; arc=fail smtp.client-ip=40.107.247.49 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="vrroVWVu" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MiaPUX3K+p0PAZ+xvyqpH/VYoyJiab2TurgoYd+GM/9utMlYvmqEW7ysK0imdpGimrBKcmaG7l+46xZVOIfheEkKeb1WFTeOtMyfjqM0rudM2WcPLf9sZeKiRLzyuedYggMXoBoVbdk+qEXJPIrGHFxQD9JA0dINZn+RajV97sdwPLaFNel8C0nIO1C36HpoZwU0/4JG8r14mdRuPUbIihxFYeqTozTo45XV1R5qdAF/saoeLaZdvSBZJGt8D8dt56JPE4hpD2oJNTHqOF91g9VYoHsQjrzSuQLf7gam+uhFPEuaKjZicBcbv6qacse4JvOQEwhU4JdzfTcq5Zdvqw== 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=DpJH0m5r5QjlS1rUHDKPt57GkZmO1r8jol7GkA50rNM=; b=IZb46E0Glh50LUWKF80gxvkh7zv/iRCSRJt/LeeRvQ8TJez6d9cdYLeHr5tNHv6cQHs9W5y3kEFL16OZSIJjnXThG43wCyi506MLO6GasMWH9OWFBKYmng0KaQ0cJEpC7hJKhrygVOof1c75IxeWBHb5TgfFFjocuJuVLEcjFFibrxovf6Rx+/8lcADRMS3Z/wQsPMx3zfCPpx33EFkMJpDGY8HBNZ1JyhJlfJ8V0l09wwpDntvh521wKtBhuGwxU5tX71BWMX6LIIJjJ/3XYHmDW7waaVEDjrQRArTGl3DwGC3fNmobVmD1DPK5vxeWQ1/gLrCfTUyKbjnw0kgOKQ== 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=DpJH0m5r5QjlS1rUHDKPt57GkZmO1r8jol7GkA50rNM=; b=vrroVWVusOdrS3kDuC5B5ExXw9naAUCyD2/6gMdryTIXjopO3mVFUBlohe5varktIr2yzLF1tTY/OKMVCBNTafeExzbJkzC1OFJvdpN3ZFXCgxUs17EASlTXTNHjo+HcmVklojSDP7LQs1zmXbrymi65gdjCzsgq01Fdc905qwXvgiot+Q2Jbfv9Xqs11kBnVEVA4ZbZcY0XYF3IJG2awKAlJ2WjS/mKJnUCDuK4jCeDcDNNsFSsq//20sNpG48EzRq18McoycMIktf8ya04dIjCcsiCqFWVlerMENvG2w2G83/0y0oCwCOcljMr2FNrkI04ujB0ce6Qy018qhPgYw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by GV1PR04MB9516.eurprd04.prod.outlook.com (2603:10a6:150:29::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.16; Fri, 20 Dec 2024 12:39:26 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8272.013; Fri, 20 Dec 2024 12:39:26 +0000 From: Ciprian Costea To: Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP S32 Linux , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v4 2/4] arm64: dts: s32g: add common 'S32G-EVB' and 'S32G-RDB' board support Date: Fri, 20 Dec 2024 14:39:14 +0200 Message-ID: <20241220123916.1452582-3-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> References: <20241220123916.1452582-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0007.eurprd02.prod.outlook.com (2603:10a6:208:3e::20) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|GV1PR04MB9516:EE_ X-MS-Office365-Filtering-Correlation-Id: efe9b32e-e19e-42ce-92c9-08dd20f356f3 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|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Mng+4FYu/RQpK6i8uAocTKSwAy6ARSq?= =?utf-8?q?AGBRJrFwc2ojTZD5HMdZ5XeG1s678quiSEjIYormu0lkc1pULQ5Ez8jH0X0q7gez+?= =?utf-8?q?1vbcHiEOzQPsA6MlvdX719sRogqR6zO/soJ+mju5X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XOyXxtaZ48?= =?utf-8?q?rIm7NK17GOVoQ4LpSV6wdYoNX0lF49zeK+c+NrVmtWZa/+hFj6vSnpMP2CpC71QIx?= =?utf-8?q?ed62e0AZWWZgNElA9gIaNwv7vgwRcRwn5Lk5PRL9Q5c59/PBTWQDztuRodb+cvU7/?= =?utf-8?q?CqzCEvvjyIlTCJjIGbwcopNv5Ww1c5uxILcC1mr2FaLxHM9IeFP5872I71xgTx/qg?= =?utf-8?q?19w2CIo9gqWxQ0ahrjodGg8YZVPVHldVWYeuJ+yDrPs7mwpA45gzZdnQrAHsdVzjt?= =?utf-8?q?eStybQeMAF6YjmEnGf6QKTum8NXhoiUED3Ic5DKUEmDOOkG+6hz6F/x6usOR1kRRx?= =?utf-8?q?klHU6WYp7N2M?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?edhuoN8O+d6QWXV/R/nuUvkUtvYI?= =?utf-8?q?ZWYZmq0glKW9uZ00cWPelod0hXU6O75kTJJHs9H5+ObJjqfQ9BVqUqEC9qcj12ocr?= =?utf-8?q?P0IF5GtAz2QQD1tQdur5gXaw84fBkwUqcgiECqAH+38aq/EB7T1DG6KnDI595Tz6n?= =?utf-8?q?Ffa8YrxGNn+AYsphqe7Xxr8lwjQLCkt6uh/T/vnR/C5E1Yz/qpYthFoEXPCeH8G61?= =?utf-8?q?1DU66tjpgJj3ybUIgxTyZb9e6873rdWZIwiUtyIUD6O1Wo3uG0YAmqTrC+Z6g27H5?= =?utf-8?q?waXN3f/CJYrzL4AB1uNlcOhNmsjmzLXqBiFHavK2Wcc/9LrWuYOMRiPdTo5JGCuDo?= =?utf-8?q?WM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cWeuUS5fntNCVchx4HFSAoA8ovWnmtIPURvCQgVsCtYRPg9nfc8KlZqpJIVfPq?= =?utf-8?q?TI+iSAwcrq4zp5Zmi323khJw5eMHQ6M+9jPNxCfsulfhJsNPr32wSkXjwxj1Ztl8y?= =?utf-8?q?EnMlH+GCPAqa0uk7yw4ehu6fw5+w2yfGANZEqvqJdiVIYG3eI078q3wr+Nr9ahL90?= =?utf-8?q?S7qyOy/6afs5S+3nQaCePhP20THTCR1VsV6Gq8JMa06tMvmsCCVAfgWn9ua1X3k/F?= =?utf-8?q?nmks/+/TfeQSeLaUzKenaUjstxmD63Y1jNQGZp0e0Qt/qGHiGg1vgi1bROrAtQUSY?= =?utf-8?q?Ag9TnO8zpE1fzJ3KQPC+YbsJxNhEVK2Ayw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: efe9b32e-e19e-42ce-92c9-08dd20f356f3 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 12:39:26.6450 (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: Txmaclv+iR3v+J2//xAj/1Fvo+nHJYZC4xJuUydXSq/IMGkECru4VGlKYcgCyUZ6cVegl1iXVpkU6WOXteBNLxnz7bCiBuh7rdBoHWEKmx0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9516 From: Ciprian Marian Costea With respect to S32G2/S32G3 SoC based boards, there are multiple RDB (rdb2 vs rdb3) and EVB (for G2 vs for G3) board revisions. These versions are quite similar. The common part for the EVB revisions will be centralized in 's32gxxa-evb.dtsi' file, while the RDB commonalities will be placed in 's32gxxa-rdb.dtsi' file. This refactor will also serve for other modules in the future, such as FlexCAN, DSPI. Signed-off-by: Ciprian Marian Costea --- .../boot/dts/freescale/s32gxxxa-evb.dtsi | 150 ++++++++++++++++++ .../boot/dts/freescale/s32gxxxa-rdb.dtsi | 122 ++++++++++++++ 2 files changed, 272 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi create mode 100644 arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi diff --git a/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi b/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi new file mode 100644 index 000000000000..a44eff28073a --- /dev/null +++ b/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi @@ -0,0 +1,150 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright 2024 NXP + * + * Authors: Ciprian Marian Costea + * Ghennadi Procopciuc + * Larisa Grigore + */ + +&pinctrl { + i2c0_pins: i2c0-pins { + i2c0-grp0 { + pinmux = <0x101>, <0x111>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-grp1 { + pinmux = <0x2352>, <0x2362>; + }; + }; + + i2c0_gpio_pins: i2c0-gpio-pins { + i2c0-gpio-grp0 { + pinmux = <0x100>, <0x110>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-gpio-grp1 { + pinmux = <0x2350>, <0x2360>; + }; + }; + + i2c1_pins: i2c1-pins { + i2c1-grp0 { + pinmux = <0x131>, <0x141>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c1-grp1 { + pinmux = <0x2cd2>, <0x2ce2>; + }; + }; + + i2c1_gpio_pins: i2c1-gpio-pins { + i2c1-gpio-grp0 { + pinmux = <0x130>, <0x140>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c1-gpio-grp1 { + pinmux = <0x2cd0>, <0x2ce0>; + }; + }; + + i2c2_pins: i2c2-pins { + i2c2-grp0 { + pinmux = <0x151>, <0x161>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c2-grp1 { + pinmux = <0x2cf2>, <0x2d02>; + }; + }; + + i2c2_gpio_pins: i2c2-gpio-pins { + i2c2-gpio-grp0 { + pinmux = <0x150>, <0x160>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c2-gpio-grp1 { + pinmux = <0x2cf0>, <0x2d00>; + }; + }; + + i2c4_pins: i2c4-pins { + i2c4-grp0 { + pinmux = <0x211>, <0x222>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-grp1 { + pinmux = <0x2d43>, <0x2d33>; + }; + }; + + i2c4_gpio_pins: i2c4-gpio-pins { + i2c4-gpio-grp0 { + pinmux = <0x210>, <0x220>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-gpio-grp1 { + pinmux = <0x2d40>, <0x2d30>; + }; + }; +}; + +&i2c0 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c0_pins>; + pinctrl-1 = <&i2c0_gpio_pins>; + status = "okay"; +}; + +&i2c1 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c1_pins>; + pinctrl-1 = <&i2c1_gpio_pins>; + status = "okay"; +}; + +&i2c2 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c2_pins>; + pinctrl-1 = <&i2c2_gpio_pins>; + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c4_pins>; + pinctrl-1 = <&i2c4_gpio_pins>; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi b/arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi new file mode 100644 index 000000000000..91fd8dbf2224 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/s32gxxxa-rdb.dtsi @@ -0,0 +1,122 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright 2024 NXP + * + * Authors: Ciprian Marian Costea + * Ghennadi Procopciuc + * Larisa Grigore + */ + +&pinctrl { + i2c0_pins: i2c0-pins { + i2c0-grp0 { + pinmux = <0x1f2>, <0x201>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-grp1 { + pinmux = <0x2353>, <0x2363>; + }; + }; + + i2c0_gpio_pins: i2c0-gpio-pins { + i2c0-gpio-grp0 { + pinmux = <0x1f0>, <0x200>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c0-gpio-grp1 { + pinmux = <0x2350>, <0x2360>; + }; + }; + + i2c2_pins: i2c2-pins { + i2c2-grp0 { + pinmux = <0x151>, <0x161>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c2-grp1 { + pinmux = <0x2cf2>, <0x2d02>; + }; + }; + + i2c2_gpio_pins: i2c2-gpio-pins { + i2c2-gpio-grp0 { + pinmux = <0x2cf0>, <0x2d00>; + }; + + i2c2-gpio-grp1 { + pinmux = <0x150>, <0x160>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + }; + + i2c4_pins: i2c4-pins { + i2c4-grp0 { + pinmux = <0x211>, <0x222>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-grp1 { + pinmux = <0x2d43>, <0x2d33>; + }; + }; + + i2c4_gpio_pins: i2c4-gpio-pins { + i2c4-gpio-grp0 { + pinmux = <0x210>, <0x220>; + drive-open-drain; + output-enable; + input-enable; + slew-rate = <133>; + }; + + i2c4-gpio-grp1 { + pinmux = <0x2d40>, <0x2d30>; + }; + }; +}; + +&i2c0 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c0_pins>; + pinctrl-1 = <&i2c0_gpio_pins>; + status = "okay"; + + pcal6524: gpio-expander@22 { + compatible = "nxp,pcal6524"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + +&i2c2 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c2_pins>; + pinctrl-1 = <&i2c2_gpio_pins>; + status = "okay"; +}; + +&i2c4 { + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c4_pins>; + pinctrl-1 = <&i2c4_gpio_pins>; + status = "okay"; +};