Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp174608lqb; Tue, 28 May 2024 12:03:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGVpJ6vMs4N4Vp8UDGB0AfN67fX+4ioUI7jUIsUHizYj2sBc4yqnfEuCAKhFimiibs8Y/OgwdAfggRx6Jy3PtC0ion5cZd1qLE0vQhVw== X-Google-Smtp-Source: AGHT+IHHyTL5N386Wi4nIXGT3w7lFF2udtf9ZclCtldygTbvXhSbi6ikYC0qQibzHGKlLemHisTo X-Received: by 2002:a9d:7589:0:b0:6f0:47a2:c1ab with SMTP id 46e09a7af769-6f8d0a74b07mr15067668a34.16.1716923018574; Tue, 28 May 2024 12:03:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716923018; cv=pass; d=google.com; s=arc-20160816; b=phgn/7b2hxmi+9ppIje5WGIhrpUFmcbkHpMhNwjNKtWXpb+tyKI7BgJwCMmkdvgi/p RFH33/nnU++nCQdogNSrxnWTVbC20IfU3Il0iDhwSDAo1gxc4hFwbRFdb+gOi8KlyjrQ 9YjGEoD09dF2lF38qQ/mEKEyTxhFNLQmaIaxNh7cPBpYf/lTnDQCC3AU3vh08g3WsyGz 7hgXEGbLx0q6FZReCaSGf1DoXvOxtIQhaa0H9bV/y6OiHfDUD3VvKL/iyge3mlSuGdmE OAsTl4lSHGiaqs+/8RC/3fnS6M+u/hNEX+njc0EVuQybxGmwtUG8hwcgDLJr6HtbgtK6 zlDA== 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=Il3E1ajLwfGJwQZ6aAJ5ARoROVHgO9/s+KOO/8zQO7g=; fh=v/xtfUDEWJJx+wiyahf607OdXEHi4x4+5tiD0hUrVUo=; b=p93ujM3BEZnG8VTEWT6IgAnEhd5xEnL6iRIk3TWChdDcba8UWQ+mTuMISsHRPqHqGJ fciqXwnts7LLAufroL/7mNQSIe1ut4h+m6EnVEPQ2utByfxRduB23lkydKC5OeXZhBta 8pBpO/rRqKKGpARxXgukndyhruDADBnVt0+3cwt9p4ikoXnWWXF13Fdrbgs7TNmNSYye wKH+2IIvvz+KMC0WKpkPwH49cCCgt6neQJRVUX9RNGBOefK59W9dhxarin/qqWAhc0Qd 4dDYQcMy2s2ioW8Hb3545/eTHn1kzGfywbTM68ZdFnU3zdl5lWWeouHsI0lXDX3dUFdk tvnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sc5vGbNd; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-192897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192897-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ada2fe7eead31-48b92c37e1asi476371137.270.2024.05.28.12.03.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 12:03:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sc5vGbNd; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-192897-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192897-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 44EDC1C23318 for ; Tue, 28 May 2024 19:03:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A8A5171E5E; Tue, 28 May 2024 19:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sc5vGbNd" 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 C115744C8C; Tue, 28 May 2024 19:03: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=1716923010; cv=none; b=QHyBizVkCEjhjfNQREp3QaHWngW4OA/Sn9pJV+XJ8hFk0h58FsC+JNsqGmWKvqqfz7CupQRrMTIYqpGbgXyAjxWDdCyZZhde1fpjToMLA7N81BYLka+bCwOtaMlnkSen9zPgTw7aqeeCKQeEp+JWERUtHqX6k4KaftP8IEXQq6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716923010; c=relaxed/simple; bh=h+2v1Uu8sBVsE0sSUT/TQIKV/8xuYS/8QCvqmlBwVeE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jJJr197Ql+tH26cw9DwVBXwaWv+L8+LwZ91VV4jDEGhrz2ddHZZOQ5gL9XXadNWATsWs29mlxP0qU3HN9E6zHCGsmQaoLYWz+9oQJ01HAyEr0PsY+1Msj1YaIjR4l8jwr7oitTV7m2Bi8zOuRqyBuwZsp6QO6zjdv+oreQ7qu4Q= 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=sc5vGbNd; 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 D583EA27; Tue, 28 May 2024 21:03:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1716923004; bh=h+2v1Uu8sBVsE0sSUT/TQIKV/8xuYS/8QCvqmlBwVeE=; h=From:To:Cc:Subject:Date:From; b=sc5vGbNdoyU8CSQ7Hv2ZxhwQWJe7uSQc41rrkg3d5sPAj6qoEN80X2rCniDNUf07u as4qoC6VEuRmxjk95qDKDFX1XPuim06eUfOAljfBIaE2q3tZLD+wiuZFJjne0sVmJW OuEciPw/arJu2a/tQZVD0E4IS7I+vFFj0VKS18Tc= From: Laurent Pinchart To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org Cc: Alexandru Ardelean , Bartosz Golaszewski , Conor Dooley , Krzysztof Kozlowski , Lee Jones , Linus Walleij , Rob Herring , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH v2 0/4] ADP5585 GPIO expander, PWM and keypad controller support Date: Tue, 28 May 2024 22:03:10 +0300 Message-ID: <20240528190315.3865-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.44.1 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. All review comments from v1 have been taken into account as far as I can tell. The most notable changes are in the DT binding that now merge all functions in a single node, and the corresponding changes to the drivers. 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 | 107 ++++++++ .../devicetree/bindings/trivial-devices.yaml | 4 - MAINTAINERS | 11 + drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-adp5585.c | 232 ++++++++++++++++++ drivers/mfd/Kconfig | 11 + drivers/mfd/Makefile | 1 + drivers/mfd/adp5585.c | 200 +++++++++++++++ drivers/pwm/Kconfig | 7 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-adp5585.c | 187 ++++++++++++++ include/linux/mfd/adp5585.h | 127 ++++++++++ 13 files changed, 892 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