From patchwork Tue Jul 16 19:28:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13734837 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 874DFC3DA59 for ; Tue, 16 Jul 2024 19:29:35 +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:Cc:To: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=k8iJ5HVR3qGBzQjwY63jJL/6+UKP84QQl6mvj1APIPM=; b=xu2I1p6M6IjOcB8QYcAjtG8Sak rgFjiY4eHSlWhtbmw9Lgvle/ih1RmyP2yWXoHqfaekYX26aU9CjaKdCiWPEVo/B7ZOZWlu4g3TMS/ +EUoIjPWGXFhs5vWU3waItaCp08m5ivbiuc7eGYpL8YlpRymDiFuQ2GO7OA+CMCINwOGHljPB0TwH 2zX65kCTpWEBEiSGckSbe92X6q8WxXIjJW4endxFy8lDmQL7bMCvFzlftRKD2E6m+U819DDAk2B+4 5arTN6CPVq+XanMdgIXL8xMLXMUanikzBQzBjXRKRigA6uDM31L82Q6qT56IyqMCdHe1MsFbeEfWa Xtrx3ktA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnrW-0000000BW0H-47GN; Tue, 16 Jul 2024 19:29:23 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTnrB-0000000BVsk-3qRY for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2024 19:29:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GOEePrFnniGVK96BFa6xIK7IFxIT+B+fC5hkoPI5Aj5T/WXi4FDPRPej3EfsDzkEiQDPrfGRzEP1xpsu8Z9jxkT+StIfJKsvKChEDvQBuSLiO3iMfAeb5P0JeRpvj5aiILhwaq/Zs2ep7g4Z1056lfJ58JlzdyAl5XneH3dob1G/ohBzw6UWw/xAMg6l5yR2cVoTFFkRoCEbuAW2FDtwuA/0jkHmrygYCxx4D4weN3VFPfXQ/S4MtzNp72+m6OaJN/Xvy1ddoXAaquUSTJcWcP2UTt/ijtxNkjYxSuuFuGqSaj8IVW6a+Em97+BVkmg64P2wcl8uUZgmHn+lcHXIXw== 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=k8iJ5HVR3qGBzQjwY63jJL/6+UKP84QQl6mvj1APIPM=; b=Qo+PKImyJCf4BHt3jeX+A/3GgZFo39R7XWDuw2BHHsWAbApVeQSxu8AZsU6EJmVfV3WuIVcqpirDU/f+OSSHlfYMt/CD2FhadaKchB9FASId51qqrA8e5+lMSdcJ+nrDXq7bUMIQ+Dx57Yrp7j4Jh1hbzz0ic6Xv1hRk1dfUzzpqP+iohKisW1D5zmu1cATfut7A/bdRqMHesju09KA5ZUDbFUqeygtWR91dT88Q2PnS16VYLVzRSLW/y8ifwBxf3hLA83KHQSJeN0jWrBMgKBoe+eJu7fy5D7vyRPTUTJrQVxKYMfoDuFkB7pjRUyIynm2i/Wf/CKC2T0DBl3adYg== 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=k8iJ5HVR3qGBzQjwY63jJL/6+UKP84QQl6mvj1APIPM=; b=jywizMe/wju2fzfQ/WIzO2QdDimM2xGc/qf/oqM6yp0JHT3+4NusUmpvBNgNo/HdYovcOv47dEd4EZ+TRM0hP4ucQC9YEx61Xw716ETUKTOwW5g2YqVnetHsTeSo9+rD2di8QwPfOwiSrSUIhrCTDNZnMnECE7Scc0x/zhPZTvo= 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 VE1PR04MB7325.eurprd04.prod.outlook.com (2603:10a6:800:1af::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.14; Tue, 16 Jul 2024 19:28:49 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.7762.027; Tue, 16 Jul 2024 19:28:49 +0000 From: Frank Li Subject: [PATCH 0/6] mfd: add adp5585 gpio and pwm support Date: Tue, 16 Jul 2024 15:28:23 -0400 Message-Id: <20240716-adi-v1-0-79c0122986e7@nxp.com> X-B4-Tracking: v=1; b=H4sIANfJlmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDc0NT3cSUTF1Dw7Q0oxTjFGPT1GQloMqCotS0zAqwKdGxtbUAEsvjZFU AAAA= To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Bartosz Golaszewski , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Frank Li , Haibo Chen , Jun Li , Clark Wang , Jindong Yue X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1721158123; l=1596; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=slLxFF2JOl37km2H6Nx2fTOVbENkujt1PPU/hWLYp44=; b=F2cZGSyjNL6CDrjikbEVCCdxw5YlykqnGSqQJVeBxioLtOGazDIqzp2bmZWsaqrlTN0oYPh9h WAPwhMT6ZFzCCU/E5rnmi8Iha9mnwQd/SN6oDWFXUI/6AY2dYBMLOTU X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0148.namprd03.prod.outlook.com (2603:10b6:a03:33c::33) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VE1PR04MB7325:EE_ X-MS-Office365-Filtering-Correlation-Id: 73368fad-4a77-4832-aa5c-08dca5cd846b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|52116014|7416014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?NmJpNG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XVrCx2iF/cPEJ/fJ2Ko?= =?utf-8?q?PmSQfwIdskRxnkH+HLkKuTb88oaJa+XDhejyyEr9TC2zMRDQkQ/bpS+YHXKf62aDD?= =?utf-8?q?33CUmsY1QMgNbjZiZeqtZ1k/lHU3tkOGGt/1I616c8o17O+IMeZZKzMWS8oe0uztG?= =?utf-8?q?xd9j1wicJiet/0iAkmuou7Tev5OAFKbTyVbdg7t5mhqXiksKU5zSM6cuzqvu1KTRa?= =?utf-8?q?HrltmMxehOahT0ekJqK5dBekbdhwvEO29slN7ab4flqufshSCav0QibOJPCBnqh17?= =?utf-8?q?URq9bOB4xU3nAbC0pqtWRXlbX5/O8hehF7Nr7qfg5JQYthF/ZPFYi2GAk8YVwcqWA?= =?utf-8?q?TZ/KHpMMgMPWxunquudMHUNwBuhnhCCHPhbLmzXK/l/NqCP/oqgSyYpeAXPbKMUgL?= =?utf-8?q?690xR5oT+/4uFAHSGln5nveg9hC7eDUvGYBLfwx/o3w0Tp/0AhU8lt0590AHTEUuw?= =?utf-8?q?zBSqAftm6rx751m0wdmjn9v+9zyldsjPSqHnE2gRHNR1ZYyl2fpfGHI=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)(1800799024)(366016)(376014)(52116014)(7416014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qbFtkngdRUvJdXZ0LoPYBhIemv0h?= =?utf-8?q?ziAj5iNgK97SkVxFcW5ZgHSHJNQmRLOXi/Np8TLTMWtc5WCkRXHIojEVeUc1VgH4K?= =?utf-8?q?920fQdfa7RfIl1x719DFb0LtQ1oKtyDakSfN+vFW9B9/Zg5Cap/9BoxX4svyjqYLa?= =?utf-8?q?nst7dBxb7Y2iaMak1k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1hIgxP02/k6WRuceG2xYQZWQtnarw/vM1GpzgwgN4mfjhxz4iaPFZG?= =?utf-8?q?4NLjOfqP6vLGKT773cp8bzL2WBWulX8ahSGvDCJJd2RqUEoPpGvaTelWwaHSt7SHM?= =?utf-8?q?TGUHAabRZ4TEbWdJwA2X49EikElTmTYK/Tj+pALO4OBnjk/kmbPl5FcO6dWlCe308?= =?utf-8?q?sfIBC9mWfv2Wf6HstZxYTsE1ATq9gAX7xXxJqaliAK9LtaLAD/X3RSKYuyufALciR?= =?utf-8?q?iBk/noeExZ1GlVrqF6gKkqvmJ/Fj/RIm2EaOHXOAJcPFnWcPVKpoxzAEziSBrIuE6?= =?utf-8?q?+UyKJsGFD6rF9MofokpwqbGcS+IidJcJYQVed0VXp1gmhTmTPzh3qVenTuvxYwtLm?= =?utf-8?q?7pq/MIpzS0dR8YHOOEcIyFTykSTsa6tGBKrAMc7kUFK1vCWSEjJU9Js1qThisk8d3?= =?utf-8?q?akOlJmJYQYdlIYrcGnI/1QO7p+VkVpQHGz9cLOw4ldKpMYFCIfL6hP0A=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73368fad-4a77-4832-aa5c-08dca5cd846b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2024 19:28:48.9436 (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: MCf8uId5oXIp+Fg6Dv45uN/Tx6cI0RHQbgdOj5VjK+Xvd8YPiOlFYCQiJp5L7RveYEEdK4uOA0f70q15Vvt+/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7325 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240716_122902_226202_963D6B08 X-CRM114-Status: UNSURE ( 9.11 ) 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 adp5585 is totally difference adp5588, which in drivers/input/keyboard/adp5588-keys.c. So create new driver for it. Signed-off-by: Frank Li --- Clark Wang (1): pwm: adp5585: add adp5585 PWM support Frank Li (3): dt-bindings: mfd: Add i2c device adi5585 arm64: dts: imx93-11x11-evk: add adi,adp5585 gpio and pwm arm64: dts: imx95-19x19-evk: add i2c2 and adi,adp5585 Haibo Chen (2): mfd: adp5585: add ADI adp5585 core support gpio: adp5585-gpio: add adp5585-gpio support .../devicetree/bindings/mfd/adi,adp5585.yaml | 83 ++++++++ arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 16 ++ arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 30 +++ drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-adp5585.c | 184 ++++++++++++++++++ drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile | 1 + drivers/mfd/adp5585.c | 134 +++++++++++++ drivers/pwm/Kconfig | 8 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-adp5585.c | 215 +++++++++++++++++++++ include/linux/mfd/adp5585.h | 100 ++++++++++ 13 files changed, 789 insertions(+) --- base-commit: 91e3b24eb7d297d9d99030800ed96944b8652eaf change-id: 20240715-adi-11ff2d3d35ec Best regards, --- Frank Li