From patchwork Tue Jul 16 19:28:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 1961248 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=N9E9gtSZ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=linux-pwm+bounces-2831-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WNpzW1ssyz1xrK for ; Wed, 17 Jul 2024 05:29:27 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 97C3B2820CE for ; Tue, 16 Jul 2024 19:29:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A6971A08DE; Tue, 16 Jul 2024 19:28:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="N9E9gtSZ" X-Original-To: linux-pwm@vger.kernel.org Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013021.outbound.protection.outlook.com [52.101.67.21]) (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 EA7F51A08AD; Tue, 16 Jul 2024 19:28:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.21 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158139; cv=fail; b=YM3ryDzC2ZcmxFqCO/eMIfr0/4wAyOAf3GdWvKNZAoWWSIaKwRyBnNsIXTjUTVnjfcSPtkr/TX1hWkzqV1J4gmE0OVmpZufq/TrZrH4+Ubw8huJXUr2jsIl0t54lUVTmHK+tl+J8lrnClsU3jefNaooVnnUiwz83LuoVsqLDT9g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721158139; c=relaxed/simple; bh=thMYuw3K3tfwqHKNcFWNXXaV+D1MTytBhVgxdAZuLig=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=cvxJ6nIBs1+V3ACxRWfKmyXZIZoCJApqHdFwNpzo7cQPl/dOC2UKzMlUp4GjwyiGBZWFW5zcjwfAc1T/eXPQ912/qyz78HKENAqpkLibFzhcL/Iqi3k5gHnnClN2g//ta3WNUb4utBZiYFIV9ojwC/gKVkp7+vuLXHmmSVvnh+c= 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=N9E9gtSZ; arc=fail smtp.client-ip=52.101.67.21 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XCfoWHzCT6M0ssfNl4yRJsIjciBwztvsYoBL0XqiHyAqvw/LPzR3G7rk8LiGydqK/vBaqbJ092OSxHY9JqikDKAb8QhmajQ+Fz3NHrwGKihks2Ge3afYWBSHCs/TQA508YFANbCzRQd4mAOiMnAAjJ4/gROxxNDbY3y3uTCa5BVtCh/4CQWxcGymuFWydHjPPsRcEpkWImyyS6nv7HgVvTO791yvjc9HSBhroka8ulp3TxDlab7OVZg+OCrv64Jm4a/EImFLWjqfm8zOHmzkpVlRTgXT10CCxURMEzCi7K52RWdNwQTJIvd1VKvSssML8nuQIvNeNHn5rEVvS7e4vA== 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=pOgSjsyJI4fpqnvbkGA1XIIeG3ehGHzyIXPXA2ivp7w=; b=EkB1MoOuZ9qbkoCnmVU3Cd9ugaHIYi7ZAS7dRmZJkvRN1AznUlENQpLt5d3Mp1dYhBEbb7XzCvlwpo6mVbqkB5YI5XiJjCVzsW/POLMQLokuAjN6rfOzDX3VEIcaqxelDdIVwC74OZ8ZsKoazrVJL7B7LHfVYsvz28DNG+MEznakAz1vFKI3zj9SDJL49XG5ANjXpAsmvlgrKC93KcXLrSSbDi+IXner/v+56STbUVV44/xjsB7EM0b7A398UkOWMGnhkw0LR/GusxwL/e6SRWjP+LQdJoiqqP9qxaSMBpNkKeGTNI32kBO1e/kutzXE6f7e6Darb4FUT6xQpOz5tA== 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=pOgSjsyJI4fpqnvbkGA1XIIeG3ehGHzyIXPXA2ivp7w=; b=N9E9gtSZIF0cZGxT8rpjlyf+w20tdqnZ10o6U/GVtw2KJwlNVy45UvHn5ZPbW1v00f9pSzVo1qogiKx9Mi4OlFsOPs0LLjJXOOvPnvWOiE067DI8dJt0+6CBqmDkOAULBfLYua00X0RqERW9Vqiw8/v/5Ul4uhMct5dIlTDlVS4= 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:53 +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:53 +0000 From: Frank Li Date: Tue, 16 Jul 2024 15:28:24 -0400 Subject: [PATCH 1/6] dt-bindings: mfd: Add i2c device adi5585 Message-Id: <20240716-adi-v1-1-79c0122986e7@nxp.com> References: <20240716-adi-v1-0-79c0122986e7@nxp.com> In-Reply-To: <20240716-adi-v1-0-79c0122986e7@nxp.com> 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 X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1721158123; l=2172; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=thMYuw3K3tfwqHKNcFWNXXaV+D1MTytBhVgxdAZuLig=; b=Sv+SmKSA8iSBcTYYYn4nHqs5dE4ZNuJZg0rQIHNnDh/nk5qGvWx7lk1WEvps2Zj8YOlbSPOSC 1S/1aQ/Xs90CHvgoubSb+XoQS7CdO258O6SYCxiX4gCpolfyIM15gxn 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) Precedence: bulk X-Mailing-List: linux-pwm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VE1PR04MB7325:EE_ X-MS-Office365-Filtering-Correlation-Id: b2e23c07-ce36-492d-124e-08dca5cd871d 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?erKp4w17M4+9JbC6ayOW4zgIBgPnYkT?= =?utf-8?q?7tKnE32IRMSG9esOvRYrnKf7DzMQRW5R5w56ihd18jLVGAFRiNlowD2yj5Okwv5rc?= =?utf-8?q?AALmC9O4DlSmKif8+VuAEqfdvAhJqBiMaIGlqkmTUZcBIidgzRanBE+VhNFdbci/m?= =?utf-8?q?SRmmKQ/njrEG/mSWKQfmzWD2+qKyWo/+q4F0GrKtAZaXRfUqnc8sq1EJrF1QP3HsJ?= =?utf-8?q?SHLUnQbDG0Aw+TorMEHXi174oi1UYK8wGelJQI+RhmIvcmp71ZkUvTNO0ueugLS/2?= =?utf-8?q?PEziWZs3EG6KemJGC0E+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kHValbcBG1Kh+4lOpWrV51SMKESV/ve9m9rKiGXX7mKTDH2gjkQSi6rMXzcjCtx?= =?utf-8?q?XwWDrUgb5k0Hu0o1TA4dO0ZgGiOwnwWwV8fmhQB0CVA+hYxt/4ys9sS5mQOL4c7Kf?= =?utf-8?q?kMfW4sFgEoG+Ga2iNO8BRaQPyGMP9g2dcJIzEqHwZXzJa1qxKSit8Mkfs/9tj4Jqf?= =?utf-8?q?ynNB6z1z8rmq?= 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?aO59fo2ZJDcoY4gCoPZa4OjU1B2G?= =?utf-8?q?WhfNubdX+qIMHZPHxbHUewsm3w9MS39d8ocP+yGtO0D4UVUO1K02E7IlBm1tIhe3k?= =?utf-8?q?Uw2Qto3WtzEMCwD4mHGU0um+SE1bR6SfArlmHTWvhIYGhOz2CG0zWcBncZlHxgyUn?= =?utf-8?q?dMaU935h6AbJsSzGSFYh5M47Vt2LhyoJipQMO4jpF5beVkWkJoIa1RLn1H6FCXHjH?= =?utf-8?q?rJ4SRO6x60FW2P/asom2TZpwrihd7Kly7qwDIDaZ15g9XUqMEA5B/ji8/tpUGbEku?= =?utf-8?q?Iqpobw0mur4QXfcR2uw+qbL0hJE5QEnUVVTp7IaJoH95drHU78CxdCoaV79DbPoTC?= =?utf-8?q?iFv7jKkSYc4/Cydh0b0sGtPseWESbeEpBc7zXhrqTaaVWK0i/QwhTxDic4s5ru5ZY?= =?utf-8?q?FsJaIR289uCCdQ5Lfzk3XBryouPO1lhlEvvPjhqrmKvP6Krpzl8pkk8cb0RqpdOYo?= =?utf-8?q?1DM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p1aNIr4lJp92240/gSyQwuZxS3ihbZW1cBPN4CV5+zGBnadHIrq/qLDubU?= =?utf-8?q?QGx4DMlxWDlvkTEAREyjOJJbL1DUZ2TTQoucHsIQccIgJ/PTRT4Ixqio9Y7wXNW19?= =?utf-8?q?T1Hu6AQlsc4wPzg2WjtCo49eI+vy6kgeR4tb0kHX5in9iZWKySs4q3gHUpxfGeE8H?= =?utf-8?q?v31oY+NAb0cp?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2e23c07-ce36-492d-124e-08dca5cd871d 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:53.4262 (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: 0waefRCDRqaPzMGx3U7F0aJFRK6xlT3dgCVQeDBkFrY0oCVG07ApQ5hPmolrpG6eHqgCQwNujJAuTQMDoWqPkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7325 Add adi5585, which provide gpio, pwm and keypad controller. Signed-off-by: Frank Li --- .../devicetree/bindings/mfd/adi,adp5585.yaml | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml new file mode 100644 index 0000000000000..03c4760242ddd --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/adi,adp5585.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADI adp5585 GPIO, PWM, keypad controller + +maintainers: + - Frank Li + +description: + adp5585 is a multifunctional device that can provide GPIO, PWM and keypad. + +properties: + compatible: + const: adi,adp5585 + + reg: + items: + description: I2C device address. + + gpio: + type: object + properties: + compatible: + const: adp5585-gpio + + gpio-controller: true + + "#gpio-cells": + const: 2 + + required: + - compatible + - gpio-controller + - "#gpio-cells" + + additionalProperties: false + + pwm: + $ref: /schemas/pwm/pwm.yaml + properties: + compatible: + const: adp5585-pwm + + "#pwm-cells": + const: 3 + + required: + - compatible + - "#pwm-cells" + + unevaluatedProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + mfd@34 { + compatible = "adi,adp5585"; + reg = <0x34>; + + gpio { + compatible = "adp5585-gpio"; + gpio-controller; + #gpio-cells = <2>; + }; + + pwm { + compatible = "adp5585-pwm"; + #pwm-cells = <3>; + }; + }; + };