From patchwork Tue May 14 07:52:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 796787 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E03F914A85 for ; Tue, 14 May 2024 07:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715673168; cv=none; b=DqxLS2GH9aMJa282X4/s+qWI4dCiXlRvkHx7CGB9MwbB1utFmzOghqy4lc/+qnH4+0gH/ZHTmx0JXVDTZlGOXGZ4f+RwjKy5THKvQwyXhfnwUNw3RiK0ozAYjvcoXP3fpZ3NGkohd8BegG9sZskwjOVF9utsgXdCGjtPCvt9oEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715673168; c=relaxed/simple; bh=OOaEOfAYR5Gh8oK5DJeYpeAymVXp+rXthUNYm11olFA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZzVOkVBdknS/HRgWl6uh0dWLWm6qBUVmXV4wXdB9vbseLHMqbIJBwgN6RdB8qPFqkZpHJUhrZ5ru0vkmgROXT4EfMaNMbe8JcdJwHHzRORiyono7buWD3O5qP+Dyp0XhQ8YR0iIvQquVgHfdtBmeWyLlFSmJHL2gvpwLybc8pm0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=fdx/36aN; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="fdx/36aN" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59a5f81af4so1332172566b.3 for ; Tue, 14 May 2024 00:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1715673165; x=1716277965; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RRbZom6ag8wZbaXN8JlgLAmY9gMu1rXQduqBeQbgtG0=; b=fdx/36aNHMQtj5SORgPbubr/7tgpKfA/OXn/XJx+ePYRMtCcwODwzTfsWCFcLnlnSw g9/0SHe3U016vRPqIcXtT6iJab/6zN3eVBhP4Q+FQ4F/9J+Se5Sr5i6+BDrLhioRLtRy mHuyazFtWx5C6LSff4QAq8oHI1sGafpPsAnpkCZYnRXjJFb20raviqHbe67bNKNboc1B N27HAmHJszNLpDxWJ4qo17o0Op1uG263uFwSyD5SBiRO/Gy34qsdgfsuvW3eZjMxoIQf aV8XYG+qJHqPf+i90p6aylzG4wDwxpscwslrJsLAnkOG+Oy3gQEknv92/c1PTTumI+kC MuKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715673165; x=1716277965; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RRbZom6ag8wZbaXN8JlgLAmY9gMu1rXQduqBeQbgtG0=; b=AxkkX5KWoDADhGw2HCemdne2M3tKX1+FMPzboHMqqb/gZKBg26G3HhPntQnObjAd/s ePc6RmxnJxy1/ABmIfKAyvJGSmsgRkeVQUl1fJEOQ2vXwRPFLb/q+1503vziQN1ocat1 MNGxj0EbXyiA5vKL8vDZqwSvUbpwX6WkO76E+fX9Guq2EYP94fMvggNuELMVeOAPbm7A bqwVkqUuSWJZCJklsAytxaAJwv30FDGigeIv80SmhnEARgRWrV3JfNUziKkDEU5xiGZh CztrKYaqddVRDXiz0BMzS3PnMgosgUQldteJKiiR14GU49SKiXUQIdD//PEpNSX6YzMx 0SbQ== X-Forwarded-Encrypted: i=1; AJvYcCXsAvxsWqoZpINb3iqZy3Nqm10Vp+qojG6eX/UAgwcC4an/7Z46jiA3xf7V5+nYJp+m/CrWoXJ59moaFbrgYIQe/M1jAN3ObL3Hpw== X-Gm-Message-State: AOJu0YwmMHackDg7LkmiTp3mRvRhjFsLbPvyPHcRhN9xMYjjpRqbvV04 gUjVDOGBxG2Lmt5lxakF0GD9jACHZEvv2CRhMASqsWtRKPwui/MkoWLy2pKQYs0= X-Google-Smtp-Source: AGHT+IHEP9Pihcxscu5GOvum+xRZvm2vozKn++BTGhjVa2EM2uUdG259qd+sevlst3Pm2tIrgRrkMQ== X-Received: by 2002:a17:906:b7d7:b0:a59:b02a:90e7 with SMTP id a640c23a62f3a-a5a2d6a1708mr884283066b.64.1715673165062; Tue, 14 May 2024 00:52:45 -0700 (PDT) Received: from brgl-uxlite.. ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a7b53fc8fsm99184866b.38.2024.05.14.00.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 00:52:44 -0700 (PDT) From: Bartosz Golaszewski X-Google-Original-From: Bartosz Golaszewski To: Linus Torvalds Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] gpio: updates for v6.10-rc1 Date: Tue, 14 May 2024 09:52:43 +0200 Message-Id: <20240514075243.7008-1-bartosz.golaszewski@linaro.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Linus, This was a quiet release cycle for the GPIO tree and so the main pull-request is relatively small. We have one new driver, some minor improvements to the GPIO core code and across several drivers, some DT and documentation updates but in general nothing stands out or is controversial. All changes have spent time in next with no reported issues (or ones that were quickly fixed). Details are in the signed tag. Please consider pulling. Best Regards, Bartosz Golaszewski The following changes since commit 39cd87c4eb2b893354f3b850f916353f2658ae6f: Linux 6.9-rc2 (2024-03-31 14:32:39 -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.10-rc1 for you to fetch changes up to 7f45fe2ea3b8c85787976293126a4a7133b107de: gpio: nuvoton: Fix sgpio irq handle error (2024-05-07 09:44:33 +0200) ---------------------------------------------------------------- gpio updates for v6.10-rc1 GPIO core: - remove more unused legacy interfaces (after converting the last remaining users to better alternatives) - update kerneldocs - improve error handling and log messages in GPIO ACPI code - remove dead code (always true checks) from GPIOLIB New drivers: - add a driver for Intel Granite Rapids-D vGPIO Driver improvements: - use -ENOTSUPP consistently in gpio-regmap and gpio-pcie-idio-24 - provide an ID table for gpio-cros-ec to avoid a driver name fallback check - add support for gpio-ranges for GPIO drivers supporting multiple GPIO banks - switch to using dynamic GPIO base in gpio-brcmstb - fix irq handling in gpio-npcm-sgpio - switch to memory mapped IO accessors in gpio-sch DT bindings: - add support for gpio-ranges to gpio-brcmstb - add support for a new model and the gpio-line-names property to gpio-mpfs Documentation: - replace leading tabs with spaces in code blocks - fix typos ---------------------------------------------------------------- Aapo Vienamo (1): gpio: Add Intel Granite Rapids-D vGPIO driver Andy Shevchenko (21): ARM: pxa: spitz: Open code gpio_request_array() ARM: sa1100: Open code gpio_request_array() gpiolib: legacy: Remove unused gpio_request_array() and gpio_free_array() gpiolib: Do not mention legacy GPIOF_* in the code gpio: wcove: Use -ENOTSUPP consistently gpio: crystalcove: Use -ENOTSUPP consistently gpiolib: acpi: Remove never true check in acpi_get_gpiod_by_index() gpiolib: acpi: Check for errors first in acpi_find_gpio() Documentation: gpio: Replace leading TABs by spaces in code blocks gpio: pcie-idio-24: Use -ENOTSUPP consistently gpio: regmap: Use -ENOTSUPP consistently gpio: sch: Switch to memory mapped IO accessors gpio: sch: Utilise temporary variable for struct device gpiolib: acpi: Extract __acpi_find_gpio() helper gpiolib: acpi: Simplify error handling in __acpi_find_gpio() gpiolib: acpi: Move acpi_can_fallback_to_crs() out of __acpi_find_gpio() gpiolib: acpi: Pass con_id instead of property into acpi_dev_gpio_irq_get_by() gpiolib: Get rid of never false gpio_is_valid() calls gpiolib: acpi: Add fwnode name to the GPIO interrupt label gpiolib: acpi: Set label for IRQ only lines gpiolib: Discourage to use formatting strings in line names Bartosz Golaszewski (2): Merge tag 'v6.9-rc2' into gpio/for-next Merge tag 'intel-gpio-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel into gpio/for-next David Lechner (1): Documentation: gpio: fix typo Doug Berger (4): gpio: brcmstb: Use dynamic GPIO base numbers dt-bindings: gpio: brcmstb: add gpio-ranges gpio: of: support gpio-ranges for multiple gpiochip devices gpio: brcmstb: add support for gpio-ranges Jamie Gibbons (2): dt-bindings: gpio: mpfs: add coreGPIO support dt-bindings: gpio: mpfs: allow gpio-line-names Jim Liu (1): gpio: nuvoton: Fix sgpio irq handle error Peng Fan (1): gpiolib: use dev_err() when gpiod_configure_flags failed Tzung-Bi Shih (1): gpio: cros-ec: provide ID table for avoiding fallback match .../bindings/gpio/brcm,brcmstb-gpio.yaml | 3 + .../bindings/gpio/microchip,mpfs-gpio.yaml | 17 +- Documentation/driver-api/gpio/driver.rst | 28 +- Documentation/driver-api/gpio/legacy.rst | 16 - .../translations/zh_CN/driver-api/gpio/legacy.rst | 16 - Documentation/translations/zh_TW/gpio.txt | 17 - .../userspace-api/gpio/gpio-v2-get-line-ioctl.rst | 2 +- MAINTAINERS | 1 + arch/arm/mach-pxa/spitz_pm.c | 22 +- arch/arm/mach-sa1100/h3600.c | 47 ++- drivers/gpio/Kconfig | 18 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-brcmstb.c | 21 +- drivers/gpio/gpio-cros-ec.c | 8 + drivers/gpio/gpio-crystalcove.c | 2 +- drivers/gpio/gpio-graniterapids.c | 383 +++++++++++++++++++++ drivers/gpio/gpio-npcm-sgpio.c | 10 +- drivers/gpio/gpio-pca953x.c | 2 +- drivers/gpio/gpio-pcie-idio-24.c | 2 +- drivers/gpio/gpio-regmap.c | 4 +- drivers/gpio/gpio-sch.c | 35 +- drivers/gpio/gpio-wcove.c | 2 +- drivers/gpio/gpiolib-acpi.c | 65 ++-- drivers/gpio/gpiolib-legacy.c | 49 +-- drivers/gpio/gpiolib-of.c | 23 +- drivers/gpio/gpiolib-sysfs.c | 2 +- drivers/gpio/gpiolib.c | 26 +- drivers/gpio/gpiolib.h | 2 +- .../ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 2 +- drivers/pinctrl/pinctrl-cy8c95x0.c | 2 +- include/linux/acpi.h | 8 +- include/linux/gpio.h | 21 +- include/linux/gpio/driver.h | 4 +- 33 files changed, 624 insertions(+), 237 deletions(-) create mode 100644 drivers/gpio/gpio-graniterapids.c