[PATCH v2 1/2] dt-bindings: pinctrl: apple,pinctrl: Add t8140 compatible

From: Yureka Lilian

Date: Sat Sep 26 2026 - 10:52:38 EST


The pinctrl_ap GPIO controller on the MacBook Neo crashes upon reading
REG_GPIOx for certain pins. These pins, which are also listed in Apple's
device tree, are described by the gpio-reserved-ranges property.

Signed-off-by: Yureka Lilian <yureka@xxxxxxxxxxxxxx>
---
Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
index bc6d41b63b5d..f2eac9b9a727 100644
--- a/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml
@@ -17,6 +17,7 @@ description: |
properties:
compatible:
oneOf:
+ - const: apple,t8140-pinctrl
- items:
- enum:
- apple,t6020-pinctrl
@@ -52,6 +53,8 @@ properties:
gpio-ranges:
maxItems: 1

+ gpio-reserved-ranges: true
+
apple,npins:
$ref: /schemas/types.yaml#/definitions/uint32
description: The number of pins in this GPIO controller.
@@ -90,6 +93,15 @@ patternProperties:

allOf:
- $ref: pinctrl.yaml#
+ - if:
+ not:
+ properties:
+ compatible:
+ contains:
+ const: apple,t8140-pinctrl
+ then:
+ properties:
+ gpio-reserved-ranges: false

required:
- compatible

--
2.55.0