mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yureka Lilian <yureka@cyberchaos.dev>
To: Sven Peter <sven@kernel.org>, Janne Grunau <j@jannau.net>,
	 Neal Gompa <neal@gompa.dev>, Linus Walleij <linusw@kernel.org>,
	 Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Mark Kettenis <kettenis@openbsd.org>
Cc: Yureka Lilian <yureka@cyberchaos.dev>,
	asahi@lists.linux.dev,  linux-arm-kernel@lists.infradead.org,
	linux-gpio@vger.kernel.org,  devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] pinctrl: apple: Add t8140-pinctrl support
Date: Sat, 26 Sep 2026 16:51:44 +0200	[thread overview]
Message-ID: <20260926-apple-pinctrl-t8140-v2-0-620bd11cd2a1@cyberchaos.dev> (raw)

This patch series has fixes for probing the pinctrl_ap GPIO controller
on the MacBook Neo. The previous code would crash in the regmap_init on
this device, since reading the REG_GPIOx for certain pins causes an
SError.
To mitigate this, we adapt the gpio-reserved-ranges property to describe
pins which are unusable and whose REG_GPIOx should not be accessed.

Also add the new t8140 base compatible to the dt-bindings, signifying
the different behavior of the t8140 pinctrl_ap device, and make the
driver accept it since it now respects the gpio-reserved-ranges property.

Signed-off-by: Yureka Lilian <yureka@cyberchaos.dev>
---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://patch.msgid.link/20260925-apple-pinctrl-t8140-v1-0-1151bdaf2fff@cyberchaos.dev

To: Sven Peter <sven@kernel.org>
To: Janne Grunau <j@jannau.net>
To: Neal Gompa <neal@gompa.dev>
To: Linus Walleij <linusw@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Mark Kettenis <kettenis@openbsd.org>
Cc: asahi@lists.linux.dev
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-gpio@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
Yureka Lilian (2):
      dt-bindings: pinctrl: apple,pinctrl: Add t8140 compatible
      pinctrl: apple: Add t8140-pinctrl support

 .../devicetree/bindings/pinctrl/apple,pinctrl.yaml  | 12 ++++++++++++
 drivers/pinctrl/pinctrl-apple-gpio.c                | 21 ++++++++++++++++-----
 2 files changed, 28 insertions(+), 5 deletions(-)
---
base-commit: 63fcbd85bbb795805ce1014637de186c647fa59d
change-id: 20260925-apple-pinctrl-t8140-0e22af416f8c

Best regards,
--  
Yureka Lilian <yureka@cyberchaos.dev>


             reply	other threads:[~2026-09-26 14:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-26 14:51 Yureka Lilian [this message]
2026-09-26 14:51 ` [PATCH v2 1/2] dt-bindings: pinctrl: apple,pinctrl: Add t8140 compatible Yureka Lilian
2026-09-30 10:05   ` Krzysztof Kozlowski
2026-09-26 14:51 ` [PATCH v2 2/2] pinctrl: apple: Add t8140-pinctrl support Yureka Lilian
2026-09-30 10:03 ` [PATCH v2 0/2] " Krzysztof Kozlowski
2026-09-30 22:54   ` Yureka Lilian
2026-10-01 21:13 ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260926-apple-pinctrl-t8140-v2-0-620bd11cd2a1@cyberchaos.dev \
    --to=yureka@cyberchaos.dev \
    --cc=asahi@lists.linux.dev \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=j@jannau.net \
    --cc=kettenis@openbsd.org \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neal@gompa.dev \
    --cc=robh@kernel.org \
    --cc=sven@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®