Hi All,
Am trying to use GPIO5_7 pin part of MCASP1 as GPIO output pin. That pin will be on expansion connector P17 pin number 15 of EVM_AM572x.
Not able to access that pin as GPIO. Is it possible to use that pin as GPIO. Under mux_dat.h that pin already configured by default as gpio5_7
In dts file linux side I added gpio-controller like
mcasp@48460000 { compatible = "ti,dra7-mcasp-audio"; ti,hwmods = "mcasp1"; reg = <0x48460000 0x2000 0x45800000 0x1000>; reg-names = "mpu", "dat"; interrupts = <0x0 0x68 0x4 0x0 0x67 0x4>; interrupt-names = "tx", "rx"; dmas = <0xf7 0x81 0x1 0xf7 0x80 0x1>; dma-names = "tx", "rx"; clocks = <0xf8 0xf9 0xfa>; clock-names = "fck", "ahclkx", "ahclkr"; #status = "disabled"; gpio-controller; #gpio-cells = <2>; #gpio = <0x1a5 0x7 0x0>; status = "okay"; phandle = <0x1fd>; };
MUX_dat.h:
{MCASP1_AXR5, (M14 | PIN_OUTPUT_PULLUP)}, /* mcasp1_axr5.gpio5_7 */
What else will be required need to be configured to use this pin in general purpose mode.
Although am able to use this pin by using sysfs.
Regards,
Geek13