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: 13915074 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A72F8E77184 for ; Thu, 19 Dec 2024 13:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=thzcWzw1R36DqPgdvtIL7BED6jyvYSKKHuq3aSitJp0=; b=CwbOs/lFwN8aHORtyJ2/RVZX4f lyxI1d7Mrscbb19QiK0GzX+ZfyyOk/xNB7a7ZC0U0xTVt5STU4LzRrBfhnQOhiFYcGn1xvQIiuvBJ 4jIA6Rgr4ylbDivvCDBlHzRDXtDd6dvofSM2HbB49Ryh0a+l2GB5EVYvwEban8eqKGqrP6PYImE3N x4KKKpHUo9h+PGFJZejkw7hpAPc44wSpyxS6Vb8ivJMbEDEkJAXwv/Y9WeEgfaFqpURfoTxTQAhNO UXrdhop9OULpUCgwx8BeYeWD6OHRRVZzg29EJjylOtDSuT0/xptiXO5bEjLKOnbLAbTnb/HDyeKKx MDLtbbxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOGLL-00000001ulM-0Wak; Thu, 19 Dec 2024 13:13:31 +0000 Received: from mail-am6eur05on2061d.outbound.protection.outlook.com ([2a01:111:f403:2612::61d] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOGIc-00000001uGv-1rKq for linux-arm-kernel@lists.infradead.org; Thu, 19 Dec 2024 13:10:43 +0000 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) 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?R3dbDuRZ37VMLvgJzdChHCz+b3Lkw/kt7wNdYFa1avHLku7ECfVGL3XITDlzqBfHu?= =?utf-8?q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gLj/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/fo8vgs9OUhHJdRzMafGSh9Pc6XUm5Lcj4gENhXjYTcILt?= =?utf-8?q?39KeVwyrVlUmwJ2CwXxdK6MnpMjXe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7NMUV1Nq5a3Vg9mKbe78moIN8FdUiHhQXz89GhTFFK?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241219_051042_484946_521CAD11 X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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";