From patchwork Thu Aug 4 12:41:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 595924 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AB3EC19F2A for ; Thu, 4 Aug 2022 12:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233792AbiHDMlK (ORCPT ); Thu, 4 Aug 2022 08:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231982AbiHDMlJ (ORCPT ); Thu, 4 Aug 2022 08:41:09 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32CA62AE07 for ; Thu, 4 Aug 2022 05:41:08 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id v131-20020a1cac89000000b003a4bb3f786bso2441799wme.0 for ; Thu, 04 Aug 2022 05:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M3HxUVd+J6b5e1RKtCKXwJ8ESvmvi4D20YD7+DqzvWU=; b=HJTyUv1WKqKebL/DNvtHmPk3fYTtFvz875MYeMaAM+l2l4vUlU27tNkvTYq7DlX6zw pGgy1CXh9F3K8C/BJdrxlBSCglCSNJsy1CdEXlaqmfYYRpxvYhdN1VicSVpLEaEzCL8W l56Kije2H6CXzLubY4fGtxCJSrMyTEaoiqjfKgjP/PWuJK9zJF+Maq5fEuCeYKrYwddF ITCooxgHlMffdj3FcXSVUnoCW3lS7lTegahajS3VFkuaeekphwrR75Dbm2SG8h0xuBWQ GdKc9EpsEk+EJTfyw6/UYGBmI64aYxMWUXkCWNNvW3v5U0s/dp2VPCPDwDNxy7ebFJkb BijA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M3HxUVd+J6b5e1RKtCKXwJ8ESvmvi4D20YD7+DqzvWU=; b=rUwvSa8+gyvDptC0B5auPUxYzJublD1JJKMaGPplGuMutO2n3CXsBUNsPtTu5xH+J2 d5FFix6pPunca5/icnbagurWZOPYP7D7/IKCsv01Ma9lIln9az4GE/s4AomLJ4iLAqWX 5avJUlvv8u8ybUI3ShQiPJ1+ZuzoXoKiJ9qPMREFO2027yR1ozN/3Xr0t/G3zhKbhprb IWE/3jgT7g3XxK1AgueSvaMjA1ykURvEZpWVR2+B9mgNfxkZ23XMb4nLeT1VrPYRl0ch N+l7rvP5CCV00i7r49HwBp1BKw5d3hLa70rHOHIj1A/0O3iQVKpIixwRW0p7t4HTz9L6 77tA== X-Gm-Message-State: ACgBeo18/6lF5S8Exsp8k8EUxeXQ/KpYM1UMWqvsEs5e5HLg7oalKAqC wGVgu0tCkhoNOurQzrCAXi8hkA== X-Google-Smtp-Source: AA6agR74g5MncM7UBdkaMxZQWPbCGzHfQwwj0TKETK+1yjqjndLClzMo8tRpYPqRwDSchOAmj2793g== X-Received: by 2002:a05:600c:15d6:b0:3a4:f9f8:eba3 with SMTP id v22-20020a05600c15d600b003a4f9f8eba3mr5240837wmf.33.1659616866540; Thu, 04 Aug 2022 05:41:06 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:ab4f:2a3a:99f1:7c84]) by smtp.gmail.com with ESMTPSA id p22-20020a05600c359600b003a31ca9dfb6sm2230766wmq.32.2022.08.04.05.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 05:41:05 -0700 (PDT) From: Bartosz Golaszewski To: Linus Torvalds Cc: Andy Shevchenko , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [GIT PULL] gpio: updates for v6.0-rc1 Date: Thu, 4 Aug 2022 14:41:03 +0200 Message-Id: <20220804124103.1088581-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Linus, Here are the updates for this merge window from the GPIO subsystem. We have more lines removed than added thanks to dropping of a driver for a platform that's no longer supported. Otherwise the changes are pretty straightforward. We have support for some new models, various improvements to existing drivers, some tweaks to the core library code and DT bindings updates. Details are in the signed tag. Please pull! Bartosz Golaszewski The following changes since commit ff6992735ade75aae3e35d16b17da1008d753d28: Linux 5.19-rc7 (2022-07-17 13:30:22 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git tags/gpio-updates-for-v6.0-rc1 for you to fetch changes up to c4f0d16daa6d1c5d862d063379c03310387095d5: dt-bindings: gpio: fsl-imx-gpio: Add i.MXRT compatibles (2022-07-28 15:49:49 +0200) ---------------------------------------------------------------- gpio: updates for v6.0-rc1 - remove gpio-vr41xx driver as the only platform using it got dropped too - add support for suspend/resume to gpio-davinci - improvements to the GPIO character device code - add support for disabling bias for in-kernel users (up until now only user-space could set it) - drop unused devm_gpio_free() - fix a refcount issue in gpiolib OF - use device match helpers where applicable - add support for a new model to gpio-rockchip - non-functional improvements in gpio-adp5588 - improve and simplify teardown in gpio-twl4030 and gpio-ucb1400 - modernize the gpio-74xx-mmio and gpio-adnp drivers - coding style improvements in gpio-xilinx, gpio-104-idi-48 - support new model (pca9571) in gpio-pca9570 - convert the DT bindings to YAML for gpio-mvebu and update the document - don't return error codes from remove() in gpio-brcmstb - add a library for the intel 8255 PPI interface and use it in drivers - reduce using magic numbers and improve code readability in several drivers - convert DT bindings to YAML for gpio-tpic2810 - add new models to DT bindings for gpio-frl-imx - Kconfig improvements - other minor tweaks and improvements ---------------------------------------------------------------- Aakash Sen Sharma (1): gpio: 104-idi-48: unsigned to unsigned int cleanup Andy Shevchenko (13): gpio: pch: Use dev_err_probe() gpio: pch: Change PCI device macros gpiolib: devres: Get rid of unused devm_gpio_free() gpio: adnp: use simple i2c probe function gpio: adnp: Make use of device properties gpio: adp5588: Switch from of headers to mod_devicetable.h gpio: adp5588: Do not use defined value for driver name and compatible gpio: adp5588: sort header inclusion alphabetically gpiolib: of: Use device_match_of_node() helper gpio: 74xx-mmio: Make use of device properties gpio: 74xx-mmio: Check MMIO_74XX_DIR_IN flag in mmio_74xx_dir_in() gpio: 74xx-mmio: use bits.h macros for all masks gpio: 74xx-mmio: Use bits instead of plain numbers for flags Aparna M (1): dt-bindings: gpio: Convert TI TPIC2810 GPIO Controller bindings to YAML Bartosz Golaszewski (1): Merge tag 'intel-gpio-v5.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel into TEST_MERGE Chris Packham (3): dt-bindings: gpio: gpio-mvebu: convert txt binding to DT schema format dt-bindings: gpio: gpio-mvebu: deprecate armadaxp-gpio dt-bindings: gpio: gpio-mvebu: document offset and marvell,pwm-offset Devarsh Thakkar (1): gpio: davinci: Add support for system suspend/resume PM Geert Uytterhoeven (2): dt-bindings: gpio: renesas,rcar-gpio: R-Car V3U is R-Car Gen4 gpio: GPIO_SAMA5D2_PIOBU should depend on ARCH_AT91 Jesse Taube (1): dt-bindings: gpio: fsl-imx-gpio: Add i.MXRT compatibles Jianqun Xu (1): gpio: rockchip: add support for rk3588 Kent Gibson (6): gpiolib: cdev: simplify linereq_free gpiolib: cdev: simplify parameter in call to hte_edge_setup gpiolib: cdev: replace if-else chains with switches gpiolib: cdev: simplify line event identification gpiolib: cdev: consolidate edge detector configuration flags gpiolib: cdev: compile out HTE unless CONFIG_HTE selected Liang He (1): gpio: gpiolib-of: Fix refcount bugs in of_mm_gpiochip_add_data() Lucas Stach (2): gpio: pca9570: Add DT bindings for NXP PCA9571 gpio: pca9570: add pca9571 support Nuno Sá (4): gpiolib: add support for bias pull disable gpiolib: of: support bias pull disable gpiolib: acpi: support bias pull disable dt-bindings: gpio: add pull-disable flag Sebastian Reichel (1): dt-bindings: gpio: rockchip: add gpio-ranges Shinyzenith (1): gpio: lp3943: unsigned to unsigned int cleanup Shubhrajyoti Datta (1): gpio: xilinx: add missing blank line after declarations Thomas Bogendoerfer (1): gpio: remove VR41XX related gpio driver Uwe Kleine-König (5): gpio: twl4030: Drop platform teardown callback gpio: twl4030: Don't return an error after WARN in .remove gpio: ucb1400: Remove platform setup and teardown support gpio: brcmstb: Make .remove() obviously always return 0 gpio: xgs-iproc: Drop if with an always false condition William Breathitt Gray (7): gpio: ws16c48: Implement and utilize register structures gpio: 104-idio-16: Implement and utilize register structures gpio: i8255: Introduce the Intel 8255 interface library module gpio: 104-dio-48e: Implement and utilize register structures gpio: 104-idi-48: Implement and utilize register structures gpio: gpio-mm: Implement and utilize register structures MAINTAINERS: Update Intel 8255 GPIO driver file list .../arm/marvell/ap80x-system-controller.txt | 2 +- .../arm/marvell/cp110-system-controller.txt | 2 +- .../devicetree/bindings/gpio/fsl-imx-gpio.yaml | 2 + .../devicetree/bindings/gpio/gpio-mvebu.txt | 93 ---- .../devicetree/bindings/gpio/gpio-mvebu.yaml | 146 ++++++ .../devicetree/bindings/gpio/gpio-pca9570.yaml | 1 + .../devicetree/bindings/gpio/gpio-tpic2810.txt | 16 - .../devicetree/bindings/gpio/gpio-tpic2810.yaml | 51 ++ .../bindings/gpio/renesas,rcar-gpio.yaml | 4 +- .../bindings/gpio/rockchip,gpio-bank.yaml | 2 + Documentation/driver-api/driver-model/devres.rst | 1 - MAINTAINERS | 9 +- drivers/gpio/Kconfig | 22 +- drivers/gpio/Makefile | 2 +- drivers/gpio/gpio-104-dio-48e.c | 249 +++------- drivers/gpio/gpio-104-idi-48.c | 157 +++--- drivers/gpio/gpio-104-idio-16.c | 60 ++- drivers/gpio/gpio-74xx-mmio.c | 19 +- drivers/gpio/gpio-adnp.c | 19 +- drivers/gpio/gpio-adp5588.c | 26 +- drivers/gpio/gpio-brcmstb.c | 9 +- drivers/gpio/gpio-davinci.c | 83 ++++ drivers/gpio/gpio-gpio-mm.c | 202 ++------ drivers/gpio/gpio-i8255.c | 287 +++++++++++ drivers/gpio/gpio-i8255.h | 46 ++ drivers/gpio/gpio-lp3943.c | 16 +- drivers/gpio/gpio-pca9570.c | 2 + drivers/gpio/gpio-pch.c | 43 +- drivers/gpio/gpio-rockchip.c | 3 +- drivers/gpio/gpio-twl4030.c | 18 +- drivers/gpio/gpio-ucb1400.c | 20 - drivers/gpio/gpio-vr41xx.c | 541 --------------------- drivers/gpio/gpio-ws16c48.c | 120 +++-- drivers/gpio/gpio-xgs-iproc.c | 6 +- drivers/gpio/gpio-xilinx.c | 2 + drivers/gpio/gpiolib-acpi.c | 3 + drivers/gpio/gpiolib-cdev.c | 291 +++++------ drivers/gpio/gpiolib-devres.c | 32 -- drivers/gpio/gpiolib-of.c | 13 +- drivers/gpio/gpiolib.c | 8 +- drivers/mfd/ucb1400_core.c | 6 +- include/dt-bindings/gpio/gpio.h | 3 + include/linux/gpio.h | 6 - include/linux/gpio/machine.h | 1 + include/linux/mfd/twl.h | 2 - include/linux/of_gpio.h | 1 + include/linux/ucb1400.h | 2 - 47 files changed, 1197 insertions(+), 1452 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-mvebu.txt create mode 100644 Documentation/devicetree/bindings/gpio/gpio-mvebu.yaml delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-tpic2810.txt create mode 100644 Documentation/devicetree/bindings/gpio/gpio-tpic2810.yaml create mode 100644 drivers/gpio/gpio-i8255.c create mode 100644 drivers/gpio/gpio-i8255.h delete mode 100644 drivers/gpio/gpio-vr41xx.c