Hello All,
Thank you for the inputs.
Even after adding the configurations below in the DTS file, the GPIO state still does not retain.
pinctrl-names = "default","sleep";
pinctrl-0 = <&pinctrl_hog>;
pinctrl-1 = <&pinctrl_hog_sleep>;
pinctrl_hog: hoggrp {
fsl,pins = <
IMX8DXL_QSPI0B_SCLK_LSIO_GPIO3_IO17 0x2600004c
>;
};
pinctrl_hog_sleep: hogsleepgrp {
fsl,pins = <
IMX8DXL_QSPI0B_SCLK_LSIO_GPIO3_IO17 0x2780004c
>;
};
During boot-up, the GPIO is in a low state, and in userspace, it is setting to high. However, when the device enters sleep mode, the GPIO does not retain its state and defaults back to low.
Regards,
Tanushree