Thanks for your detailed answer.
Now I have found these entries:
iomux-mx6q.h
MX6Q_PAD_GPIO_2_GPIO_1_2 \
IOMUX_PAD(0x0604, 0x0234, 5, 0x0000, 0, 0)
That seems right.
board-mx6q_sabresd.h
static iomux_v3_cfg_t mx6q_sabresd_pads[] = {
...
MX6Q_PAD_GPIO_2_GPIO_1_2.
...
}
That also seems right.
board-mx6q_sabresd.c
#define SABRESD_USR_DEF_RED_LED IMX_GPIO_NR(1, 2)
Now, I think something like gpio:output(SABRESD_USR_DEF_RED_LED) has to follow in this file.
However there ist not such an entry. Actually it is configured as an output. We can see this due to the led.
Do you know why these function calls are missing?
if (gpio_request(SABRESD_TEST_PIN, "TEST PIN") < 0) {
pr_err("%s() can't get TEST PIN", __func__);
}
gpio_direction_output(SABRESD_TEST_PIN, 1); // output high
or
gpio_direction_input(SABRESD_TEST_PIN); // input
Perhaps I have understood something wrong.
Thanks for your help.