How set GPIO high at boot time on imx6ul

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How set GPIO high at boot time on imx6ul

1,341 Views
mihaitaivascu
Contributor III

Hello,

     I would need to set some TAMPER GPIOs at boot time: MX6UL_PAD_SNVS_TAMPER4__GPIO5_IO06, e

 tc

     It is enough to do it in the barebox device tree setting them ACTIVE HIGH. If so where exactly in the device tree?

    

     Also I am trying to assign some signals to different GPIOs as the default GPIOs are used by other kernel modules.

     I could not find programming model for imx6ul or GPIO details in the hardware manual/application processor manual.

     Could somebody point me to the imx6ul documentation that explains GPIOs registers and functions ?

Thanks,

      Mihaita

Labels (1)
0 Kudos
3 Replies

932 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mihaita

I am afraid it is not possible to set gpio level in device tree setting, one can set it in

uboot/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c or in plugin, if using plugin mode.

>Could somebody point me to the imx6ul documentation that explains GPIOs registers and functions ?

Chapter 26 General Purpose Input/Output (GPIO) i.MX6UL Reference Manual

http://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf

For linux documentation one can look on documents provided on

i.MX Software|NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

932 Views
mihaitaivascu
Contributor III

Hi Igor,

       Thanks for your answer.

       I saw some examples where gpios were set high in device tree. The following will not do it?

pastedImage_1.png

    Also I have looked at the imx6 manual but there is no programming model for it. I need to know the programming model for the imx6ul.

     For example I have some GPIOs that I wanted to use for something but I see some kernel modules are already using them so I need to see which other GPIOs/ signals can be used for power or Wifi, etc. Also I need to know the GPIO registers mapping in memory. And the GPIO functions.

     I could not find that information so far on NXP resources. In that document I found only this about GPIOs Tamper:

pastedImage_2.png

Thanks,

      Mihaita

0 Kudos

932 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mihaita

you can get additional details (in particular for "enable-gpios") in linux/Documentation/devicetree/bindings

documentation. Tamper pins are described in

Security Reference Manual for the i.MX 6UltraLite Applications Processor  (moderated link)
https://www.nxp.com/webapp/sps/download/mod_download.jsp?colCode=IMX6UL-SRM&appType=moderated&Parent...

Best regards
igor

0 Kudos