Hi,
I'm working on a project with the AM3517, mounted on a module TAM3517 from Technexion and a base board that has been developed in our company. The OS currently in use is linux 2.6.32.
I need to access a certain selection of MPU pins as GPIOs. While that works very well for some of them, I'm having problems with others.
The GPIOs causing problems so far are gpio_100 to gpio_104 on pins ccdc_data1 to ccdc_data5. They neither work as input nor as output.
In the module's manual these pins are marked with a footnote saying "To use these signals as GPIOs requires additional software effort.". But in the AM35x Technical Reference Manual I don't see anything that would make them different from other GPIOs.
What do I overlook?
The pins belong to the camera interface and of course I don't load any camera driver.
For muxing I used code like this:
ret = gpio_request(102, "nCONFIG"); if (ret) goto free_nCONFIG; omap_mux_init_gpio(102, OMAP_PIN_OUTPUT); gpio_direction_output(102); /* is that still necessary? */ gpio_export(102, 1)
or alternatively I used
ret = gpio_request(102, "nCONFIG"); if (ret) goto free_nCONFIG; omap_mux_init_signal("cam_d3.gpio_102", OMAP_PIN_OUPUT); gpio_direction_output(102); gpio_export(102, 1 );
Additionally I enable clock "gpio4_ick".
I get no errors but all the expected device files on /sys/class /gpio/gpio102. But the "value" attribute and the pin state, as measured with an oscilloscope, are completely uncorrelated in both input and output mode. What could I be doing wrong?
Any help is highly appreciated! :)