openwrt/target/linux/bcm27xx/patches-6.6/950-1090-dtoverlays-Fix-noints-mode-of-mcp23017.patch
Álvaro Fernández Rojas 8c405cdccc bcm27xx: add 6.6 kernel patches
The patches were generated from the RPi repo with the following command:
git format-patch v6.6.34..rpi-6.1.y

Some patches needed rebasing and, as usual, the applied and reverted, wireless
drivers, Github workflows, READMEs and defconfigs patches were removed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-06-18 18:52:49 +02:00

41 lines
1.3 KiB
Diff

From 384ad7fd45ab61b8260f400a069d2ca5e7dffe82 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Thu, 16 May 2024 18:24:01 +0100
Subject: [PATCH 1090/1135] dtoverlays: Fix noints mode of mcp23017
noints mode disables 2 fragments that configure a GPIO to
be used for the interrupt line from the MCP23017, but fails
to remove the pinctrl-0 reference or pinctrl-names.
It therefore fails to load due to an invalid phandle.
Move the pinctrl-0 and pinctrl-names properties so they
also get disabled by the noints override.
https://forums.raspberrypi.com/viewtopic.php?t=370907
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
arch/arm/boot/dts/overlays/mcp23017-overlay.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
+++ b/arch/arm/boot/dts/overlays/mcp23017-overlay.dts
@@ -34,6 +34,8 @@
target = <&mcp23017>;
mcp23017_irq: __overlay__ {
#interrupt-cells=<2>;
+ pinctrl-name = "default";
+ pinctrl-0 = <&mcp23017_pins>;
interrupt-parent = <&gpio>;
interrupts = <4 2>;
interrupt-controller;
@@ -49,8 +51,6 @@
mcp23017: mcp@20 {
compatible = "microchip,mcp23017";
- pinctrl-name = "default";
- pinctrl-0 = <&mcp23017_pins>;
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;