Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp88300lqp; Sat, 8 Jun 2024 07:17:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDOUK3dyOVbUSIfp8+RpEHJU/ahPppxKP+zOQtXRnXkHKHUD7m2R9GEp9B0IeKHoSZ5GU06PiSz8IDX+ESwbPkOFFzKvR2UldFwupvCQ== X-Google-Smtp-Source: AGHT+IFVGnthu4zK19bl36p6w+rypr3tNZpoUIedXDpcOMip1FCbqq8OtWoJFFsHCqiEZ2hT1CGT X-Received: by 2002:a0c:e38c:0:b0:6b0:5ad1:9f35 with SMTP id 6a1803df08f44-6b05ad19f9amr41805636d6.4.1717856236748; Sat, 08 Jun 2024 07:17:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717856236; cv=pass; d=google.com; s=arc-20160816; b=Q/mZ494HMfWf4v2PI3ax1mGraBCDRw+kLBZLN7DOJFsMBtKoFN+Z2N5FR/ylUb6jIA 0lwV+VrJ8yuTupb1doT4NJ1gBV8DJKBDFcMK077I0GstyEZhugP+s8dRFhL7rLivCMoF wT3KOV3+asurp88CuuBVqW5wowD3bACsRok5I3nlomy44aZgr7vGvU0xG8l+6zU9aL/6 p0X/Qd1ItT11lFYlQ27aD5i0UtU7LeLo7AJRU0Pajwo19z21g5+XDsdCR3rvAlpDh7tp +tljWDmFXeqCaIx8m4E1+pQj2lOpS9sUFXB0jj5ASL9ONmJHEAulAI8YI3qvr4TIxBVw Liig== 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=JMBOIqjWP0zW1Mz5bpvUf1ub+yy+jVMzbwmGWkYKcFI=; fh=Xcda2IJhsdyTLR+Lg6bGjpjlHo+ZvIDJiUHbVNcOU7U=; b=TUT73xjCyxXwrXLYc5BGUlQllJVNIgIpAszJgj/IepTmAjvi8WzqDsWNA5e2UhhBAa +P51pZkPXmgyYra3q0WZevsKEI0OrlK9/MykT8aet9jDX126NEY/1xAI5Vfs+R7bLSsy 0AiQ+JXegcpKy3oeyv+RCYT3CFwzgPNyE5czgQma/RecInUBYd8CovYulcnMOV1rYhxk 4gmyFBzaF/xoYtH4yfMFQ3RGTt7BdXZYW066tfJ3osj1g42aGfVlXHpyvprnn0/l5wNC 3vNScaSFqVb1AlFxwii6+9i4U6WcnIzo4dWXMmSrDS6z0/P7cT58RtoCYbobvwy31yGb cFYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FWeJ52Y6; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-207058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207058-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 6a1803df08f44-6b04f68527dsi63662836d6.173.2024.06.08.07.17.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 07:17:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207058-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=FWeJ52Y6; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-207058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207058-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 788981C2104A for ; Sat, 8 Jun 2024 14:17:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07FB617B42A; Sat, 8 Jun 2024 14:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="FWeJ52Y6" 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 2187C17A93C; Sat, 8 Jun 2024 14:16:53 +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=1717856216; cv=none; b=ufuoxQLVDcqzrp7UrAOWwCIJqRAeA2fqht++beF55JX6s5Hpg7Qnm3xCkHAv1LBZ+pemHAU7xbM3F+AGMvV4qlY/IWnqCuISIwncHQvEIg6zGY4gUr/avO6Zhiyg0Dni4Zyu8y6KKUT8P0Ksqz4Nd/hiYn57BgDn5KbecguoCcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717856216; c=relaxed/simple; bh=3ZQeW8xyCfO0mF0Lz2gwAXBPIFqpW8xq/6Un+XG7dl8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aOM4Xy6cn/KGSbjDtvF0lgGtDIJRlONVlljfpr24iRJ+Dr2cASniX0DYRxf7/dfoCD1BvwdAaPZSu73J0yuMi9W2XDS/EkAP6WVj1tU1fbEjdKQXpaoGOb7Elr5Qo8sy+A+gnMk0uYg13KG7zwtul9lW9XFj/jpXur6QganRRq0= 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=FWeJ52Y6; 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 74E1CC67; Sat, 8 Jun 2024 16:16:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1717856201; bh=3ZQeW8xyCfO0mF0Lz2gwAXBPIFqpW8xq/6Un+XG7dl8=; h=From:To:Cc:Subject:Date:From; b=FWeJ52Y6LvaMBC28vCdJ58rQuBqpU4C8SI6PL+y5U7gcVCPyg/xD9Wh+0/noL3RNZ F0zWQwqw6U5C/7jrvkGhZBwNGWrx5YLstlnRWCUchdrLw/hu1MXTlitnV3hDyaCnDt MlW03w20sCD+5MGzOGdiN9XkuXGxb/Ze1oo376ds= 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 v4 0/4] ADP5585 GPIO expander, PWM and keypad controller support Date: Sat, 8 Jun 2024 17:16:29 +0300 Message-ID: <20240608141633.2562-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 v3, this version addresses small review comments. I believe it is ready to go, pending another review of the PWM side (Uwe reviewed a previous version, and to the best of my knowledge, I've addressed all his concerns) and the MFD driver. Once the PWM driver gets reviewed, I think the simplest course of action is to merge the whole series through the MFD tree. 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: mfd: Add 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: c3f38fa61af77b49866b006939479069cd451173 -- Regards, Laurent Pinchart