Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2677488lqo; Mon, 20 May 2024 13:00:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWL1mxyG8pcDtz7Fs5BEzSFMV889p4JXawOQdQdlLSon7wyWCQM9GN3NdZJ0rc+AHNzNlFD+PsaWjkJ3P9yKNklVYNKS6cmmpHtExNt6g== X-Google-Smtp-Source: AGHT+IEoQ83Uh1srkPey2msJDwm77Xr1cnlSKncxwZ/Cb0JeEwd9F1uW6Un9diWUWfNKuWkk7v8e X-Received: by 2002:a05:6359:a3a3:b0:194:801b:151a with SMTP id e5c5f4694b2df-194801b18c0mr2131725655d.23.1716235205790; Mon, 20 May 2024 13:00:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716235205; cv=pass; d=google.com; s=arc-20160816; b=IWc3uL5Xx2jLkWdKcn6Gzxk6vlIJb+GiJwZd62cYNn8hEgUKWr38WaIPU0Oz79gklH e9SWRdUXltr51KhRoCoHBzcPq+FiX8TXMf4+lLj+sTcPeroRqu0+6wfQwjgd3dFiX+45 UG2v+yc7VSFEZUSVdXawVmsXcdaP/XP2LmnLXkLlyIId0L03bI3EXwU4maV1pmso3/yd YyypXCVpPzxA2Y0HuakO52zyHqWJviD5cD91ccpr3b4nh5nkP7X3qOVAFQT/6vKNLVw7 V+JIw43g7V/YcbkhW9i6WKSkiicmKDDqpRFqxxLTd6jL1b92ZMdkR/YzAGNsZ42oPLdl yAHA== 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=gUztEHSJLMfMNNGMaMm5IPrCRniyscLaIkvzHyQLXG8=; fh=v/xtfUDEWJJx+wiyahf607OdXEHi4x4+5tiD0hUrVUo=; b=TC8pnFGkZqYTkffkMgG0/S+GDFmzjfKyUtCAiES0hN7g5vU8y3UZfOTluc7zYssvI2 oLiYVyxpz6lbOlJcOEOKUsLb3cUDk5/xc6vAFT2SobGisfx0EOIo/RsJ6UpJpZvT4gEn kCw3xH/tPz8RGmD3H46n93LsNQ+965hAFy7ciwmtHW+hNIAd56c1J5wigGDk0xhG8ORE Yn6ZrAiPVL+SgXXG5MWJ0ocYOr59DupRKyQjrBC2g0DDx5Di15eYH+pNrkHoStLlS9fl BtS9IFIQCkwg79VlzmI0CoI/qnRKGxI86SCeMOXKGtYSmzHSxdDSSZ0+98jhZWlmh2aY 9qNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MgBA7YSN; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-184135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184135-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-65c6bba52f5si7238890a12.341.2024.05.20.13.00.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 13:00:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MgBA7YSN; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-184135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184135-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 267A4281CDD for ; Mon, 20 May 2024 20:00:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89BEC139579; Mon, 20 May 2024 19:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="MgBA7YSN" 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 CB3D754735; Mon, 20 May 2024 19:59:52 +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=1716235194; cv=none; b=ePTQs1NK4qcJbMAhMYcKp9d7Y6natXGBPxdmsITuhT8KfhxFo2EwcNp1UvI4zOL39kTm/yeD8+b50bQE74T/QUrlII+jf6WSzEqSSENCXiCIMmTWVfRVXm+i6utQ2QWI8B/5X1cpIoVSNB1UVXupw/m/AGWXtcswehbBalRTo9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716235194; c=relaxed/simple; bh=qrk44uOhfAMSRJpAW63tdWL3WDheju7jjKOR4llVcmU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Urzkas0lw6tDx1OsBVu6GgFwgvQ7DZV2e2gm07UPewn1jR7yM6S74F7Wq+JdaR26kanzda7HSbfYF7C8+3Nq66YLgmzY3ry7fJ2me+GkZyRfTktUqX6KRL3w7f5iJJENNOy0C1Sjfm6Pm8s6r/l8gYtrxpVwq+/Ee377Clv0mlM= 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=MgBA7YSN; 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 3644CD49; Mon, 20 May 2024 21:59:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1716235179; bh=qrk44uOhfAMSRJpAW63tdWL3WDheju7jjKOR4llVcmU=; h=From:To:Cc:Subject:Date:From; b=MgBA7YSNXu+cKhX28C4TMm1kkq3uziRTsBMK2szRuy4Lif4ii8HVgOocifsvU8MU6 lzLOIKvpD6PjGjVKgNJUAXP0z0Ob7Tlxb1Jf9hIf5ytdLDauv/Rul89XA1xw3bR73E pvGOO3uUM5op43psOlHiakyw0DjolaSgx6XbE4uU= 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 0/5] ADP5585 GPIO expander, PWM and keypad controller support Date: Mon, 20 May 2024 22:59:36 +0300 Message-ID: <20240520195942.11582-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 (2/5), an MFD driver (3/5) and drivers for the GPIO (4/5) and PWM (5/5) 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. 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 (2): dt-bindings: trivial-devices: Drop adi,adp5585 and adi,adp5585-02 dt-bindings: Add bindings for the Analog Devices ADP5585 .../bindings/gpio/adi,adp5585-gpio.yaml | 36 +++ .../devicetree/bindings/mfd/adi,adp5585.yaml | 117 +++++++++ .../bindings/pwm/adi,adp5585-pwm.yaml | 35 +++ .../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 | 207 ++++++++++++++++ drivers/pwm/Kconfig | 7 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-adp5585.c | 230 +++++++++++++++++ include/linux/mfd/adp5585.h | 120 +++++++++ 15 files changed, 1016 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/adi,adp5585-gpio.yaml create mode 100644 Documentation/devicetree/bindings/mfd/adi,adp5585.yaml create mode 100644 Documentation/devicetree/bindings/pwm/adi,adp5585-pwm.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: a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 -- Regards, Laurent Pinchart