I have a imx8mp board where I need to configure the gpio4_io28 pin as output and high so how to configure it as a output and high &iomuxc {
pinctrl_csi0_rst: csi0_rst_grp {
fsl,pins = <
MX8MP_IOMUXC_GPIO4_IO28__GPIO4_IO28 0x19
>;
};
};
Hi @Ajayvk!
The configuration should be:
MX8MP_IOMUXC_SAI3_RXF__GPIO4_IO28 0x150
on your node of csi0_rst you have to add the lines:
gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
default-state = "on";
Best Regards!
Chavira
Thank you for the information @Chavira can you please provide the more details how you have given this address as with 0x150 the direction will remain as input high only .but i need direction to be output .In the given address the 8th bit =1 and 6th bit =1 which will configure pull-enable and weak pull up .But i need high with output direction please provide the information to configure as output with high
Hi @Ajayvk!
Sorry, I misunderstood the purpose of your application!
You want to use the GPIO4_IO28 as a CSI reset.
The pinctrl is ok should be:
pinctrl_csi0_rst: csi0_rst_grp {
fsl,pins = <
MX8MP_IOMUXC_SAI3_RXF__GPIO4_IO28 0x150
>;
};
};
On the CSI device you have to configure a reset like this:
reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
You can get based on the device tree of our board:
https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L578...
After that, you have the pin as an output in High state.
Best Regards!
Chavira