From patchwork Thu Dec 19 13:10:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13915066 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2083.outbound.protection.outlook.com [40.107.20.83]) (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 619121BC5C for ; Thu, 19 Dec 2024 13:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613843; cv=fail; b=Sa0i2nn4qRft0rHtkQK48QsZ8rfMU+1Gk0tO+c0ARLR8wiH8e5zFmY75J9yfY2uWs/MXR6koAySJo4WM3IQcRXc9e/seczc7h5JxuZ+kfm+bc/8rdJUx1DOBGM/r6wOY+dhoR93ciVJ0Hbv7+OVCp6vM8wbawJQ7LWVPriqa9Jo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734613843; c=relaxed/simple; bh=ToWQyx3na7JB6mI0GAsXFrPJ8rc3mCzPfVOLB8qZ/GY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=s9mbhRcHGQL6MXxWbAWTDn/FYZfobog0Xw+EXpqMsB1iL1SEz1vs+hJgtJTEq8CAYIpQZnXvw71Xpw8B/YIc5Wr6RjKJNfo31OfoMy/ptwh9x8j+qEk1cMeMmGeqhbwPSRVL9mvKfHVHkdA2CwzqRm07eGr2ZfbdsvZbV3bYbDk= 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=rPCPX88p; arc=fail smtp.client-ip=40.107.20.83 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="rPCPX88p" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kVNTnyhf3VaCFmQee8itZrEwO+5OptGRJHHdk9yarjSHAUZONHDhLNqaARVJsf/kaXSlEpq3zHvFMu9NgaDC7+0sJ25kbsF4bUnAN2g4u05bB5KN+Cz8xfEAcLWHmwKcEd/MWrCbTKdJIgDAhBX6JcKfQqVhcEMoKCcUPpHhuUT+OYmd2h6hkkV91hDwdmIkWtxS72o4HocpQNqXktqxciF8JFcOQIkKGvr/6bq/dWlGd1qOyxbAJ+0Fvs1KDGNxt235zNEhgaye3JBSReoJfZM8XDJtq38fcSjMzCclFetUP5z79OcsOF9QUIr4OAfwVGr1KrRsdXcBQ4YFIjOJ7Q== 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=thzcWzw1R36DqPgdvtIL7BED6jyvYSKKHuq3aSitJp0=; b=DI/kqOLQyD/cRikF59vg1cAqdSV+MXGMB3UhaxHS33mlGBKipxoOZSqX6j7syAgoZEIcqjD5FBExbibVzKOOuISi9pV0n6GllRRBkvedN0ouvFLtj1Rtfq/o6z38qp20/lF77mris5l+UX/cHFPM1sDlJ5iVecjpr9qMUi5q/NoeEQ7gzqfaYVrSANn47e7gjVwb9XBkVZvDdEFlVcOh2CbPism9qe/5CRfXCrfxpDR0tKQ/2Ye/uFT1bW/0juqQc872/DNXzUYZ/RkxwZHSPMTdnK7/eZhZgQU4wMsvc74dvzuVpdQLTe48JtlnFQVo7LiUyuFSgDvOC259Byeqqg== 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=thzcWzw1R36DqPgdvtIL7BED6jyvYSKKHuq3aSitJp0=; b=rPCPX88pg/JhNN0LuYgkAuP+eVOMnXH80LSgE38Zgre+e8sPGXCDcpdaEXs1KxUnmk6f8kSIJjPDPzOXQQK3ne/9CnqFKtSV0dHLiT3U6o105hc31RCMwlAqUUqGA+bjsmWe1MOI/ZP4PgoDXcppouKbRR/X/Slj+mYYKttjbZJ+N/Zanar+7IHlmODbI8kqpHPLgB+0Z7RB1x3s1wSRHLcS72h+A1WiQfYY5PhhX6YErIUvYTvlidOSKlBbu2OoaYCB0fvGuhEThOZjL40GV6yvDkI543r4UAuLHjDZQSVYx2Yfvnfhq8rxLUEviQK1TEtOGUQzkNLhDfXUVSaqOw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) by DBBPR04MB7754.eurprd04.prod.outlook.com (2603:10a6:10:1ee::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Thu, 19 Dec 2024 13:10:36 +0000 Received: from DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a]) by DU0SPRMB0099.eurprd04.prod.outlook.com ([fe80::81f7:ab08:594d:c11a%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 13:10:36 +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 v3 1/4] arm64: dts: s32g: add 'I2C' common board support Date: Thu, 19 Dec 2024 15:10:26 +0200 Message-ID: <20241219131029.1139720-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> References: <20241219131029.1139720-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0071.eurprd04.prod.outlook.com (2603:10a6:208:1::48) To DU0SPRMB0099.eurprd04.prod.outlook.com (2603:10a6:10:47e::21) 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: DU0SPRMB0099:EE_|DBBPR04MB7754:EE_ X-MS-Office365-Filtering-Correlation-Id: c28842bf-33d5-448d-7103-08dd202e8717 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|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?brrozXsWTd31cYXZRkIDC9R2X45eSyE?= =?utf-8?q?w2cEoz53hJ1Q7mUQLVdXDbvHXzf49h7cncDlQ/cqZ2f2wbOXbeTDcMKCm2pizXdRH?= =?utf-8?q?R3dbDuRZ37VMLvgJ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0Ux09j9m4K/oOpS1P4JMPEikSEdc4jeCUFoQUvGvPXws?= =?utf-8?q?H+qgLj/b9Rt9UCwQK6Q0rZi0+2yGhi79eTY3yWyZkBbqB0STMurY1yn0Zw8yDC9lp?= =?utf-8?q?I4LI7s2mltDxl21V22RJb0j5cQm+qQxtKiKXDeKYPNhXAcwtrMlP84Qxop7ZJI217?= =?utf-8?q?q88wTuWnknZeTW5dPZbVnjkN3E/JEcpGCU9UrzqMt9PdL44k0l1hTsnQ+gHCBOqXI?= =?utf-8?q?4lWLNXF3VJ6yrtfEWC+TCozqS/vMJrujmyktdIWEVID38gzOQ70FeQzYp5BnQGone?= =?utf-8?q?u6wjS8clhLm56PK8+J2Lhij3a30wz2DI/TizeaSeE4gcf7Jq9xc1Bvu1a/ncUaYkN?= =?utf-8?q?3IUCIaNn1JdA?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0SPRMB0099.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5Nsbfi4uIm7hxZHku7vrvCeSutQf?= =?utf-8?q?jSmzOfEQRaR7oP0YLvq8B89G+JpYG7UBrYgbBxoxKUKys4Ecjh3VzST6YT+n6t/bS?= =?utf-8?q?c6qcPFCrKocfeZVIKOR/ir3wiObemxdH77w9sKao31Ghu3R1/tIsQq/2skP5mArQh?= =?utf-8?q?28UV4M9tW4d6PLC9PBVhV/Ga8NP5Yk9MWsq/duF3YJl/4mPwCh1ljcvCUuHBp6vDQ?= =?utf-8?q?iOo0OUoSEIkufbdNTtc1QjjhNKLIklxe2tq4+cs+pYhmAxja5k0wGKt6XqTY83vSk?= =?utf-8?q?RivyKAI2uolO9TrKbIK/fo8vgs9OUhHJdRzMafGSh9Pc6XUm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WWcQKzdyZa+HjziwrtgDOq9T?= =?utf-8?q?owGjNFmj/DtG6+gt0kvj1Km7NMUV1Nq5a3Vg9mKbe78moIN8FdUiHhQXz89GhTFFK?= =?utf-8?q?MkiCgsoM5FmmV/+ockXt80AidwwB26rq0cbwCKwAV4VTcu2Tx3He1ZZoyNH5gbzwe?= =?utf-8?q?f846VTtsM3Hso0NgFTO9scsVq3NnbirgAfzyROrmst4z50n1yJljplxvwcLzR4cUF?= =?utf-8?q?0VUixFIoqc5ryUDNWlRuOOV3gCa+vlB7pJRvpei172dlKIbPNty2mU0y3yCbv8pnY?= =?utf-8?q?JVwzxYieDhVlfrGMlMN3MzHzA4lXoIjDyhet7H1HWFH5mhY8vnEDXjUFAtt9ZrVOU?= =?utf-8?q?GWZEqiHZLGEr9ZngnfGNR8jXa/vaPfGbug=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c28842bf-33d5-448d-7103-08dd202e8717 X-MS-Exchange-CrossTenant-AuthSource: DU0SPRMB0099.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 13:10:36.4381 (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: s/1VqvR+XBb8t0slGxiNIfDhtNNVzTa0bSii5k4l1q6Bt0J4spR4ignarBX38PkDhSsj44wFlVpcLrbX+47czCnf0kPh2sYPfE1fhleNfqI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7754 From: Ciprian Marian Costea On both 'S32G2' and 'S32G3' SoCs there are five i2c controllers available (i2c0-i2c4). Specific S32G2/S32G3 based board 'i2c' dts device support will be added in further commits. Signed-off-by: Ciprian Marian Costea --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 45 +++++++++++++++++++++ arch/arm64/boot/dts/freescale/s32g3.dtsi | 50 ++++++++++++++++++++++++ 2 files changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 7be430b78c83..0e6c847ab0c3 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -333,6 +333,33 @@ uart1: serial@401cc000 { status = "disabled"; }; + i2c0: i2c@401e4000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401e4000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401e8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x401ec000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g2-linflexuart", "fsl,s32v234-linflexuart"; @@ -341,6 +368,24 @@ uart2: serial@402bc000 { status = "disabled"; }; + i2c3: i2c@402d8000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x402d8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g2-i2c"; + reg = <0x402dc000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + usdhc0: mmc@402f0000 { compatible = "nxp,s32g2-usdhc"; reg = <0x402f0000 0x1000>; diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi index 6c572ffe37ca..666e4029e588 100644 --- a/arch/arm64/boot/dts/freescale/s32g3.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi @@ -390,6 +390,36 @@ uart1: serial@401cc000 { status = "disabled"; }; + i2c0: i2c@401e4000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401e4000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c1: i2c@401e8000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401e8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c2: i2c@401ec000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x401ec000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + uart2: serial@402bc000 { compatible = "nxp,s32g3-linflexuart", "fsl,s32v234-linflexuart"; @@ -398,6 +428,26 @@ uart2: serial@402bc000 { status = "disabled"; }; + i2c3: i2c@402d8000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x402d8000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + + i2c4: i2c@402dc000 { + compatible = "nxp,s32g3-i2c", + "nxp,s32g2-i2c"; + reg = <0x402dc000 0x1000>; + interrupts = ; + clocks = <&clks 40>; + clock-names = "ipg"; + status = "disabled"; + }; + usdhc0: mmc@402f0000 { compatible = "nxp,s32g3-usdhc", "nxp,s32g2-usdhc";