This is an automated email from Gerrit.

"Jonathan Bell <jonat...@raspberrypi.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8363

-- gerrit

commit 60efe1b0afe325671ef782d7a640408af48c532d
Author: Jonathan Bell <jonat...@raspberrypi.com>
Date:   Tue Sep 10 10:02:29 2024 +0100

    interface/raspberrypi5-gpiod.cfg: use gpiochip 0
    
    Previously, Linux assigned gpiochip numbers sequentially depending on
    when the chip driver was probed. As RP1 is on the end of a PCIe link, it
    is probed later than the on-board chips (including expanders connected
    over SPI/I2C). This meant that RP1's gpiochip assignment was at an
    offset that could potentially change.
    
    A downstream kernel patch now assigns fixed offsets for RP1 and the
    onboard gpiochips, meaning a) the index won't change and b) it matches
    previous board models.
    
    Change-Id: Ifc508b7108032cd5a5578d07fb4be4cad5bed603
    Signed-off-by: Jonathan Bell <jonat...@raspberrypi.com>

diff --git a/tcl/interface/raspberrypi5-gpiod.cfg 
b/tcl/interface/raspberrypi5-gpiod.cfg
index 9624ad5114..f5a72fb2a1 100644
--- a/tcl/interface/raspberrypi5-gpiod.cfg
+++ b/tcl/interface/raspberrypi5-gpiod.cfg
@@ -24,5 +24,5 @@ if {![string match {*\[performance\]*} $pcie_aspm]} {
        echo "Warn : Issue 'echo performance | sudo tee 
/sys/module/pcie_aspm/parameters/policy'"
 }
 
-set GPIO_CHIP 4
+set GPIO_CHIP 0
 source [find interface/raspberrypi-gpio-connector.cfg]

-- 

Reply via email to