Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp506642lqj; Sun, 2 Jun 2024 08:25:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNZRbUsENAKh4t4NltH5Ii4ETqaCpWy/3pdZHfGpnrxK0TMN7Qd7W5wJtez5NN1W/XbXeI0WKBRuD87GfyXDx94So6G9u1AM/KyYLn+g== X-Google-Smtp-Source: AGHT+IFkZZz3x1EPthLVZEa//bZwhZVjncUha2yO/nt8+dgWrv+lrAMn7lqHiIeatI0kG6OWdwWy X-Received: by 2002:a17:90a:1fc4:b0:2ae:7f27:82cd with SMTP id 98e67ed59e1d1-2c1dc569062mr5726606a91.7.1717341901381; Sun, 02 Jun 2024 08:25:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717341901; cv=pass; d=google.com; s=arc-20160816; b=nYl9whtvAK2zjjWezjTMDbTbsDH3ZjV7/RW9KWDw13h5okgYF/qmA64aXWstF5xy/Y 7mG9xEeHEBoxBNvS+V00c7i2gpR0xM+2qCcQ7SAHVoe2kI9GjdRs0Qpua0ALEwJr9DGS gJtU4ZFJf8LzlN1jccIE7Ynquo9NJawzofB9g661DlM8b6SSTd7hIazZJeM+D/m4lFJF vayYqovwp0A434Q2q7GSzc41SoLfClvBxVbhoBdMfyo4amWT119HyJ+gxIpNL49rWaEA 1N7objH2GPb63ihha+Ijva8+WGfWpiu803wJx6wd3MPLUiAM1caM06Wk5BF/kc90DaSG wznw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=mMTyxN6d5RwyNiSOERs3xvpkjsIMhUq4f7ZvLKq9gMk=; fh=Xcda2IJhsdyTLR+Lg6bGjpjlHo+ZvIDJiUHbVNcOU7U=; b=nwfwZBeqq8sW/8bmtYDt+qb+fKoEGdidQE/K///b4KOp5R86w3kHcHbhATsQ6/TN/q YiZEthdnY5zMBA7c4wYDoVibTs0nYwhXvyNM6eu+lk+HzVh2N820vmJxNmQPWWQbPxu2 ZllXC8gMEowYVKala1/X+tHvrRJAiyLSxOmJoxkK0y8I81YrHpZFGFDVYL5ThJP7lNNb pbmwIeNW1M1OJB7/AyNGbWGzKmkhCkVsZPua1vYao75yG8gJy99VXOqIdlew74SWNCnL /+r4nBCTDSuFpuvfB6NwCJcsHrhdX+GZdbPc809IpPu7L59EfhOIf0OvPa9w8z4bImln 3HTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WbeMhCih; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-198316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198316-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c27a8becsi5116666a91.22.2024.06.02.08.25.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 08:25:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WbeMhCih; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-198316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198316-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4315EB216FD for ; Sun, 2 Jun 2024 15:24:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F09EC433C9; Sun, 2 Jun 2024 15:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="WbeMhCih" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 2570C43AAB; Sun, 2 Jun 2024 15:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717341871; cv=none; b=KINJIxqOP3H5RbW8iTH/O0CFUfQ03Pn5BZmZBfWWmY1/WO2Q0KcKV0kkRJGs0HtRGealG3aumzZM1GVSxHpF6sUcNPnmxEEong2OxOzyNMuyYkeOuzzBRpUWe2AKxmYjYLLoGg7zPg+3ZJb9mvkhAS144ddct4R56aTeUS6zGzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717341871; c=relaxed/simple; bh=B4v8dd6sGN66YL+OYBa6jbQNYmWGri5yn2X5L1dYr10=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s1tZ9pHVgoxd6+Cf9jwzwwCOKeoCxE1uYpfqrhScv7IvX3ppq4OYhPR5xyq16Kj5K1DOZ2jeVzwH0jY/VoIpkKcqj34Bu1osU6S+wD+jebW78Xqu1jviiDBP1HilD3DtXL0fLgytcPrKlbDnajqLQy7js11lvsMDNyHFB1A/P3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=WbeMhCih; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8BB3939F; Sun, 2 Jun 2024 17:24:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1717341860; bh=B4v8dd6sGN66YL+OYBa6jbQNYmWGri5yn2X5L1dYr10=; h=From:To:Cc:Subject:Date:From; b=WbeMhCihZdRyrbNF3Vmz4Z5eha1Am92aL8k9MJySW3u0RFqHdgVa8UEehUEGP1Mwl zaBZfCS3p37qPQBCC+C5y6F+77lj0ECT3pPU+xIfPWgt00VGj0+gCAO246ZGQP7XM0 vHFr1q7CZBHjeM2M7V62BpnSLepPrDNDdCDLxXHA= From: Laurent Pinchart To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org Cc: Bartosz Golaszewski , Conor Dooley , Krzysztof Kozlowski , Lee Jones , Linus Walleij , Rob Herring , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH v3 0/4] ADP5585 GPIO expander, PWM and keypad controller support Date: Sun, 2 Jun 2024 18:24:08 +0300 Message-ID: <20240602152412.29136-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.44.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, This patch series introduces support for the Analog Devices ADP5585, a GPIO expander, PWM and keyboard controller. It models the chip as an MFD device, and includes DT bindings (1/4), an MFD driver (2/4) and drivers for the GPIO (3/4) and PWM (4/4) functions. Support for the keypad controller is left out, as I have no means to test it at the moment. The chip also includes a tiny reset controller, as well as a 3-bit input programmable logic block, which I haven't tried to support (and also have no means to test). The driver is based on an initial version from the NXP BSP kernel, then extensively and nearly completely rewritten, with added DT bindings. I have nonetheless retained original authorship. Clark, Haibo, if you would prefer not being credited and/or listed as authors, please let me know. Compared to v2, this version addresses lots of miscellaneous review comments. It also fixes a DT binding validation issue that sneaked in v2. What's the preferred way to merge such an MFD driver ? Should all patches go through the MFD tree (with the acks of the GPIO and PWM maintainers) ? Clark Wang (1): pwm: adp5585: Add Analog Devices ADP5585 support Haibo Chen (2): mfd: adp5585: Add Analog Devices ADP5585 core support gpio: adp5585: Add Analog Devices ADP5585 support Laurent Pinchart (1): dt-bindings: Add bindings for the Analog Devices ADP5585 .../devicetree/bindings/mfd/adi,adp5585.yaml | 90 +++++++ .../devicetree/bindings/trivial-devices.yaml | 4 - MAINTAINERS | 11 + drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-adp5585.c | 231 ++++++++++++++++++ drivers/mfd/Kconfig | 12 + drivers/mfd/Makefile | 1 + drivers/mfd/adp5585.c | 199 +++++++++++++++ drivers/pwm/Kconfig | 7 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-adp5585.c | 189 ++++++++++++++ include/linux/mfd/adp5585.h | 126 ++++++++++ 13 files changed, 875 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/adi,adp5585.yaml create mode 100644 drivers/gpio/gpio-adp5585.c create mode 100644 drivers/mfd/adp5585.c create mode 100644 drivers/pwm/pwm-adp5585.c create mode 100644 include/linux/mfd/adp5585.h base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 -- Regards, Laurent Pinchart