Hello, Everyone.
Currently, my company is developing a custom board for i.MX 8ULP.
However, I'm having trouble accessing PTB0 and PTB1 on Linux.
~# gpioset gpiochip1 0=1
gpioset: error setting the GPIO line values: Invalid argument
~# gpioget gpiochip1 0
gpioget: error reading GPIO values: Invalid argument
Even if you try to define PTB0 and PTB1 as GPIOs in the device tree, they cannot be defined in the same way as PTD and PTF.
Instead, something like `rpmsg_gpiob` is defined.
rpmsg_gpiob: gpio@1 {
compatible = "fsl,imx-rpmsg-gpio";
port_idx = <1>;
gpio-controller;
#gpio-cells = <2>;
#interrupt-cells = <2>;
interrupt-controller;
interrupt-parent = <&rpmsg_gpiob>;
status = "okay";
};
So, upon investigating i.MX 8ULP SoC, it was determined that PTB0 and PTB1 are RTDs.
I am currently developing with Yocto. Is it possible to enable access to PTB0 and PTB1 on Linux using Yocto?