GPS PPS�GPIO on H3
3 3

17 posts in this topic

Why do you say that H3 doesn't support device tree yet ?

It does, but not using Legacy !

But maybe you mean it doesn't support "overlays" yet ...

Share this post


Link to post
Share on other sites

I plug the GPS module PPS output to OPiOne's GPIO pin PG09,

 

modify fex file to release PG09 from GPIO,

 

and then run gpsd,  PPS worked!  

 

It's very strange, no any device tree setup.

Share this post


Link to post
Share on other sites

If you're using a fex file then you're using a old kernel 3.4.XXX.

Newer kernel use DT

Share this post


Link to post
Share on other sites

modify fex file like this:

 

[uart1]

uart_used = 1
uart_port = 1
# 2 for 2-wire
uart_type = 2
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
 
[gpio_para]
gpio_used = 1
gpio_num = 16
...
#gpio_pin_17 = port:PG09<0><default><default><0>
 
#for UART1
#gpio_pin_18 = port:PG06<1><default><default><default>
#gpio_pin_19 = port:PG07<1><default><default><default>

Share this post


Link to post
Share on other sites

o, PG09 is GPIO 201, so 

yaofei@opigps:/etc$ more modprobe.d/pps-gpio.conf
#PG9 = 32*6 + 9 = 201
options pps-gpio gpio_pin=201

Share this post


Link to post
Share on other sites

Wow :)

 

What is then the algorithm counting pins?

 

PA = 0

PB = 1

PC = 2

PD = 3

PE = 4

PF = 5

PG = 6

 

Physical pin 18 this PC07 pin H3

PC07 = 32*2 + 7 = 71

This is the correct understanding?

Share this post


Link to post
Share on other sites

Wow :)

 

What is then the algorithm counting pins?

 

PA = 0

PB = 1

PC = 2

PD = 3

PE = 4

PF = 5

PG = 6

 

Physical pin 18 this PC07 pin H3

PC07 = 32*2 + 7 = 71

This is the correct understanding?

 

Yeah, you're so smart .

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
3 3

  • Support the project

    We need your help to stay focused on the project.

    Choose the amount and currency you would like to donate in below.