From patchwork Fri Dec 13 20:46:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13907853 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2057.outbound.protection.outlook.com [40.107.103.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 BDB7518B492 for ; Fri, 13 Dec 2024 20:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734122789; cv=fail; b=mEyAoFPDtneN+60IG8k4gdqj7mRVBIJYdkcM668Hj53ZszGFncyABGVCA9kEnltEiKxrnXHp1oLhlHSB7jKOknFcThWAuP19HHe4JKpzrhwCc3jPqTUazv7z1XljN8/mlAelBocN6GXQN9aIJiqsBWu4ts04Ib3yUn/EVBHwshI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734122789; c=relaxed/simple; bh=T2V6XTE0LmIYFEOlJnvQA12OzOuhMuJKz/3jUtmLk9w=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=bh9oUubkOPf/XCPd4NlEhDBSC9Hgr7Zs+Wd94/+tawT/ZURQUz8hZKK516BPPYkQ3QII8eGIFiTxVa2Sd4vUQ9rqaYNI/Nby06vwco73GJL0CmCimWButXZbIwDaDG/XtMG9jWyOzvIECllBKmQWNJJn55N3VVMrEQhI2t0Ui7k= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=PfAd8aIE; arc=fail smtp.client-ip=40.107.103.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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="PfAd8aIE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZiqNRXQSNU2YLScrfh/hp28KacwklrbEf201yaKX9Mc0qmaN2laFYRXIA0OJZDnQ0Ph5kvqBRA5JbzBbqYXuies0uoTWScyuvqaTQoCOcTLCzeSiij71jeRX/M30b0tgxK3p8daS8TnpbObSxZUi1pJZQv5KCdQU4wCfa1UP2XraWMjyoBDlRjcX7eSDZLliR3MDd3afVIO5Mvb9Ut74pw+WPQLZC9osQ75PSjH2UU228cqBvSePFT8S8VkU9tnJA2rhaUfejQzvrayBa8VsIRqidhYNBMhLYaNFFAGoOxmd8SuZlAdzBiTqwV9YH1pIHNeLo4gPldj68d5ebH+tqQ== 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=RmJaOxhwRJFx+OaM/6suI4BycWvktw34JgnSdHK7KvU=; b=gY7XIYmnS2tOZZ3plA6dJd09YytXtChQR0ZO/1c4uxRVJFqRCM+ewvJnNruEh8TThLW29PqdB3b5qFvUc5Be8ukesQyGE6JobMp09dW+xL2qqVCh+LpObx2Q7UcIBZyN6ApYZiPYmKvrT3h9+TyczT+ZsS/emP5fjKF8Kg4H9oOivW/nKOG5Fzpf/gGm4yA4R6pWomtzrETWladg3MZW4SdWRX1q02REv1K0W/skiV959OnsCUfzc8jhKKqwFpfHb1ujscpkzBm3uXSxnXUsWCP7fonLL/TrtzLt/fE2Phd4ifxBpGqe3MXrrh/Fi/Kt9kwE0LM43z0HJQHjZ/Y6OA== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RmJaOxhwRJFx+OaM/6suI4BycWvktw34JgnSdHK7KvU=; b=PfAd8aIEgVP3dNOsSDWXTmTgPyvY2OQ08Hu8bcH3yLf0HMuiIE9EoZRJ1HPy/YYyxkvRgoqoU/7fhhYnOfoTFYbvA6FgUdFAZe1/3ugGlHFP4kHw6nOdHIuqN85wOiZahSBEwwFU/NfD0lAeVRJqKGxLzbDA2v1eZ8misbTtKygtmN/7mJpTeAeR5eJX2eBBJTL4zcWg6NRhpgVZM16vzdAiev6Z4103CehJKEURtraud/YQzdSb7YohFu/BvSGn8R5IAuCGkIZJVDBtUF4X0RbD2ype9w+vq5Fn4w7LCzaKFLwDM3ta3XyKC9RoGwL4qy01vvZ8a+Ai8VhAdfpdwg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA2PR04MB10215.eurprd04.prod.outlook.com (2603:10a6:102:409::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.18; Fri, 13 Dec 2024 20:46:24 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.8251.008; Fri, 13 Dec 2024 20:46:24 +0000 From: Frank Li Date: Fri, 13 Dec 2024 15:46:08 -0500 Subject: [PATCH v3 1/2] regulator: dt-bindings: pca9450: Add nxp,pf9453 compatible string Message-Id: <20241213-pf9453-v3-1-5587c1693155@nxp.com> References: <20241213-pf9453-v3-0-5587c1693155@nxp.com> In-Reply-To: <20241213-pf9453-v3-0-5587c1693155@nxp.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joy Zou Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1734122778; l=2158; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=T2V6XTE0LmIYFEOlJnvQA12OzOuhMuJKz/3jUtmLk9w=; b=M1oK8G8DS858RMI0UuqN++98y3/4Puj4poEPDhw81z9fFWYOpd44gEuGFGOiFXn45M54tBmDV w4pYJtnDQgXAGGBHi9ypiK0LxLkQiuLmYxe7VfTnQxqEFjjTYQtLIwr X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0097.namprd03.prod.outlook.com (2603:10b6:a03:333::12) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|PA2PR04MB10215:EE_ X-MS-Office365-Filtering-Correlation-Id: bf3a79ea-6215-4755-dc15-08dd1bb73566 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?nuanBOkV4JCkyVzUiWnJe6PckwS3y8n?= =?utf-8?q?AbMsT/l3stW5iC0vhiiCCugDYQNclQ57DANZvOVLwGYnS+4dsu6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DXiS6LC8Tnxi7Xh03?= =?utf-8?q?KQvJv0DjYNmXDzeWEi68f06ODVNy+RWewgvAMWLG2WdrHVe9bE+h3G/ojjvM5kPwN?= =?utf-8?q?oh+jn9yZTnNDBU2GCwVPkWdNXBxPO33FvSfOOaMHZT4Fcdi9rt6UfzOiwKmECD0SK?= =?utf-8?q?XW8L46qe0jI8eJFN9ActodWKxpbKN8OOmDpeKYxsL7b12m9de3jp+QvAHKwm32dZ0?= =?utf-8?q?6/vG7cxiAXfhtrqi3q9PGIt8PON3qf3U9hm917j8OpmYPJIcNGeUsplqt1ZpBxEbx?= =?utf-8?q?waJ1KnlKC9K3isFUczGNyb05sHpd0+Ce9aeGlcXybMK+jMYOlm4SfMC2hdMJgyqIL?= =?utf-8?q?EJh/RsaAf4R/tGlpCRets0IMRC4XDlFxNlOvS1Lv/rnEcnw6LwTcK/bMBnuSRtsro?= =?utf-8?q?+Tn2BHdDWDeldUUdr9Jt5MfZ4puUJ5Vn/DIxkId0J4gK6olpYVgXzx8=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dNngXu9JcYjL0YKD2YLwYvwQi5nB?= =?utf-8?q?mSSbnoxi/XZp04E4Cch1kHxdxVWjY41KI9iNArjCJCWBkhhRulV/6xM6bAPrSaCdt?= =?utf-8?q?OQQHppay6r0p5dAKiBYwdAFtZtPGVdSCGDj+bpufgj1PIDEhQWj1coAwPY4CDQKU0?= =?utf-8?q?mQqYBTx8wm6A6GrwrXUAidE3PQazcpgxxD7fz+eMK1GN8JOToBbHC0uMFxgrSvxa2?= =?utf-8?q?YvtUaMUdp6AsT6NxNv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E+4MNS6HdcjGt8j1QlPct1dLJfHidvA?= =?utf-8?q?oLRpaHKr4yOAYpSaivzIjauZaThfVYBw9rTrisDf+2pXDaybOB2/Jjhb14mpA7p7+?= =?utf-8?q?VzU6L+vRzmxrjDerVmVqbCziEbiklGvthklYJyXk4djTVEKMQeuzDHiUu+L1K8tGd?= =?utf-8?q?Jv0tMpNOnMDMf5MwRtUlhHLcXphnC8m7PCmryXYjPO8iofD5RCtP3u9OLjDnr0fda?= =?utf-8?q?4hJfCWNj235R9l3TFO/fc8OXKPGAfZ5k22Zpl0TdSK7dpkoetNhGKe32FZy4YEU4H?= =?utf-8?q?vOnNheULcOJmTBjbpRarJbBRIArLPK4kjEoIRWb3YBkKIKbQtvPcgkueIzCG68sN9?= =?utf-8?q?GnPonEGVTso+GiyaAyWMwTj0PXms3xGz7K8dxYFGR+GiGYI6IVJvOv6tR/tHoq6gU?= =?utf-8?q?g4WrnmIEMLDu?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf3a79ea-6215-4755-dc15-08dd1bb73566 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2024 20:46:24.6338 (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: xAFLAEGyitMmLnWsEt3/4x+eAzJUyi4rTGDudfyd2Fxmtw80dU4Pe2AyeZLDrqXJv4w0Ru6nkTmx1t+0ZYoAog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10215 Add the compatible string "nxp,pf9453" for the PF9453 regulator. The PF9453 is similar to the PCA9460 but supports only LDO1, LDO2, LDO_SVNS, and BUCK[1-4]. Restrict LDO and BUCK numbers for nxp,pf9453 and keep the same restriction for other compatible strings. Signed-off-by: Frank Li Reviewed-by: Krzysztof Kozlowski --- change from v2 to v3 - LDO_SNVS to LDO-SNVS --- .../bindings/regulator/nxp,pca9450-regulator.yaml | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml index f8057bba747a5..a5466bece4cf7 100644 --- a/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml @@ -17,6 +17,9 @@ description: | Datasheet is available at https://www.nxp.com/docs/en/data-sheet/PCA9450DS.pdf + Support PF9453, Datasheet is available at + https://www.nxp.com/docs/en/data-sheet/PF9453_SDS.pdf + # The valid names for PCA9450 regulator nodes are: # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, # LDO1, LDO2, LDO3, LDO4, LDO5 @@ -29,6 +32,7 @@ properties: - nxp,pca9450b - nxp,pca9450c - nxp,pca9451a + - nxp,pf9453 reg: maxItems: 1 @@ -42,7 +46,7 @@ properties: list of regulators provided by this controller patternProperties: - "^LDO[1-5]$": + "^LDO([1-5]|-SNVS)$": type: object $ref: regulator.yaml# description: @@ -100,6 +104,24 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: nxp,pf9453 + then: + properties: + regulators: + patternProperties: + "^LDO[3-5]$": false + "^BUCK[5-6]$": false + else: + properties: + regulators: + properties: + LDO-SNVS: false + examples: - | #include