openwrt/target/linux/bcm27xx/patches-4.19/950-0689-overlays-mcp23017-rename-the-GPIO-pins-node-with-the.patch
Adrian Schmutzler 7d7aa2fd92 brcm2708: rename target to bcm27xx
This change makes the names of Broadcom targets consistent by using
the common notation based on SoC/CPU ID (which is used internally
anyway), bcmXXXX instead of brcmXXXX.
This is even used for target TITLE in make menuconfig already,
only the short target name used brcm so far.

Despite, since subtargets range from bcm2708 to bcm2711, it seems
appropriate to use bcm27xx instead of bcm2708 (again, as already done
for BOARDNAME).

This also renames the packages brcm2708-userland and brcm2708-gpu-fw.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
2020-02-14 14:10:51 +01:00

38 lines
1.1 KiB
Diff

From 9802671acf4250d6541d175ba599da03cee8acc1 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
Date: Thu, 5 Sep 2019 17:36:38 +0100
Subject: [PATCH] overlays: mcp23017: rename the GPIO pins node with
the device
In order to allow the overlay to be loaded multiple times the
GPIO node for the interrupt line needs to be unique.
Rename it based on the MCP23017 I2C address
https://github.com/raspberrypi/linux/issues/3207
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
---
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
@@ -16,7 +16,7 @@
fragment@1 {
target = <&gpio>;
__overlay__ {
- mcp23017_pins: mcp23017_pins {
+ mcp23017_pins: mcp23017_pins@20 {
brcm,pins = <4>;
brcm,function = <0>;
};
@@ -55,7 +55,7 @@
__overrides__ {
gpiopin = <&mcp23017_pins>,"brcm,pins:0",
<&mcp23017>,"interrupts:0";
- addr = <&mcp23017>,"reg:0";
+ addr = <&mcp23017>,"reg:0", <&mcp23017_pins>,"reg:0";
mcp23008 = <0>,"=3";
};
};