From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 77FCA30FF33 for ; Mon, 23 Mar 2026 19:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774292473; cv=none; b=JYtjlHYGmqZN1IrKIcC4VlvUG0WeWDF94kv3P0B7gEjN5xfhqP2I7knxpzf7K14kykcREp+f/rdIbxcgfQji5LjocNBpe75h5F/dd1QMhIl7rOCo3zDwVQKXIDQISWhZOxEvqO0/PsN1BB0W5/3I83yXBpR2csg3sLwGTkROdN0= 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.43 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-f43.google.com with SMTP id 5b1f17b1804b1-482f454be5bso51476065e9.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=Cb/m9CqXpYKeWxZ2a9wGXzJThfOqt85MsXcM9+UjR1+j03yEH2+L7ndlegpwzCuiGE 2MaB41AN7SiQasw6Gh4tyKXFzfjdb/KOwocHf57cuWFhCD0t36BNO9hPhffr6K+3FIMa 3e7GVJ/kb2Ec5wAexg5zfcr8pN5NBDIOKy+AFWXUf1jFFaXNWUeluBj3N41XTXfX4VJP 5p9tZpJA5bhJXYhNqUVuayO11g7wzZKaJv/KJFGZeAwQryO769zKXSyO5H/dkv7vTHca WTdBwVgNtu3AqXfF74VKFeW5bHmKTPbLEQRC+8wPUVO+Krm+ys5l/jdvshR0v0sEh5Dt /KcQ== X-Gm-Message-State: AOJu0Yz1jBrZKW1XwXwMXxN1VlAfII9KIxB/+hVK65VhX7VrbSqiB+az txwSNwU3FR/CrVK6H0czm/3Z4BUWZRkcv3cChnaPxvu4yCALnikI9Bm2OyGp+3Y0wfE= X-Gm-Gg: ATEYQzyQegWIK7HVD19PEf4q0iBA2nYVkwxSELgY7+iIjuizK/zq6Y5Qsuvw0srg+Vx GjNahBHc2HLb64KvrjOaAXlHlYOdm1SdyNf9zLPwo1Bc02adgSNj5+AVzxLRexymuBwPhJ82/uo UP2DXgJwPC0aamb5Kxo4DLvI02jc8Iof2jWM9KsSKs9fm5Nenadh6UzyjwOoU3kp5gKAi1yMA1L mZ3bzQXkvOWNyYR/0y1WEOhxIbcJBl5U2th19tzRwaIvM8oxHHObHdQFnHJ95oq0r09SOCLW7bG /DgiDh0szO7CHaA356WqzKZyoGSvwhePFRQFAj3myFytjiaWq+F65df8n24HgE4CWRTLY2jPksm un6IJBUOJAp8IkFm6hAEZjlj0UeHnj9G/W+uDz9mE+KZc424b0y+OU6Md01npUtbKmaP3XSjaED DuLiq3pil5c3aVPALYz/EvemlUlg6C 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: arm-scmi@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