From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 7371B30FF32 for ; Mon, 23 Mar 2026 19:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774292473; cv=none; b=MhEqj1ldc/W5XAWzPFWLfddcchY1c4O0hKzU6GvtHkW7rsB6cKf+dhXJB6qoXr4OWflKQ0p0QtHRrneixhlI9tmd6ITNdzbfCfdEin05ZEbuyTMWGfvJlRfexbtUtjNaRiuQyyLDSfmpG6AC9uE1e8SWep3XKv/l0+g3X6lMZ88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774292473; c=relaxed/simple; bh=HknQ5tmeJvs4F5JSI87UBv5DHfHkIOf0k7Z/bDgwvjE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=f5FRupXsI0uQyJsBI5WmeOs7Y/rH7WQNkEF3PcdPfcWFPaKMkU3QddxFGODSD8nKDGxENWqujQraQjamLC2bMMeurPfcXJC3A0IZ3un88aVaxA0hW0BvsK/0+XED0skwJ6BNVtVMrk4iQCR4qhuvKzDlkX/JFji1gjgluWRcSCA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=lcPsC65g; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lcPsC65g" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-48538c5956bso42133485e9.0 for ; Mon, 23 Mar 2026 12:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1774292469; x=1774897269; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=iAQkTnFgl+8yd50clSd1ldbwKw7NVFGAMfnkLJg3I3Y=; b=lcPsC65gr8E4LsGwneE2qGH0tPp6ZD4mt/In70ELRusHQaVHL7KB8rglZx3nmBlsXt yq89yEtkhd6YGtABmtDp6l1bv83DVfJn/FnXRAe4g2vmk5VmUtW9FJNuCbnT1lnjbxQm V7KzxASPGGhTQHEAT4gRZJWq7zLknibDWkQmDKuU1L2eIoXSnbVHN6gXARMzhCgWgZpX rPUHdwsiKC0rlk7PlBmfigtgYrkmpn2YTCpht2D5Ke3GxngU9If+Gg6sS9Emn+B8Mz/j RqYcm9S5jSb8/fWFppRAtKbwJC3oQtarwwQ7aIxuATb9Vjweqwdzwu8dPW5qOix789YK oyeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774292469; x=1774897269; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iAQkTnFgl+8yd50clSd1ldbwKw7NVFGAMfnkLJg3I3Y=; b=OHDi9z8cPzQ7yV8Rb5292VKLkK/LfL0rGZTFamA9TlIUzN6dBdYxt9jr/IHKRd7LRX HxmDxLn1a6EHhjMNgwEc3+AL5RkQqCMAgo0qE11ntUxp7wcehlucfrKnEkPCGDcXOL0G syYrODLQfkem6qEuRqkx+1wBX35eNqS/6+ei7U/eah/LXVuSf7EPCdSsMkFyPotberBz uoMdWvngG8NxpwVhnsOVu82Dt2BgP3vZM8ckT40PyHVUaWcD/0ys0nK8scn1ABjJTja2 7VaXQl8oMXUW0LhUKZvI7AE4g+qXgFdaC6GnrE5Id3KpS13J2h3tB14xImNjwRiDO4kC u5jg== X-Forwarded-Encrypted: i=1; AJvYcCUlYv0z6hfgDjmoWrI2QJaSvAvfGS9opw0vUlmBB6oSQ9i6ufRQfn6U5yoKDp4Rt82OFNSXKyMY0N+NR9E=@vger.kernel.org X-Gm-Message-State: AOJu0YxBfqVJxAhDd619gPiuOS9mZA3ErFdHGmKhnlP5JBsBq/PEQeNn J0onSbL11KrZIPP9lwl2WwSNyT1tKjDlvpEppurbRfSDBxlq9+uhB8PyVliQs37tNy4= X-Gm-Gg: ATEYQzzQ72veOF3DPvueAw4wZgFIvtqcLvbE0F+spADppMP070MLb6DYD5NMGQPxcQX Ioo5Bs6fDeqnukbl6p6P9mgkDszPEYBKHfQ8yiIu+8dDHDdvzAztQ54uT5XzhmHlWFcxjPZVAr3 R9MxXqO0iHLA5vy9NfgQKmz+DUst1TFuaQDKqt2DkZ3n1v7/lvL16KtaJ+XzxyZqBVvtdZGUDRj cXxyhL74uXzw3dMdN18/hNFcBcJw+C6Ds3+7fuL0QYTqn/aaZnDlL0f57VCj3mpP+zW7MHqUKYV AJmR646jbsW/xYee8X/WyxVhOKaq1L9KWVGux9gMccA0Hf5ME6yh2s2Fwx1/dOeVsEdImnJmEyi UaP0bLT4tDp726qjpZm3DH01usZsvRH9cgBN2sNQPS7Uj9apqxnU9mxjApDp+iCBYk/KTeSBCre k0Qqt61ArqG+IJPYZM/+hm4SNK7dLy X-Received: by 2002:a05:600c:4349:b0:486:fe83:861c with SMTP id 5b1f17b1804b1-4870f1fc613mr5830435e9.7.1774292468497; Mon, 23 Mar 2026 12:01:08 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4870f822b83sm1713765e9.4.2026.03.23.12.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 12:01:08 -0700 (PDT) Date: Mon, 23 Mar 2026 22:01:04 +0300 From: Dan Carpenter To: Linus Walleij , AKASHI Takahiro Cc: arm-scmi@vger.kernel.org, Bartosz Golaszewski , Conor Dooley , Cristian Marussi , devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Sudeep Holla , Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , Vincent Guittot , Khaled Ali Ahmed , Michal Simek Subject: [PATCH v6 0/7] gpio: introduce a GPIO driver for SCMI Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This basically abandons my earlier attempts and goes back to Takahiro Akashi's driver. Here is the link to Takahiro's patchset: https://lore.kernel.org/all/20231005025843.508689-1-takahiro.akashi@linaro.org/ v6: Fix a build error when CONFIG_PINCONF is disabled Fix the dt-binding subject and my email address Use pinconf_to_config_packed() instead of PIN_CONF_PACKED() v5: Addresses Andy's cleanups to the driver. Adrresses Krzysztof's comments about the dt spec file. And almost all the subsystem prefixes were wrong. v4: Addressed Andy's comments about kernel-doc Addressed Rob's comments on the spec file v3: Forward ported Takahiro's patches and added some fixes ups to make it work on current kernels. AKASHI Takahiro (3): pinctrl: introduce pinctrl_gpio_get_config() gpio: dt-bindings: Add GPIO on top of generic pin control gpio: gpio-by-pinctrl: add pinctrl based generic GPIO driver Dan Carpenter (4): pinctrl: scmi: Add SCMI_PIN_INPUT_VALUE pinctrl: scmi: Delete PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS support pinctrl: scmi: ignore PIN_CONFIG_PERSIST_STATE firmware: arm_scmi: Allow PINCTRL_REQUEST to return EOPNOTSUPP .../bindings/gpio/pin-control-gpio.yaml | 59 ++++++++++ drivers/firmware/arm_scmi/pinctrl.c | 2 + drivers/gpio/Kconfig | 13 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-by-pinctrl.c | 101 ++++++++++++++++++ drivers/pinctrl/core.c | 31 ++++++ drivers/pinctrl/pinconf.h | 6 ++ drivers/pinctrl/pinctrl-scmi.c | 46 +++++--- include/linux/pinctrl/consumer.h | 9 ++ 9 files changed, 255 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml create mode 100644 drivers/gpio/gpio-by-pinctrl.c -- 2.53.0