Hi,
I am trying to interface an SDIO wifi module with the AM3358. The WiFi module requires a 32KHz clock which is being generated from ehprpwm1B. I am able to configure the dts entry to pinmux the required pin so that I can configure the pwm once the target is up and running. However, the WiFi module ( which uses the omap_hsmmc.c functionality to register the device appears to want all pins configured correctly by the time it runs. Additionally, if I try to build the WiFi driver as a module, it appears that the omap_hsmmc.c does not scan for the device once the driver is insmoded. What I am currently trying to do is to configure the ehrpwm1B so that the clock will already be running by the time the WiFi module init function is run ( I am not sure if this is the correct way, but I need to at least start talking to the WiFi module and this seems like a reasonable way to go )
My current dts entries that I am using to configure the pwm are shown below
wifi_sleep_clock_pins: pinmux_wifi_sleep_clock_pins {
pinctrl-single,pins = <
0x4c 0x06 /* gpmc_a3 -> gpio1_19 ( 6 -> ehrpwm1b 7 -> gpio1_19 ) */
>;
};
&epwmss1 {
status = "okay";
ehrpwm1: ehrpwm@48302200 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&wifi_sleep_clock_pins>;
};
};
What I would like to do is to add the specific dts entries to the ehrpwm1: fragment so that the ehrpwm1b will be completely configured and run at init time.
Based on reading thru the documentation, the configurations I need would appear to be period, duty_cycle and enable.
Is there a way to add these parameters to the above dts entry so that the pwm will be completely configured and run autoomatically.
Note that I followed the instructions the TI PWM guide and I do see the correct values in the /sys/class/pwm/pwm4 directory. However due to the rescan issue, I believe that the WiFI module is not detected by the omap_hsmmc code
Thanks