Jump to content
Sign in to follow this  
doyoung

CPU GIPO Number to dts code gpio no

Recommended Posts

Hi

I am writing gt928.dts on Tinker Board 2S Debian stretch.
>gpio readall
  cpu wPi Name
158 23 GPIO4C6 ---->irq-gpios
121 24 GPIO3D1 ----->reset-gpios
I want to code with
irq-gpios = <&gpio4 ? 0>;
reset-gpios = <&gpio3 ?? 0>;

What number to put in ? and ??

Share this post


Link to post
Share on other sites

Hi @doyoung

Please try as follows
irq-gpios = <&gpio4 RK_PC6 0>;  => GPIO4C6
reset-gpios = <&gpio3 RK_PD1 0>;  => GPIO3D1

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...