Skip to content

Commit d384a59

Browse files
drivers: gpio: silabs: add lookup table documentation
This commit only adds documentation. It will help a user to translate pinout from the reference manual to a device tree gpio (HP and ULP). Signed-off-by: Martin Hoff <[email protected]>
1 parent 4bd1d39 commit d384a59

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

drivers/gpio/gpio_silabs_siwx91x.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
CONFIG_GPIO_INIT_PRIORITY.
2828
#endif
2929

30+
/* Lookup table: Port-Pin (dts) -> SoC Pin (HP Pin from reference manual) */
31+
/* */
32+
/* Port: A A A A B B B B B B B C C C C C D D D D D D D D D D */
33+
/* Pin : 10 11 12 15 09 10 11 12 13 14 15 00 01 02 14 15 00 01 02 03 04 05 06 07 08 09 */
34+
/* */
35+
/* HP : 10 11 12 15 25 26 27 28 29 30 31 32 33 34 46 47 48 49 50 51 52 53 54 55 56 57 */
36+
3037
#define MAX_PORT_COUNT 4
3138
#define MAX_PIN_COUNT 16
3239
#define INVALID_PORT 0xFF

drivers/gpio/gpio_silabs_siwx91x_uulp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
#include <zephyr/drivers/gpio.h>
2121
#include <zephyr/drivers/gpio/gpio_utils.h>
2222

23+
/* Lookup table: Pin (dts) -> SoC Pin (ULP Pin from reference manual) */
24+
/* */
25+
/* Pin : 0 1 2 3 4 */
26+
/* */
27+
/* ULP : 0 1 2 3 4 */
28+
2329
#define UULP_GPIO_COUNT 5
2430
#define UULP_REG_INTERRUPT_CONFIG 0x10
2531

0 commit comments

Comments
 (0)