From patchwork Mon Mar 11 08:47:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joy Zou X-Patchwork-Id: 13588357 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2052.outbound.protection.outlook.com [40.107.7.52]) (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 C614714296 for ; Mon, 11 Mar 2024 08:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710146412; cv=fail; b=b2PFSSwq3Y2XVz6/z7ONZAPNSoB/JkZTrWeYA51S6ID8tPmBsQ+E1GkiShJx1qsRaGMI0NjhEJf2FB9GQxTZ5CLbB+YJs69pPVsvvdtULERvGt/VbZ5VSaW6I/LMVoZY5yoAFedagBOdOF09HWClYxcGcgNsDWLQzNgq/85Ey4E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710146412; c=relaxed/simple; bh=u3orziolZ6LUY9cwo/+1TmMnxSIpDEfCDdn39AJ8NB0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=eBf8Ec1jTY/u+4IE4ldmB5patVI94e6ospWv1ivdVCWJ1eQ1F1P32AxiNhC8XKoIqbOgk43VuFUBgGF/67XxNsDNZpEEq1OMihu4PmIMyW/MuwrPNIr2TUrz69TSTVQr7dourG10wSQ/r/Chtlhj0PPWGVMNjbeQuxGMMffr6v8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=RiU98U12; arc=fail smtp.client-ip=40.107.7.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="RiU98U12" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=irqYOsN34hTvNlIoX1j+hJm0UydPF2hk1ZWC7gZfGzvqz2Tb39qhRpaIm4f3g2vaqT2Y6pB/mmE82G3A9zHc4f+Oo+NHdia4y01mpnVZOhcua07G8Sy5DNNiUp39JyEmrBIdOcwFucQTXAr9tuR7XSSvJlhQtk7jPRbYZDkPZURSuH1KRHN0HTnbN0OpDJmFWFc2x0sFZ8QvPzfpBIekV5fNSWGt/EUbxZUAgCt/BIJHoAbvJDawCT44Dutqkkz8gl/ePAVQRAB6Etu47y0Rk32C22ak93BwmFegdJXjmFD1az+BhtBX68Ygr8lWQOPYEZYV0Tthn5v/LDK0xgRLZQ== 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=a2/+JmhFRdOeTaCCQm+5ArR6oM2DdW3XV+LPqaAwh6s=; b=NW1NcSvUG6rHpViB1g7heCWYIkD1JVnjFa4bSPkvjoRTbji/f/EZ9oUjVjHlhnNm7NTBJ27gvG14bg8twUbUf4q+7A3GCyUW/XqJRrpJS077FAxdEg0u3Zyoy6CUZkA08IQlh4iXo3HASkCjH5E27FOcCg9D5hch1sqSVk70+XO1SpmcC7GhjmuoiBRDXTSk4tAskX5/hN9eAM/tgwsENeGVMsVJaMX1F/8PMSxDi+HIDEe/909Mt2X8rkEoefZNQhtXNgU+ljPQFWQoM/OeOE2flcq7VhuQq99vKCiGq1PvSA/CFMoZAz/Xe3Yd+eq6tullq0dX0wbqjpeSghAuNw== 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=a2/+JmhFRdOeTaCCQm+5ArR6oM2DdW3XV+LPqaAwh6s=; b=RiU98U12zyZnF+Cgzsr+YQfxBvLp/Nz23U0DPgR/Hruz/VQFidbeg1hgcrZLtTVhZLiyZ2UzI3NReTrIFDPbb68CvtuU11gWDW+smEp+3OYKOYCaLnIhkNp1z3BWoaz8WPUw1f/3yPPsh+vJbbVzXL98444f/tsU7bbZSjh54Wc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9377.eurprd04.prod.outlook.com (2603:10a6:10:36b::13) by AM9PR04MB7602.eurprd04.prod.outlook.com (2603:10a6:20b:2db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27; Mon, 11 Mar 2024 08:40:06 +0000 Received: from DB9PR04MB9377.eurprd04.prod.outlook.com ([fe80::b3d4:17c4:91b7:101d]) by DB9PR04MB9377.eurprd04.prod.outlook.com ([fe80::b3d4:17c4:91b7:101d%5]) with mapi id 15.20.7362.024; Mon, 11 Mar 2024 08:40:06 +0000 From: Joy Zou To: 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 v2 1/3] regulator: dt-bindings: pca9450: add pca9451a support Date: Mon, 11 Mar 2024 16:47:55 +0800 Message-Id: <20240311084758.377889-2-joy.zou@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240311084758.377889-1-joy.zou@nxp.com> References: <20240311084758.377889-1-joy.zou@nxp.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To DB9PR04MB9377.eurprd04.prod.outlook.com (2603:10a6:10:36b::13) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9377:EE_|AM9PR04MB7602:EE_ X-MS-Office365-Filtering-Correlation-Id: 47dd9613-e6f1-4745-6c7f-08dc41a6da57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B93PhsYoBy2hyLEfY1D9a+KWiXZCEGwgxU5NFgKAHrQBt2ze6kyocXANbiGKQ07QH+/ERPyhwNJc8pedZnPiPmlr+qYlElu1Y89W6cv+Bj2jTzQ1dfuzW6HuxTPRttrJMKRls1mcBY+C8sBHtLM00pirEPkUh+4j7yEapTaOCpJYDF3dKeeY/RpBtP8DMemZB0dXUYVbD2WgH1xfMo0ezhyeWC3CyVZ4tbyEV30wzRtytzZc58vaFK9sPJpeQE6SsWJKVgiFdVRv9/XshFEuZLDpUTQ3S5S7hMaic+OCiDRg6p6L4s7+h8JLCrk3lDcq7CpkaWdb97O4f3VDelDF5LBbidBLq2zAP0HzFlRxyCFXdQVvJ+sehITNpNXoDo/Uvmf4Oj+O8r7QyuJOOdw/r5CRUGqJjquWNyckCtKsu7UCA/+xm6Q3UHvwvdtD8CaUM7RJZFzR+pJQdvwVRVlccJU/ZnRTngh1Av1amUlQukRZlR/JeLK04B+zCrnsDTJtDwmfZGkzx9q/T7iaqxueGloS3Y6ylCSIvXH9omRBSo3MWViYkzrtHUCn/DjaAJdkV0ZtrkwWXGYUR8jwdMIfF84IK7Rx4BLJNsLs6J4pLMTuXPuand3hHsIT0JnAEnpFtj9cAZ1wI4tlSvBNqFrxx9rXO/1o7XxscriN0Z9t7tQyHRRRuihjfZmPrkUk/6I0LNLT2w/CeYH4BkXn7RfIBA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9377.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(376005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: x3i6XrE+BnSZ1h+pJgmTl5ymMuvIEPJRx1w96d7cTTCXT/TNvWGG4lPT8JKn81N9/IqLH6Yphw9AvOKoNzBzh4tBQ9LQuZh7luuBIfiHkP0QZ1LaRO1tGRb9QSXi6Hhb4q9AfXwBC7rJuzejLNvYyGVWhAiJ4TU8fdC1MITDEN/6lUm8pJPELdq/kJ8CVjwpgPhnpr5fwUbtUIYF9g1wQz77dyLaArVY3mk4NPADEVM1Sqnchs4pcV/XIpsPZ/um1CNbjkKVN+YK8qr5FcfpgFUHSek0Bjb57MNzFvpbQItpzRe3yfcPWA3zwjjGbI1eMpoRSSsab1K8DSYD6RQqWoYyaINrqAofCBkrjV96vp7KUkfl6HoGrkReHrhjhxpM6qtHZntiKsgVLGXDcBc9d+mMCJKfnUpOBnC7mrrvM0K3SdgNp5+Ff4dEpWKM9MfmMlhvSsiGQ2P3lTxLAp7AGje5YQyo9D9CS0IGDTOTvUs0RD+16IhIYb6R7KzPWvT1umDSrP8qT2s2AFQEI8xvGgkxtrzpePE1mnHNdq5KrwGeaEh0lfdiZ+hOb80UdgPVs9VGAeJQw0RLvFyXfzvCxDICBW4alRIyGtkcwmREeqGSj6MRKVbNmSsA/3Z2CYzjkS16SN2JO2rcPEWcMmoNc5GxiFjOYZUCRtu0xOKiqNimXy+iL3i5Wu0UCoeJuYmCZ8Cld48ITvVnOdnRBDOXeHymC6YUYXXmdOGlz542ywT86uqlYWDF5zoaVVbLXoMSsm3vYmkEPUPe4op1H1y6QL5jE239lndK6EP+ITLQjbYHxupa09ZtWn8MdLUew45E7VB+uNZtfIqtLXbsll+NY8IsjPfO7rBR1Y88kJnHSXVNow1Bnrq1BgcD5J1AqX0iJUVUzRulDfgm7XdjCnC3xFgqsU0UBDaw0Tjr0U5DGOuDayb4BuupW34fHKmo1PrksFWRDg5lSvJI0c15xvQ0ztOdvpQKDaN+4q+ydjwUw/nY7AIxFHWirVpvT0X2PR1LXPiZHx186FjE+jEjaLR804AWEKANk/udOvkYMlJQ1AfaMH52tB/8Qzy/Q00OmoNvJnXuXC9ePnhNDe2TDNSTUvJdWU5f77qMW6XOwBZJTSkNzs9yWvmgtcK66TK5rPGW0EzR4cFjC1Q9uxP6txXJadhAsem2By8tVgwI9Zh6CpjSi2A1h2tVuxjO2Y9lKTnfAfhMn7v09EAl2JwESPI7lB6KBYfg3ZwjIVGQsnW+Gpthpa0u5p8XfATI7ZXLVCBO/UN+EXKIHBW3yGxn+HUfKxhzjL3F9C80yMBBtweMS/Iwgchar2QSxKMS9bYNi2hZzll40RPROu+yprH2ayQEmGSwDH8cLy/P/Ks/cZIiU6PlII88wmp5Mp4HoACUomCJx2t8bMii+XECf/VJ4vLDCQIQEosw4X+6Ucl/hxWxvc+XJB9LRB2stpD1AFWTzSrRcATel0PQxfTVSHp4pRpeb/z1MHqRdnqM+ncMiI5DvO88S8QoD6kkDWyfEtXkLyplQJwaDIuVhhp8F7vxA2pewgxjltR/6+gvbuzB+wE66bSAa8FkKjS6PO54Aq2jOdLQ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47dd9613-e6f1-4745-6c7f-08dc41a6da57 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9377.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2024 08:40:06.6459 (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: I8cvLB7JT/edctWqmR8IWA87Wj6zEhs4w6YkuAD/IKyiWlafprXH1DEu8mxm/+rZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7602 Update pca9450 bindings. Signed-off-by: Joy Zou --- changes in v2: 1. adjust the subject prefix sequence. --- .../devicetree/bindings/regulator/nxp,pca9450-regulator.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml index 3d469b8e9774..849bfa50bdba 100644 --- a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml @@ -28,6 +28,7 @@ properties: - nxp,pca9450a - nxp,pca9450b - nxp,pca9450c + - nxp,pca9451a reg: maxItems: 1 From patchwork Mon Mar 11 08:47:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joy Zou X-Patchwork-Id: 13588358 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2084.outbound.protection.outlook.com [40.107.7.84]) (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 1D95217999 for ; Mon, 11 Mar 2024 08:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710146419; cv=fail; b=Np2fWggyOmcSgsY7krb6m76eVDUMZIe2nNM65z5A/eCMf3XBXp0kOxWht/5LmnUIX7SZTBasHZ0WkhfhNhct8v742im5Czar49RFhFhlFR60bVgDYFx/LFFHFJhbXa8822Vz1NQ+gA4KE6tnz9+spfVUCJtG1dffI5CkVUVPBNg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710146419; c=relaxed/simple; bh=GH1qB4u2ZjthsNHReQFP0NYpV6kZ6Y4VqqZY602C+yk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=gNUpFFC4vKjG61381ZNOIXQ6R5yjiGHUVDU/gcC6XSZgn5ApQJEQ40MSAF+BvtZd02Ihfhi8fvrL+YPC6itBT9/L8D+wZf0v7uQonHATlHBdUWVMbLyiOPR8BBBAiogyc4GS1TXsfLWt2HU5sRTL1FHGqsMDdNv9VW84LgwYuq8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=ekaotkkA; arc=fail smtp.client-ip=40.107.7.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ekaotkkA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Celf/rCbqTz4OWhriQ7DomrgPQVHW2eK3YX+1dJuIzUrhO8qqgk+mA7cdR2Z56QXfV8whsziUU2WGgubENuOJCA/Cddo5zDhC3p5UE6PKaHiKt6tsS8KtimNFPUEfogV3Ja6u9STwXEpxoCwCXWCIUEWKFAijPeJbdTKMnslxmJB4XSQ9J4gXzDfeidYvRye63bLuTYHqHhu+3WVBeuoqGAil93Et7Z5siDx6V0FpBoD0o10Bgh10715aEz3JVGvdBLDkYfyh19lS2G6/gAvp8mTMU7Jok5/vtaQJAoTTdl35doO+K2ChfO9O0gvYpKhjzVo4kdPK4iEKTc1xIIelw== 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=/us7hW5vGU6NFXFzOAeKyJVZiQcuWMf0Od7NfGdGs6Y=; b=QaNDY5cyyMlJdBbpaAmRH0NRhbMkeoDzJJSoIx6gDu5rqq2Cshf29iosOCdsG+tWFKqrK1fxWtLGaJyYwQpwuV4+Iubw5JfgR6OxWvaa7GERiJ4O9NwFHfmjePH11MEgzbD5wG3OCjH3+Z5KT10Q6ZyBHRKDVLGOU97c3umFkg58OM0uUvmVEX8xYjt7zlDqVnGh9IkrHwYeFt5eaig75hPFxNCgTi4wwRv4ri9Y6YPvtguDXSysTPjWzQnTVqMQD/qoSE0Xj/hRFdySemZsMYCMtySR1rj/FqD6PhMSvI1bIYcwLU+1O9aJ0EJr7aTpnVSwfc1xoEp87sSPzM/xXw== 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=/us7hW5vGU6NFXFzOAeKyJVZiQcuWMf0Od7NfGdGs6Y=; b=ekaotkkA9uPupasB5YNP7gMYLdraRtp5Tw1VU8ju5RK6+I3Kz3dRuL38AhQUDFFwstXLsp2q+1PFOhTbBLiRhvfpqWe9Tn+WDkf8csFoJiYuYJ86sB2HG8dlrm6/OBUigec1VDLy0bETVJOwiCO0TXeiDUBn++lppeoyOv1yKQs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9377.eurprd04.prod.outlook.com (2603:10a6:10:36b::13) by AM9PR04MB7602.eurprd04.prod.outlook.com (2603:10a6:20b:2db::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27; Mon, 11 Mar 2024 08:40:12 +0000 Received: from DB9PR04MB9377.eurprd04.prod.outlook.com ([fe80::b3d4:17c4:91b7:101d]) by DB9PR04MB9377.eurprd04.prod.outlook.com ([fe80::b3d4:17c4:91b7:101d%5]) with mapi id 15.20.7362.024; Mon, 11 Mar 2024 08:40:12 +0000 From: Joy Zou To: 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 v2 2/3] regulator: pca9450: add pca9451a support Date: Mon, 11 Mar 2024 16:47:56 +0800 Message-Id: <20240311084758.377889-3-joy.zou@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240311084758.377889-1-joy.zou@nxp.com> References: <20240311084758.377889-1-joy.zou@nxp.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To DB9PR04MB9377.eurprd04.prod.outlook.com (2603:10a6:10:36b::13) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9377:EE_|AM9PR04MB7602:EE_ X-MS-Office365-Filtering-Correlation-Id: c6100331-fac2-47ba-9bf7-08dc41a6de0d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z4RwacpHG1/D42A3lpj6c2/ODTtuZc6e05Zpap14ApauA0LCOJcQ01eRsZvtlJp8pkTpTvELaZIjTCDvcvP0/HePOOWxE5czIL19J3EbrO0tIvnmCdKxze+xhNi1ZkBSJ9OZCFmAui+661iwrdcNBY6FyuSt/MjA9UZ2sBfHejnB1r5i+DjT3OUBjjQMNmRSAA3zMgrxVgx3F09zJ8eKIbrPdxa+A4P7n/MXxV/xvjvNyDyoaUe9NBcXjvlmmNwT4aC79qeRDlJIvDj1TcWrVwHf3oCMugFpqMMiRkZrl9nsYDZUut/3LJmvdVurCv/g7bb4ipaG8S8XOW2zVIiimAv+dxCRAbM19i+MGbO7eoMge2lPfXlb0sNDmOE2us6T+nt64QR8iRwz7lGvZhrvE2RURtuHouDrackOXfYLfh53cUvV8r8bVXnbnRdImZCnPPhYu8KOZkXTdVjzrqjKNwH2clNdeWWWgt9Q8eInVe5rG/dr0x1A7gYV4LRqy/EfQrWWaUzjlAr50rXnQP4gIhj7hVzCUJORktv9AiWpRbsdx5ItBrfmYkEEROZMfPXJRFQJ7T1WF4qr3emOUzvb7lgFVijK6VOU7QoLMSmx3Zkl9sqpLfvUhbpHQ7RmIhV/hd6oCOOXrx1CD2fEJuBzQvPJ9V32WY/Mq27oF2jTtMsLkaNcpdICDNYhcGHwCbWUsvHUcWQ1MJ8SYnbFPP+9vdFHBDzX06c1RTuk8VO2Z/s= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9377.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(376005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AHtbkbgSf0VACbrUwdaYcd2CYdO5nmWOwHEH0h/V66gfoNUwoX/qw86p8xdQI2iw82vXMVz0brBVZse1tMPuxbjHVTW6RXwkSUA8hUyuz9+Ow91S+hzWNtc0WnefdyW9P1XoVMH/wnIn8EHSSB10S6qHcWNLJVVcPky4+2+FJ0iQHiGCHC4VmaiJZrAla3y/MO4fMO/hKMjtFgmxFhb7TFqMpjl9U4EdcOWKcBsNDnPIyfvc/Hk51gtdHrfu1Szqn0n2ypjzJ8ExNY6Xy9Kzpe8QXXp7qRphr4W4bW1s4G4ZkSqgPyk95CAFG6xDsGIYfzIUBFmhzF1IONPpi50MYNZlR2wN4FnWT+EWIaE/Djq2LTBfaZlzJk2ilh1W9+G7m7nyBsACbR3qFV/3GsC9ue/RN/xCZzxW3YaekoEdkeVslZZeq22Wvo8pSQpJALx5+ZlAlhv+W4NDB4feOOaQIr6zP9f/Sm1j1804oXP97b4ziAJAf5XumrAYTzqgiWWFpM2KefV1ELmUWpYI8eBF0uVhuYzMt9rnLpYQpRz11zXlh3irF4ZAmABQtgXl9InoORlK8ZFnAmUtpXTG3hUNF4PNROBaw4Gr3qjWRPlCSq+iLS12kb5Fq8FabQR1ZU7dzhcR+lpzR9OYks35NV+yDH0U60A4jJGCbS7UQWK0QcDwVbwQSu+Qs6eSUZuAC959UQnyUNgOT+KZTFgN3SqKcPDWLW9xaVgyO+mRTkgHqg40U99llSZfNhqUYZ/UC5lCwM059WOs/yYFO58wnn+Fa4Ii+GbzRNc3y+wnEq63Ta5BkqrhIL/zRLQD8+CIQ2WixekKqMyYt+FgJ5gY1nj0W6utHRDFKQoOkLRHeWS2oK8+CI6yf1p2ttNYd/PHCmkc5XUg8DyxfaWLnKOzjYf2z65OHXYpr4EvtCSlca/8eOoEpgmXRMqrtrqAh0Dq8HvJbzEl8OItt8keFqQ4BCItGyrx2NcL0GGFkBaFV8QklRnwO7TZkEXlghxo6dBOqihhGhp52cLyDHpEyw5am75h7lFAQpbqF7DnJ2yhnsfgXNyBPFd3l7bES68A49hzQF5ICin3VHm8XmKv62NSBvP27q/EGbjBPRHEFY+DJEVSmri6LHcWlX4kn4Xk9A7zsbL0ycS8SrNTobDlWDEXx99rMUj+4+Ae6GJNcL25dwlw+53qXxNh1xzUvZIdTBY08RJ6KaDrniwPL4OCtkejv43aOMakzlEErvtOqG6jVZ6JjtRw3yHm1SuF+pGvQy9wjD9BJvD1yylhKf82qs71Pqda6KA0XSVMmlxkGoggDy5U1wrn6XwIbgw5IONpqG9oAqcXvjNGa3vuDBb9LeLAg3M4HXNWFQ2FQkYPxyMuLxuH2ydRA3ZIYWnh55B1nv1Rz4OzJf9POA4qI4Ie0i7f7VqaLk7hUarFGZWY3I+JzWtIzADfFJdEpGCaUlwNxB7Uhb68mf/OIT2V63fRs/WlpyQT01LLe0AthfJh4sJ5wMrspCc6IUHN34EI+QdQerxykI/7yqXDJouq4s86j7TpEVpRgnaWGHFIhawf5LHzt2KzXcOszQe0u07ptObsAWqsWQtC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6100331-fac2-47ba-9bf7-08dc41a6de0d X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9377.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2024 08:40:12.8149 (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: jH4P8X6xt50If6fGKcXASuDQWuNdqd3sU8K05cY9g9x0RoPtOJwzX/DSgDekDZrD X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB7602 Adding support for pmic pca9451a. This patch support old and new pmic pca9451a. The new pmic trimed BUCK1. The default value of Toff_Deb is used to distinguish the old and new pmic. Signed-off-by: Joy Zou --- Changes in v2: 1. remove the old part support because the old part only is used for sample and is diffcult to distinguish old and new part. so drop old part. 2. remove the unnecessary marco definition in the file pca9450.h. --- drivers/regulator/pca9450-regulator.c | 197 +++++++++++++++++++++++++- include/linux/regulator/pca9450.h | 1 + 2 files changed, 195 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c index 2ab365d2749f..50c324e275b5 100644 --- a/drivers/regulator/pca9450-regulator.c +++ b/drivers/regulator/pca9450-regulator.c @@ -103,7 +103,15 @@ static const struct regulator_ops pca9450_ldo_regulator_ops = { * 0.60 to 2.1875V (12.5mV step) */ static const struct linear_range pca9450_dvs_buck_volts[] = { - REGULATOR_LINEAR_RANGE(600000, 0x00, 0x7F, 12500), + REGULATOR_LINEAR_RANGE(600000, 0x00, 0x7F, 12500), +}; + +/* + * BUCK1/3 + * 0.65 to 2.2375V (12.5mV step) + */ +static const struct linear_range pca9451a_dvs_buck_volts[] = { + REGULATOR_LINEAR_RANGE(650000, 0x00, 0x7F, 12500), }; /* @@ -662,6 +670,178 @@ static const struct pca9450_regulator_desc pca9450bc_regulators[] = { }, }; +static const struct pca9450_regulator_desc pca9451a_regulators[] = { + { + .desc = { + .name = "buck1", + .of_match = of_match_ptr("BUCK1"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_BUCK1, + .ops = &pca9450_dvs_buck_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_BUCK1_VOLTAGE_NUM, + .linear_ranges = pca9451a_dvs_buck_volts, + .n_linear_ranges = ARRAY_SIZE(pca9451a_dvs_buck_volts), + .vsel_reg = PCA9450_REG_BUCK1OUT_DVS0, + .vsel_mask = BUCK1OUT_DVS0_MASK, + .enable_reg = PCA9450_REG_BUCK1CTRL, + .enable_mask = BUCK1_ENMODE_MASK, + .enable_val = BUCK_ENMODE_ONREQ, + .ramp_mask = BUCK1_RAMP_MASK, + .ramp_delay_table = pca9450_dvs_buck_ramp_table, + .n_ramp_values = ARRAY_SIZE(pca9450_dvs_buck_ramp_table), + .owner = THIS_MODULE, + .of_parse_cb = pca9450_set_dvs_levels, + }, + .dvs = { + .run_reg = PCA9450_REG_BUCK1OUT_DVS0, + .run_mask = BUCK1OUT_DVS0_MASK, + .standby_reg = PCA9450_REG_BUCK1OUT_DVS1, + .standby_mask = BUCK1OUT_DVS1_MASK, + }, + }, + { + .desc = { + .name = "buck2", + .of_match = of_match_ptr("BUCK2"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_BUCK2, + .ops = &pca9450_dvs_buck_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_BUCK2_VOLTAGE_NUM, + .linear_ranges = pca9450_dvs_buck_volts, + .n_linear_ranges = ARRAY_SIZE(pca9450_dvs_buck_volts), + .vsel_reg = PCA9450_REG_BUCK2OUT_DVS0, + .vsel_mask = BUCK2OUT_DVS0_MASK, + .enable_reg = PCA9450_REG_BUCK2CTRL, + .enable_mask = BUCK2_ENMODE_MASK, + .enable_val = BUCK_ENMODE_ONREQ_STBYREQ, + .ramp_mask = BUCK2_RAMP_MASK, + .ramp_delay_table = pca9450_dvs_buck_ramp_table, + .n_ramp_values = ARRAY_SIZE(pca9450_dvs_buck_ramp_table), + .owner = THIS_MODULE, + .of_parse_cb = pca9450_set_dvs_levels, + }, + .dvs = { + .run_reg = PCA9450_REG_BUCK2OUT_DVS0, + .run_mask = BUCK2OUT_DVS0_MASK, + .standby_reg = PCA9450_REG_BUCK2OUT_DVS1, + .standby_mask = BUCK2OUT_DVS1_MASK, + }, + }, + { + .desc = { + .name = "buck4", + .of_match = of_match_ptr("BUCK4"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_BUCK4, + .ops = &pca9450_buck_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_BUCK4_VOLTAGE_NUM, + .linear_ranges = pca9450_buck_volts, + .n_linear_ranges = ARRAY_SIZE(pca9450_buck_volts), + .vsel_reg = PCA9450_REG_BUCK4OUT, + .vsel_mask = BUCK4OUT_MASK, + .enable_reg = PCA9450_REG_BUCK4CTRL, + .enable_mask = BUCK4_ENMODE_MASK, + .enable_val = BUCK_ENMODE_ONREQ, + .owner = THIS_MODULE, + }, + }, + { + .desc = { + .name = "buck5", + .of_match = of_match_ptr("BUCK5"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_BUCK5, + .ops = &pca9450_buck_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_BUCK5_VOLTAGE_NUM, + .linear_ranges = pca9450_buck_volts, + .n_linear_ranges = ARRAY_SIZE(pca9450_buck_volts), + .vsel_reg = PCA9450_REG_BUCK5OUT, + .vsel_mask = BUCK5OUT_MASK, + .enable_reg = PCA9450_REG_BUCK5CTRL, + .enable_mask = BUCK5_ENMODE_MASK, + .enable_val = BUCK_ENMODE_ONREQ, + .owner = THIS_MODULE, + }, + }, + { + .desc = { + .name = "buck6", + .of_match = of_match_ptr("BUCK6"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_BUCK6, + .ops = &pca9450_buck_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_BUCK6_VOLTAGE_NUM, + .linear_ranges = pca9450_buck_volts, + .n_linear_ranges = ARRAY_SIZE(pca9450_buck_volts), + .vsel_reg = PCA9450_REG_BUCK6OUT, + .vsel_mask = BUCK6OUT_MASK, + .enable_reg = PCA9450_REG_BUCK6CTRL, + .enable_mask = BUCK6_ENMODE_MASK, + .enable_val = BUCK_ENMODE_ONREQ, + .owner = THIS_MODULE, + }, + }, + { + .desc = { + .name = "ldo1", + .of_match = of_match_ptr("LDO1"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_LDO1, + .ops = &pca9450_ldo_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_LDO1_VOLTAGE_NUM, + .linear_ranges = pca9450_ldo1_volts, + .n_linear_ranges = ARRAY_SIZE(pca9450_ldo1_volts), + .vsel_reg = PCA9450_REG_LDO1CTRL, + .vsel_mask = LDO1OUT_MASK, + .enable_reg = PCA9450_REG_LDO1CTRL, + .enable_mask = LDO1_EN_MASK, + .owner = THIS_MODULE, + }, + }, + { + .desc = { + .name = "ldo4", + .of_match = of_match_ptr("LDO4"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_LDO4, + .ops = &pca9450_ldo_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_LDO4_VOLTAGE_NUM, + .linear_ranges = pca9450_ldo34_volts, + .n_linear_ranges = ARRAY_SIZE(pca9450_ldo34_volts), + .vsel_reg = PCA9450_REG_LDO4CTRL, + .vsel_mask = LDO4OUT_MASK, + .enable_reg = PCA9450_REG_LDO4CTRL, + .enable_mask = LDO4_EN_MASK, + .owner = THIS_MODULE, + }, + }, + { + .desc = { + .name = "ldo5", + .of_match = of_match_ptr("LDO5"), + .regulators_node = of_match_ptr("regulators"), + .id = PCA9450_LDO5, + .ops = &pca9450_ldo_regulator_ops, + .type = REGULATOR_VOLTAGE, + .n_voltages = PCA9450_LDO5_VOLTAGE_NUM, + .linear_ranges = pca9450_ldo5_volts, + .n_linear_ranges = ARRAY_SIZE(pca9450_ldo5_volts), + .vsel_reg = PCA9450_REG_LDO5CTRL_H, + .vsel_mask = LDO5HOUT_MASK, + .enable_reg = PCA9450_REG_LDO5CTRL_H, + .enable_mask = LDO5H_EN_MASK, + .owner = THIS_MODULE, + }, + }, +}; + static irqreturn_t pca9450_irq_handler(int irq, void *data) { struct pca9450 *pca9450 = data; @@ -729,6 +909,10 @@ static int pca9450_i2c_probe(struct i2c_client *i2c) regulator_desc = pca9450bc_regulators; pca9450->rcnt = ARRAY_SIZE(pca9450bc_regulators); break; + case PCA9450_TYPE_PCA9451A: + regulator_desc = pca9451a_regulators; + pca9450->rcnt = ARRAY_SIZE(pca9451a_regulators); + break; default: dev_err(&i2c->dev, "Unknown device type"); return -EINVAL; @@ -755,7 +939,8 @@ static int pca9450_i2c_probe(struct i2c_client *i2c) /* Check your board and dts for match the right pmic */ if (((device_id >> 4) != 0x1 && type == PCA9450_TYPE_PCA9450A) || - ((device_id >> 4) != 0x3 && type == PCA9450_TYPE_PCA9450BC)) { + ((device_id >> 4) != 0x3 && type == PCA9450_TYPE_PCA9450BC) || + ((device_id >> 4) != 0x9 && type == PCA9450_TYPE_PCA9451A)) { dev_err(&i2c->dev, "Device id(%x) mismatched\n", device_id >> 4); return -EINVAL; @@ -767,6 +952,7 @@ static int pca9450_i2c_probe(struct i2c_client *i2c) const struct pca9450_regulator_desc *r; r = ®ulator_desc[i]; + desc = &r->desc; config.regmap = pca9450->regmap; @@ -846,7 +1032,8 @@ static int pca9450_i2c_probe(struct i2c_client *i2c) } dev_info(&i2c->dev, "%s probed.\n", - type == PCA9450_TYPE_PCA9450A ? "pca9450a" : "pca9450bc"); + type == PCA9450_TYPE_PCA9450A ? "pca9450a" : + (type == PCA9450_TYPE_PCA9451A ? "pca9451a" : "pca9450bc")); return 0; } @@ -864,6 +1051,10 @@ static const struct of_device_id pca9450_of_match[] = { .compatible = "nxp,pca9450c", .data = (void *)PCA9450_TYPE_PCA9450BC, }, + { + .compatible = "nxp,pca9451a", + .data = (void *)PCA9450_TYPE_PCA9451A, + }, { } }; MODULE_DEVICE_TABLE(of, pca9450_of_match); diff --git a/include/linux/regulator/pca9450.h b/include/linux/regulator/pca9450.h index 505c908dbb81..243633c8dceb 100644 --- a/include/linux/regulator/pca9450.h +++ b/include/linux/regulator/pca9450.h @@ -9,6 +9,7 @@ enum pca9450_chip_type { PCA9450_TYPE_PCA9450A = 0, PCA9450_TYPE_PCA9450BC, + PCA9450_TYPE_PCA9451A, PCA9450_TYPE_AMOUNT, }; From patchwork Mon Mar 11 08:47:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joy Zou X-Patchwork-Id: 13588359 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2057.outbound.protection.outlook.com [40.107.8.57]) (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 09E84182AF for ; Mon, 11 Mar 2024 08:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.8.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710146425; cv=fail; b=JvxRF6+78JfSq9k/CbgUfYItWTfecrqFGrrO4+5LZr+OzKHYrTGwos/q6gnttqhSGObleowYxTxxve6h9Z7p3F1FyeIuJFUsSZeoRxS7l6JTUP20/m4i3hdz/QMp569KhTu4C/l3OlIr1A1ev+xV6UI2zcAGAjjfpwj1IiLzDCE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710146425; c=relaxed/simple; bh=nVLyfL6oAub5QxTBIPSFcQT/DmeiCAhQOcUmVWUAo0o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Dmo4lDXOELzKgbUsYCogz1GcsmdKZd2B647ZKyZh27pNmqdCLAskDh9p4vAsKFB0MmlKAncAD45yQnAfw3B786Po2MbkZFA25RX+VQMTxbuOa2D+RdhEvTq+K48XwkCdejXSI2VKwZl1sxq5OGfzX7ew0r+U5XVvUjYtXRL7ihg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=NLLWXtda; arc=fail smtp.client-ip=40.107.8.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="NLLWXtda" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NXQeTxQmJ1atz/+3y2xB1A64uJO01UU7x+Vcgf4rU7aS/x02ph5Y5Vixm2VCj4iohD5LD+Q6NhSQIY1vdwxe3KW520k3X+px02pAXlluTci1C/TJJaujhFxf1Mb5C/xfbxt37xdRbYOSa871ZLpBYKnC1hlQhXlljc5vRMSRTeMchsBCYvkl0rLqv84AnOT5tmAd6MrsVBp0vg5Je0qJanu/iSQmtOJxi/fuf0svZgdD8ESYfMeWUMBFdlQaKQFrnhmxX0me+IvMsZQQsRFxV44porfPYwLRPMFHeTUpu9++rvatW6lczdyiVAk4kDHmDeS0bp1o8MEDYA/R6Ulcrg== 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=IRfAeEf6ADAR/D5vDs3vSihaef3MqUZXstlPW6KnM/4=; b=OsMlMImBVGxKXSjnH+xdH6v4msLRQvWflS7pJ3QK2acW0kABR9WmFFMnBX+LmNUKaJ4EzpPmPLTZWSiTxcyx+Zofph/urSxUPpmyGxkdlEdg8axRYJLDIbMi+I7q9V22cE7YwPyBDLFoNzvL5c+Z63/nvVgdc3+xHz3Vcho25FuzmGfYK8kpzhY0dsD/JPcI+AvCe1BmPQjfCNzU0PzoNAE5/b/BfOqiNDb+NbVJQ9TAoiSyMA1OMsKfQFFS/2NrJP8F76mWPgiVSxogcFaiF3QWGtLP2G9LiylH+AYit6wY2hw33ATDMdwc5qfv8jpsigIJRIttPQxtrwB8bTORiQ== 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=IRfAeEf6ADAR/D5vDs3vSihaef3MqUZXstlPW6KnM/4=; b=NLLWXtdaGGbY+P+tNhdPQpvDK43LlhN/xH0npWQSfd4Ttgg1/J74KKV5gy2OHcfeWpKIajLXw/hQmACMMJaK/yCzvkKmINyZ49dZktWLik2PdVv45GCNX9rmX7y5UM7pWIjadUwWZ8zlMN/Sz2XkwtUtjHmLhOUwKAIhaqUYc9g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB9377.eurprd04.prod.outlook.com (2603:10a6:10:36b::13) by DB8PR04MB7035.eurprd04.prod.outlook.com (2603:10a6:10:127::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.35; Mon, 11 Mar 2024 08:40:19 +0000 Received: from DB9PR04MB9377.eurprd04.prod.outlook.com ([fe80::b3d4:17c4:91b7:101d]) by DB9PR04MB9377.eurprd04.prod.outlook.com ([fe80::b3d4:17c4:91b7:101d%5]) with mapi id 15.20.7362.024; Mon, 11 Mar 2024 08:40:19 +0000 From: Joy Zou To: 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 v2 3/3] arm64: dts: imx93-11x11-evk: add pca9451a support Date: Mon, 11 Mar 2024 16:47:57 +0800 Message-Id: <20240311084758.377889-4-joy.zou@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240311084758.377889-1-joy.zou@nxp.com> References: <20240311084758.377889-1-joy.zou@nxp.com> X-ClientProxiedBy: SG2PR01CA0196.apcprd01.prod.exchangelabs.com (2603:1096:4:189::23) To DB9PR04MB9377.eurprd04.prod.outlook.com (2603:10a6:10:36b::13) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB9377:EE_|DB8PR04MB7035:EE_ X-MS-Office365-Filtering-Correlation-Id: 27b31cc0-3d9f-49b6-c46a-08dc41a6e231 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J1AxOpPEaPMkDL3KCkZ7mCwWKdryMdweytWSfiL6cAGm480f5aGmBptA8os9H6v1SRB934qBHCnOvCUNVUcplbiPrN0VvCWX3+28d0aQasEcMVQGuat8uI7zCO5/YODoz7NBlhJQh6vXHdA3UvOvaZj9h5huYpvdtgzznNU2R7iDg4U8TeiO8xybEtJSpT70nvmkglw+dwH6Loow0FUr4Rq2EkxkceLSRJDBGr2/+gMa6CgZKIsnmpmCLZZ6OD/5L5LQNK+szJmJ/aftQj/6YpOY3y8hKs0u2LaIWm9i/LheSsK4yQ3+EVC3hz3f0NGmjZQIBHVFknE5LBRZ7SdBxKldKT+DZMp7Kf8lKkn6DkzKnJUOpaDC8xEDiBiToK/BKhQCCNzc7lR4qVxlu4/g8Mkczn+ukcQRoGD7G01pR4aSaanj+AsNskKGLaszye1l6c1kp04Qbj9O7aVDgcajrjurzOOx4Ya5OjOfatGgx7apdAl+J6VJZKVJWuda5i1rv/Tz8hqYbn8IRugG25n+/IEm5/7Fq5xYnYb/BndALX0SHRkG4rDQLpkBLmWqCQ6BMR4k8OdnBO9pDCHSPg6mUtCBhkFSvqaFYqKSOF7Ds9uGua+JtojdkZjptEF3kNFE86CMBGwrpItb91lYQbrUPv6ovCkbJ3qDX9RKsWpe9pvdkUfVk8fSVrcuYGfqtdZVk9QxuWSfd2aACROKEcTd7A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9377.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(52116005)(1800799015)(7416005)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UQ7hZ874SDWOkZTodL9VEQ8/SMODlVTXTtEGFRf6Q3RGR0+xa0qKd/6/J89vVM/E3NYpKe+NCcvqeCX+5bscOopXwETgGlWJ38p7QMt1EkNwxk8DKWiuTvvEbN9fS4AgyuoD/HgjQwaxax7j9PXIkBVTvdACxg3JpRD+q2WcFowMdarNw9fJ0K0zgiegwMMKFu91geh4WrRpOm3HG29A+E6lpgmXxrE5boGcrveTKLiYo7Ye+W0OB7Mko6lhk23oV2YtBurR7siToTtyaXNFCjgHRYuZ34HpmnJC69/xXfc4ut454XO6TL316oOy9Jc72HDhomIGDrGmSWeyA5U8wv0aPSIn3xHBWjMbo0YgS5cGkK4UXnUhm4kxh9OARHmlJmUZESIri02cGkw6d49pHM7wIoHX7OFoBRlAqJMX52cX05rani2nFTbFo4uRHtz+lvUe7dignClRnphqWyOqYvBCmHQ+OZLZS9DplL8AE1M0B6uL45Mj00prEJgcE92DfwI1Ouh3+RxnS3TdoeMbvXXylLLfQThyYsuuTK/qgc0xJiayXWPVBf6sxP0DghxzxgZLwxHhuiIjnkbjbzD8YLBrxs6RdqzOeS0fuvOk8y5SPjufoFkvieK1miiaMMbAOPTtcnbD/0flM3e+72WmPY+WwFFJ7ujikQBn81Nqc97yZj7/3LV3ekfVHPJqLJaT2wuL+6xo9jqWSlbzp99mtI9XKiHTrA27zzw6HWCjkXSO0JasakxurX84oILudBcN2HhZZWAFP/3ghFOKsSol4qcqqU3MXz3hkjC+ZXZSwSh5C1X6Nh0Imti0scTfjgseTHNiIK3iyZPGhY4R69MMlwITDjODBxCLnO2sMj3LsbJ9T0mqVCm7BykLJXEzb6WgCifOhysmleOq/wRPHuQr+yNyJQ0rDyCOw8PXdWbZB7O+ofsJTHJJ7QkE/e3NMG0xWyMjmK6xbp5HBhsNrVmvrN9sxWnK1g5EKQPvnVSHTc2vmhywnC5hHN1uvE4wR8KgvGUA/SIOlJClZhcsXDaKzwr7knkQX8B/xzmXZwyFroFw8CrOS8PSM/XJRNRiVVBCm2hUSTKhRuigDnNqAEUN+zuqiBvs+H3EXocMylyI1TZuWFJMRQQsPWZJP7hVN6lpPgmGJAPhpP9uVvgeINr/qX89MTKHTHCHQV2urfclbBk/P2Ud4mvu/1Eq1MeLlR/E9ZzHFa6mjDDrT2k6jaH9CvA3LOKJlZjF12vUsizj0m6IWOQVcO7OHQnfTSBXBWE7U9gNPNbEsC2arDwaK6dakvm7wVsf6O5hX0uGrFfbvb2a1YHk12Wxc5anNzhC580itCsql+qUBfQgsy+pVjlLXvMJViBCeNIV77CiHQvJJqqLgRs9l6lgZHgL/s1j6u03gQrJqOUB6Mzprr+j/sGOr+G+PMBHBK7Rnok8Y+jO034tLgOaYMLoRrzSw/gBOgUu+BXG3D0FBeHNhlkQT5us4iuxpT+IvogROT423VrzgQwepLUPNN3zfo2Tq1BgjzDk6qQFQEI7jZr8AuCfa4kVlkptfFCHKkAEoGU7Cod9jFxYZdBTOKjm6giPt5j7Bs2B X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27b31cc0-3d9f-49b6-c46a-08dc41a6e231 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9377.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2024 08:40:19.7044 (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: YGhXU26+X2IOfWS0VRJivYBmTbs6nqsyX7L7dNueO3DfpWLjuiGVPRI9OyQ2mkt3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7035 Support pca9451a on imx93-11x11-evk. Signed-off-by: Joy Zou --- .../boot/dts/freescale/imx93-11x11-evk.dts | 112 ++++++++++++++++++ 1 file changed, 112 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..6cb5b7d745bf 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -183,6 +183,105 @@ &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"; + + 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 = <650000>; + regulator-max-microvolt = <2237500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck2: BUCK2 { + regulator-name = "BUCK2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck4: BUCK4{ + regulator-name = "BUCK4"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5: BUCK5{ + regulator-name = "BUCK5"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck6: BUCK6 { + regulator-name = "BUCK6"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: LDO1 { + regulator-name = "LDO1"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4: LDO4 { + regulator-name = "LDO4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + 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; + }; + }; + }; + + 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>; + }; + +}; + &iomuxc { pinctrl_eqos: eqosgrp { fsl,pins = < @@ -239,6 +338,19 @@ MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B 0x31e }; /* need to config the SION for data and cmd pad, refer to ERR052021 */ + 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 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe