Skip to content

Commit 8100d46

Browse files
committed
Troubleshooting: Add more recent FAQs
Signed-off-by: Stefan Wahren <stefan.wahren@chargebyte.com>
1 parent 97e59da commit 8100d46

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

docs/source/troubleshooting.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ and a `library <https://github.com/EVerest/everest-core/tree/main/lib/everest/ca
4141
which uses the CAN interface. This might help as a starting point.
4242

4343

44+
How can I access the GPIOs under Linux?
45+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46+
47+
Since the GPIO sysfs interface /sys/class/gpio has been deprecated since Linux 4.8,
48+
we recommend the usage of chardev GPIO and libgpiod. The modification of the bias
49+
settings via libgpiod is not yet implemented, so it needs to be done via device tree.
50+
51+
4452
What is the difference between CHSTOP_IN and SAFETY_ESTOPx?
4553
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4654

@@ -50,6 +58,50 @@ for timing critical use cases. Currently there is no EVerest module, which is ab
5058
In order to realize realtime emergency stop behavior use the SAFETY_ESTOPx signals, which are connected to the safety processor.
5159

5260

61+
How can I list the available UARTs?
62+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63+
64+
All UARTs of the i.MX93 are handled by the fsl-lpuart driver, so the following
65+
command should list all available UARTs. Please keep in mind that Linux starts
66+
counting from zero (ttyLP0 = UART1, ...).
67+
68+
.. code-block::
69+
70+
root@chargesom:/# cat /proc/tty/driver/fsl-lpuart
71+
serinfo:1.0 driver revision:
72+
0: uart:FSL_LPUART mmio:0x44380010 irq:17 tx:9932 rx:0 RTS|CTS|DTR|DSR|CD
73+
2: uart:FSL_LPUART mmio:0x42570010 irq:18 tx:12966 rx:26572 RTS|CTS|DTR|DSR|CD
74+
3: uart:FSL_LPUART mmio:0x42580010 irq:19 tx:936 rx:617 RTS|CTS|DTR|DSR|CD
75+
4: uart:FSL_LPUART mmio:0x42590010 irq:20 tx:0 rx:0 CTS|DSR|CD
76+
77+
78+
How can I print the current pin/pad control settings (e.g. bias, drive strength)?
79+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80+
81+
The current PAD control settings are available under Linux only via debugfs,
82+
but this requires an equivalent pinctrl setting within the device tree:
83+
84+
.. code-block::
85+
86+
cat /sys/kernel/debug/pinctrl/443c0000.pinctrl/pinconf-pins
87+
Pin config settings per pin
88+
Format: pin (name): configs
89+
pin 0 (IMX93_IOMUXC_DAP_TDI): . .
90+
91+
92+
Which LVDS displays have been tested with the Charge SOM EVB?
93+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94+
95+
The `Distec DD-0700-MC01 <https://www.fortec-integrated.de/en/products/tft-components/tft-displays/detail/fortec-integrated/dd-0700-mc01/>`_
96+
(7 inch, 800x480 resolution) has been tested with the Charge SOM EVB.
97+
98+
99+
I like to create my own DT overlay. Is there an example?
100+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101+
102+
Yes, please have a look at this `commit <https://github.com/chargebyte/linux/commit/125a587a0cf7e8d9db1fdddf9383a67c2b46d107>`_ .
103+
104+
53105
Where can I find the device tree sources of the Charge SOM?
54106
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55107

0 commit comments

Comments
 (0)