GPIO pin

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO pin

Jump to solution
691 Views
Nirjul_Patel
Contributor III



Hello,


 I Use IMX8mm-ddr4-evk Board.And Already Built imx-image-multimedia
I Want To Write Direct Data to Address Of GPIO Pin So, How to Know Address Of GPIO Pin ?

Tags (1)
1 Solution
629 Views
Nirjul_Patel
Contributor III

Hello,


Thank Your Support

I Used imx8mm-ddr4-evk board, I Built imx-image-multimedia Image,

1 in the above linux-imx got gpio pin address
=> Can You Explain Path
2.every board u must chk board user guides and reference manual
=> I Check user Guide But Not Consider Them

3. for control gpio pin , we got 3 ways : bare metal, devices driver, and Linux kernel applications, depend on what u want
=> I want to Go Device Driver So, Where is gpio Driver File In Image

View solution in original post

0 Kudos
6 Replies
679 Views
josephzhou1
Contributor V

after you build, please go " <build_dir>/tmp/work/<board-poky-linux>/linux-imx/<version>/git/" to find out yours board DTSI files , all GPIO pins defines all r insides .

you may also want to read yours boards reference manual to get the details GPIO pins PHysical conections 

 

thanks 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos
671 Views
Nirjul_Patel
Contributor III

Hello,

 

In Built " <build_dir>/tmp/work/<board-poky-linux>/linux-imx/<version>/git/" git Is Not Directory And I Find Out On this Path But I Can Not Seen DTSI File

663 Views
josephzhou1
Contributor V

of cos must look ard lah...arch/arm64/boot/dts/freescale   search for "imx8"

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos
641 Views
Nirjul_Patel
Contributor III

 

Hello,

Thanks For Your Quickly Support


Can You Explain Answer Of My Bellow Question

1.How to Find Any Pin Address?
2. How to Convert Any Pin To GPIO Pin?
3.How To Write Data Data Direct Pin Address?

0 Kudos
635 Views
josephzhou1
Contributor V

 

 

 

 

root@imx8qxpmek:/sys/class/gpio# ls
export gpiochip128 gpiochip224 gpiochip472 gpiochip96
gpio32 gpiochip160 gpiochip32 gpiochip480 unexport
gpiochip0 gpiochip192 gpiochip464 gpiochip64
root@imx8qxpmek:/sys/class/gpio#

 

 

 

 

1 in the above linux-imx got gpio pin addresss 

2every board u must chk board user guides and reference manuals

3 for control gpio pin , we got 3 ways : bare metal, devices driver, and linux kernel applications, depend on what u want

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos
630 Views
Nirjul_Patel
Contributor III

Hello,


Thank Your Support

I Used imx8mm-ddr4-evk board, I Built imx-image-multimedia Image,

1 in the above linux-imx got gpio pin address
=> Can You Explain Path
2.every board u must chk board user guides and reference manual
=> I Check user Guide But Not Consider Them

3. for control gpio pin , we got 3 ways : bare metal, devices driver, and Linux kernel applications, depend on what u want
=> I want to Go Device Driver So, Where is gpio Driver File In Image

0 Kudos