@mitu hello and thank you for your answer.
I did what you suggested and nothing happened, but after trying over an over I could make the controller to work.
The thing was that the system didn´t recognize the HID of the device, so I modified the cmdline.txt file to ignore special drivers. After a reboot the controller was detected as a ps3 controller.
By now is working flawlesly wired. I have to figure out now how to connect it by bluetooth.
thank you!