From 07fd3150e3a4632c3f280d1d12802120c9b8020d Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Fri, 16 Jan 2026 09:48:48 +0100 Subject: [PATCH 1/2] Update includes subdirectory revision Signed-off-by: Stefan Wahren --- includes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes b/includes index 420a5fa..44c737d 160000 --- a/includes +++ b/includes @@ -1 +1 @@ -Subproject commit 420a5fa92aacc9ac4b34421fe0b56ca8ec4fa961 +Subproject commit 44c737dfc4f5a8ca71abb2b4c402b845e45995b8 From bdafb6cf6f3ce8d2ec8fd6d07ab421f7b791251d Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Fri, 16 Jan 2026 09:49:22 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Troubleshooting:=20Add=20FAQ=20about=20GPIO?= =?UTF-8?q?=20numbering=20&=20available=20I=C2=B2C=20interfaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Wahren --- docs/source/troubleshooting.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/source/troubleshooting.rst b/docs/source/troubleshooting.rst index b01d56d..cf96a66 100644 --- a/docs/source/troubleshooting.rst +++ b/docs/source/troubleshooting.rst @@ -49,6 +49,21 @@ we recommend the usage of chardev GPIO and libgpiod. The modification of the bia settings via libgpiod is not yet implemented, so it needs to be done via device tree. +My application depends on libgpiod but requires GPIO numbers, how can I figure them out? +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +For such legacy applications which rely on GPIO numbers, you can use the following: + +.. code-block:: console + + root@chargesom:/# cat /sys/kernel/debug/gpio + gpiochip0: GPIOs 512-541, parent: platform/43810000.gpio, 43810000.gpio: + gpio-512 (SPI_PLC_nCS0 |spi1 CS0 ) out hi ACTIVE LOW + ... + +The GPIO number is in the first column ( gpio-XXX ). + + What is the difference between CHSTOP_IN and SAFETY_ESTOPx? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -85,6 +100,20 @@ counting from zero (ttyLP0 = UART1, ...). 4: uart:FSL_LPUART mmio:0x42590010 irq:20 tx:0 rx:0 CTS|DSR|CD +How can I list the available I²C interfaces? +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +All I²C interfaces are available via I²C device driver. Please keep in mind that +Linux starts counting from zero (i2c-0 = I2C1, ...). + +.. code-block:: console + + root@chargesom:/# i2cdetect -l + i2c-0 i2c 44340000.i2c I2C adapter + i2c-1 i2c 44350000.i2c I2C adapter + i2c-2 i2c 42530000.i2c I2C adapter + + How can I print the current pin/pad control settings (e.g. bias, drive strength)? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^