From patchwork Mon Mar 18 09:56:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joy Zou X-Patchwork-Id: 13595165 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 E7175C54E5D for ; Mon, 18 Mar 2024 09:49:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=LHUjKNSDpt4ExVELv2YluGYnbUCP/Vi/q6iZmniEDvI=; b=ciWjPxMPaoU/FW bcz1UQNuKUafVI1e5dNR9YmnAF18tLsFAWI0iprVN9vHA0eumf8FU6TLamCNlYP1Ha5eDUtkejRvD LIaLpp92gwMu59A6cKh1sUrDbFMVqn+emE3xljtQI1WHf/uB8/6tmvdrVl7CLAdyeF1Qy0qAmE4hL vSbhIWYuH/ptoIqjd01yCVLSLKUvLOXKFRaOK1WdUGN31PqzYxMG7OAAl50eD2t9PZXh4HRS+BX/n jIGQvFVgL5c0otsAsKkLOwNjWWTSticyt8i4hOWP5gC3D5I+ePyfbBs1sMdIXMpLrPy6onOrrmSrO YrGGFKZTx0DHoDH9sNqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm9cE-0000000802N-1CRH; Mon, 18 Mar 2024 09:49:10 +0000 Received: from mail-he1eur01on0604.outbound.protection.outlook.com ([2a01:111:f400:fe1e::604] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm9c8-00000007zyM-3coE for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2024 09:49:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UvakmKRA9tw1pjupiB65Ejd21q1JwrbYYmmTUa0e+9jayDk5Wc+6ZJOJuTyKaDOgi8AVcXgnGTfwUw5eRbuu2sNtC7A9IJEr0+GLTJuj2F0Vn8PMqwmWw51ywvD7KjekHe35EkAUTAyLmLyKrJmx1BNWI16KSZkRXV3MfLg7S+RhfVNZ4TTGU6nunNCMlsiL1dlRXsLL3UmrEAQz/SiFferHHxsgbgimFmQVGptV8LGXXZeHuoD/hAD8sMND4HnoLqtAN7K8FJszksw0UrhGiey5Ns55CZ/DCrag0OrlyZfPLqS1Tjp+MJ8ovynSDx2HC5RWfI+UqplHuYJHszx6zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Egm0GF7MlITBOeFYJDhBZ782GpWxW5Bdw7LL2IoieLY=; b=YmD5Z27YGDvkwZ/9cvQcEh3VW9359Notke2OdYRqvmx8bj8N0NFUEp1dQqCr8NkMayVxWrtQvpoDodqiTXDqAsVEReXEjiJ/ajp/7Ozq45Oy9JDxB8boHS4VzXqjYFm895DQa1+rKn1CIm9eKNelyc40AUljoD9+iLkiBYbt5sj2v6Q4kDgzJFmUNb5tE7llw2BhzuAjLa/6Qqmf/6cppqCnTTX9LrFAXhQhE0R8HNiCNBkB8CZOo6deutweJprX/GXBdQC2GxhAPClkihG81cXJLajVCracJ2St9eCd19rGdWN7a5x34CqIkqsCNeynls3au5CrzKG6CJZPmEVrwA== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Egm0GF7MlITBOeFYJDhBZ782GpWxW5Bdw7LL2IoieLY=; b=sFdlv2os3MbDIWu4p1QFcWy/7Sj/ObO0o3/xjBMZSap7Q7QqPewq+P6mgnQ1X/7E7YJ9RgETtHniBicembm5s3jJXH4NlJYWGJLzBXkdiFHkSmIhfG5xAdhCpCRKKNkrMCYqGSyvzB27WAMusKTGR7RPogKMDPg5kxLZMMxLe2k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9367.eurprd04.prod.outlook.com (2603:10a6:102:2aa::7) by AM9PR04MB8938.eurprd04.prod.outlook.com (2603:10a6:20b:409::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.25; Mon, 18 Mar 2024 09:48:58 +0000 Received: from PA4PR04MB9367.eurprd04.prod.outlook.com ([fe80::688c:22a3:9638:9ded]) by PA4PR04MB9367.eurprd04.prod.outlook.com ([fe80::688c:22a3:9638:9ded%5]) with mapi id 15.20.7386.023; Mon, 18 Mar 2024 09:48:58 +0000 From: Joy Zou To: frank.li@nxp.com, ping.bai@nxp.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH v5 3/3] arm64: dts: imx93-11x11-evk: add pca9451a support Date: Mon, 18 Mar 2024 17:56:33 +0800 Message-Id: <20240318095633.4079027-4-joy.zou@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240318095633.4079027-1-joy.zou@nxp.com> References: <20240318095633.4079027-1-joy.zou@nxp.com> X-ClientProxiedBy: SI2PR01CA0016.apcprd01.prod.exchangelabs.com (2603:1096:4:191::20) To PA4PR04MB9367.eurprd04.prod.outlook.com (2603:10a6:102:2aa::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9367:EE_|AM9PR04MB8938:EE_ X-MS-Office365-Filtering-Correlation-Id: 51f8e011-2ad4-4c6c-4ccc-08dc4730a23a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FRItNZK9jC2+8OyPxUOQoS1vRNvOMQ5BcNahwL4pr1gyDq95Z9vjFANz/5VUhDKs7g25HqFsIYXBuKb9HBySFaRKRMjG8f8Yvpm3Ci8h1IrkZPhu1ZW/HrLtmmm9vP1QIAN79qJHzLEzd8ne0kNCRJFXiJIbMkp2M7rhdQSK7DI77vcrNKkN7HwxPq7dBasaNtAjURM64yWmsayg4fFPzrORkpVajZZ+Qb8n+aNbsjOVJnyiFY4rV8x67LnyslwxIxuBkO9g+JqiG1ATwLB7Nm1kL8ep0JY+D4er29Msv+iRsYWiGN+SGTVdT2QLBvfEoktsYvg/KIC5f1pH8CR5QzUH5HjLZwc61wnAA17s5iPVzBB5zgmSlBUfgwZzwXlTJmE/OnSkpL+dJ37e5YbLH1E5jXkW27ARLQP796U9X3L7ivtpnGifwSrl0KOBwTIkavz/uDsu/Jp46bBedQe+j6VpjoCIYEn2wYJpz0HFcHyesoHebUzXZ4iysjFA7P/MToxL9UAA6JwOyZJp3MiGFwZebGyGjEW4yFCVeVuCf0yFPJtvwCI+5TZFJjAyKU66tlme5QsYPgIddha9uXU8CpDYdjHLIAIFKqYbFOSvcO23C74cInxMCWcXJWLbXb7+fXRSHCLtr9J8gFOicN3DDS0pmh6OwiIFE5FZq9TvPwofgS0oI1jS8JSh1MH2ovBfzQxXVGCmJnvF3fmd2zcr8w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9367.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: L2Q7SydOSTMrH6DoFiJaMkjiHOSQURd+iZfJs8Jo+dhIzMN1W7NiC/1+STzkc4mzowwjHdt7zwuW+EIXiPSwBC0jVpTQg7K7z71DeBrpshZTK50nzbxV0ndVxWMfkuG3Y+T+e8u9Wk47DiiP7LtLh264plc/vIG3sdKWqt0xHAK9xG+1SJyZ2HgMi9ZajbYWBbSFhhEGtRc32jVj06nYSlfZMly+aDXwiKUQDhq30mVKvYFZjw12e6STmzRKewWg/XlgNqwPDfr5hgwufQmd2uMalBtDO8QSy6hREhZ8JMKEyWKovT31lIDNz2rgfw9ujHdXTNoC23+qyw0sts2IZIUYwVQnFHWrm9/8mVHhBvLYr1qQkk/w2GooTwmE5DpFXZHSdfyZIte7MvM0Fe94BAuuwNh3wL5A/So3AZuIdNcuM7SY9X9V/Ii/NhIXRQ0dEiHrQQPZyedgDWGu+o+bj/SrLTVnFswhJXZJ4EqoSSsPmde0c1fTNVIvt2zxSoyRr2uLVCVoDgbvA7SNtksLZ59TqCppPowu5xAMXOE+ozWytEu4y9uXXGtya6cmALzRAEE8MdQ2yrPdLWrkDTjBUB6fncfMX8qNez06GjzGUv4pZnniVQjDv9wjw/8uEVMhVUJ9+vmOuCDuNzYOErfSFcj4+2gbmZRXhAAjUQU78X0EwSPwasya+Jtav2wSYCr7kbEeZIUFVVaD45I7oD7NwgMJ85rLwt6lOX5jEuvuj5IALaTwUaK4j5nusmSf27WwQafDfBlzF/NeJ24d/1MAQmq7hEuOebPxrIy9ggNv/rKe6dME1Lk23wgCSh9WcxlkidPHeCi8pvbBThzslxfxoIKhibsoP9ln+3NNGhNvE5tohlpk7cn6ivPfECV9AixmIlrC9zwtdQPX4AYywbADvO5UxOkYx8vjgHcuzXEQc1Q2TjnqiR84GtMb6pbTwGgNwDYPFvTeBxT9SA4WGZhlaV0BPMpuppaOda2OQfP+fla3Q5tHHzYddtdsUOc4qPgOC7af62cM9fSl0qBiNBBchjLgxb1XcWFTS8WzS9Ymi0sejqWV7I1qe0uL59mGhuk/7Aeonx/UnNQ+LZgffT7bbLF1zch/RL38NSbYY2p74ANl1/tyuHck2f0cJSx9pGRS2Ucf+O0b5L3uRXaWCMf8hOB3cGjJZaW9Ut6Qi1XZkUwmHkIkAtC0R2dZzNUkn7OPPGPRCp1+W/vvzFCgkcZTbBJK81Fq9w47aHHDUbQiaAHU4JJhule7OyZZX0HleOFP/DvIUkf9hXR319sPs6PDwHfOLt855MRzQkLeVDjNJSPuc34njZUXb8Gh13MK4hD38YU+SQrhQnXkZrIhLEa4Y3gsumVKYLcp2iVLOfWzmvyWFt3pzNQy6oHWVG7Tj47dkm90R6uDpxdPcP+GKyC/cT1J+Mv4ptzpBdZOzMZ8iJMO4l6S84WLVkvKdif0wq1TZTmdki4cretEGSititxwhNM/HxxgPKS/hfcp5/dpsGLz1CRBotOkt5UhUY4zJlASWajIUcVEwnoOZcGyYR3WaoVN3shhNJP2Xy4QurBJ5KACGuDWlosz9codGXmyNex9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51f8e011-2ad4-4c6c-4ccc-08dc4730a23a X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9367.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 09:48:58.7533 (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: jQPZSIVEFJcyJvnuKe9uddo1gJzCs5n2guHzgib5iZSFFkayk5qNiKqf1dZvTt27 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8938 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240318_024905_051454_525D8438 X-CRM114-Status: GOOD ( 10.95 ) 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 Support pca9451a on imx93-11x11-evk. Signed-off-by: Joy Zou Reviewed-by: Frank Li --- Changes in v5: 1.adjust gpio@22 to the front of pmic@25. Changes in v4: 1. modify the comment for uSDHC but not i2c. Changes in v3: 1. modify the voltages constraints according to the imx93 datasheet. --- .../boot/dts/freescale/imx93-11x11-evk.dts | 111 ++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 9921ea13ab48..478a134d4416 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -183,6 +183,104 @@ &wdog3 { status = "okay"; }; +&lpi2c2 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c2>; + pinctrl-1 = <&pinctrl_lpi2c2>; + status = "okay"; + + pcal6524: gpio@22 { + compatible = "nxp,pcal6524"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcal6524>; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gpio3>; + interrupts = <27 IRQ_TYPE_LEVEL_LOW>; + }; + + pmic@25 { + compatible = "nxp,pca9451a"; + reg = <0x25>; + interrupt-parent = <&pcal6524>; + interrupts = <11 IRQ_TYPE_EDGE_FALLING>; + + regulators { + buck1: BUCK1 { + regulator-name = "BUCK1"; + regulator-min-microvolt = <610000>; + regulator-max-microvolt = <950000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck2: BUCK2 { + regulator-name = "BUCK2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <670000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck4: BUCK4{ + regulator-name = "BUCK4"; + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5: BUCK5{ + regulator-name = "BUCK5"; + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck6: BUCK6 { + regulator-name = "BUCK6"; + regulator-min-microvolt = <1060000>; + regulator-max-microvolt = <1140000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: LDO1 { + regulator-name = "LDO1"; + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <1980000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4: LDO4 { + regulator-name = "LDO4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <840000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo5: LDO5 { + regulator-name = "LDO5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; + &iomuxc { pinctrl_eqos: eqosgrp { fsl,pins = < @@ -238,6 +336,19 @@ MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B 0x31e >; }; + pinctrl_lpi2c2: lpi2c2grp { + fsl,pins = < + MX93_PAD_I2C2_SCL__LPI2C2_SCL 0x40000b9e + MX93_PAD_I2C2_SDA__LPI2C2_SDA 0x40000b9e + >; + }; + + pinctrl_pcal6524: pcal6524grp { + fsl,pins = < + MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31e + >; + }; + /* need to config the SION for data and cmd pad, refer to ERR052021 */ pinctrl_usdhc1: usdhc1grp { fsl,pins = <