Dear Sirs,
I am using efus A9 (quad core) Rev 1.21 and EFUS-SINTF board rev 1.50 and I am trying to enable GPIO6_IO15 (/sys/class/gpio/gpio175).
My environment is based on Yocto image fsimx6-Y2022.09.
Basically I want to use pin multiplexing MX6QDL_PAD_NANDF_CS2__GPIO6_IO15.
DEVICE TREE CHANGES:
I modified default efusa9q.dts and defined board revision as 121 (from 120):
As the default signal function is CAM_MCLK, I disabled all camera defines in efusa9q.dts:
- /* Camera connected */
- // CAMERA disabled to allow GPIO6_IO16 and GPIO5_IO19
- // #define CONFIG_EFUSA9_CAMERA
- /* Camera on parallel CSI interface */
- //#define CONFIG_EFUSA9_PARALLEL_CAMERA
- /* Camera on serial MIPI CSI interface */
- // #define CONFIG_EFUSA9_SERIAL_CAMERA
- /* In case of MIPI, select one of the following cameras */
- //#define CONFIG_EFUSA9_MIPI_CAMERA_OV564X
- //#define CONFIG_EFUSA9_MIPI_CAMERA_ISL7998X
Then I checked efusa9qdl.dtsi and I noticed that in hoggrp-1 there is still a definition for MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 despite the fact that camera is disabled, so I replaced it with MX6QDL_PAD_NANDF_CS2__GPIO6_IO15 (though I think it is not needed).
- imx6qdl-efusa9 {
- /* Pin configs that don't belong anywhere else */
- pinctrl_hog_1: hoggrp-1 {
- fsl,pins = <
- /* Audio clock */
- MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0
- #if (CONFIG_EFUSA9_BOARD_REVISION >= 121)
- /* Camera clock 24MHz */
- /* MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x110b0 */
- MX6QDL_PAD_NANDF_CS2__GPIO6_IO15 0x1b0b0
Then I've built device tree, applied it to panel, booted device and exported GPIO:
According to efus A9 GPIO Reference Card, GPIO6_IO15 shall be available on EFUS-SINTF pins J18_13 and J20_12.
However when measuring J20_12 with multi-meter (and J18_13 though it is difficult to measure that one), I still get 1.54V no matter what gpio175/value I set. I do not have oscilloscope, but it seems to me that the clock signal CLKO2 is still there.
I am not having these issues with GPIO5_IO19 (/sys/class/gpio/gpio147) originally defined as CAM_HREF. I can control that one via /sys/class/gpio/gpio147 since I disabled the camera.
What could be interfering with this pin? Is there something additional that I need to disable to enable GPIO6_IO15 properly?
Thanks,
Jaroslav