This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Settings for Vibrator

Hello All,

               I am using BBB and i need to connect the vibrator externally. so, can i connect the vibrator motor with any GPIO or its should need to connect with EHRPWM pins? Because in GP evm's kernel it was configured as GPIO1_20. 

 And  i am referred to  board-am335xevm-vibrator.c in

 int __init am335xevm_vibrator_init(void)
{
.
....
omap_mux_init_signal("gpmc_a4.gpio1_20", OMAP_MUX_MODE7 | OMAP_PIN_OUTPUT);
.
....
}
"am335xevm_vibrator_init" called under "setup_general_purpose_evm" in board-am335xevm.c
Because of CPLD i cant trace the original ball in processor for "HAPTICS_TRIG". 
Rite now i've BBB in P9 header EHRPWM1A & EHRPWM1B is available. can i use any one of it? 
Then what is the use of "omap_mux_init_signal("gpmc_a4.gpio1_20", OMAP_MUX_MODE7 | OMAP_PIN_OUTPUT);"? There is no connection except "HAPTICS_TRIG"(EHRPWM2B) schematic then what is the use of GPIO1_20?

                                                              Thanks in advance.
  • HI Kala,

    Only one signal GPIO1_20 is required for the haptics vibrator on AM335X EVM.

    http://processors.wiki.ti.com/index.php/AM335x_General_Purpose_EVM_HW_User_Guide#Haptics_Mechanical_Vibrator

    The GPIO is used to turn on and off the vibrator. The duration of the vibration is controlled from the driver and android.

    Thanks,

    Arun

  • Hello Sir,

                   Thanks for your reply. I am using customized am335x_sk board.

    It means i need to add in the setup_starterkit

    static void setup_starterkit(void)
    {

    ..................

    ...................

    am335xevm_vibrator_init();

    }

    (or) can u say the procedure to initialize for the vibration.


    Secondly, What is the purpose of haptics_init() in the board-am335xevm.c

    whether we can use it for controlling the vibrator ? 

    as it is seen in p9 header and the pins are:

    EHRPWM2A,EHRPWM2B

     and in p8 header

    EHRPWM1A.

    It is possible to use the above mentioned pins for vibrator (or) the gpio1_20 pin to control.

                             Thanks in advance




  • Hello Arun,

         Are you sure about its need only GPIO1_20?

    Please find this thread and let us clear http://e2e.ti.com/support/arm/sitara_arm/f/791/p/282065/983515.aspx#983515

    GPIO1_20 & gpmc_ad9.ehrpwm2B both are confusing. 


    Thanks 

    Sangly.