|
4 | 4 |
|
5 | 5 | /* |
6 | 6 | * dtparams: |
7 | | -* pin: (integer) Specifies the PPS Input pin. Takes the pin number correlating to the RPi 40-pin GPIO. Defaults to GPIO 18. |
| 7 | +* pin: (integer) Specifies the PPS Input pin. |
| 8 | +* Takes the pin number correlating to the RPi 40-pin GPIO. |
| 9 | +* Defaults to GPIO 18. |
8 | 10 | * pull-none: (boolean) Disable pull-up/down resistors on the PPS Input pin. |
9 | 11 | * pull-up: (boolean) Enable pull-up resistor on the PPS Input pin. |
10 | 12 | * pull-down: (boolean) Enable pull-down resistor on the PPS Input pin. |
11 | | -* schmitt-trigger: (boolean) Enable the Schmitt-trigger on the PPS Input pin. Defaults to off. |
12 | | -* echo-pin: (integer) Specifies the PPS Echo Output pin. Takes the pin number correlating to the RPi 40-pin GPIO. Defaults to GPIO 17. |
13 | | -* echo-ms: (integer) Specifies the pulse-width in ms that the echo signal outputs on the PPS Echo Output pin. Must be less than 999. Defaults to 10ms. |
14 | | -* echo: (boolean) Enables the PPS Echo Output signal. Defaults to off. |
15 | | -* capture-clear: (boolean) Captures the clear event time. Defaults to off. |
16 | | -* assert-falling-edge: (boolean) Uses the falling signal edge instead of the rising signal edge. Defaults to off. |
| 13 | +* schmitt-trigger: (boolean) Enable the Schmitt-trigger on the PPS Input pin. |
| 14 | +* Defaults to off. |
| 15 | +* echo-pin: (integer) Specifies the PPS Echo Output pin. |
| 16 | +* Takes the pin number correlating to the RPi 40-pin GPIO. |
| 17 | +* Defaults to GPIO 17. |
| 18 | +* echo-ms: (integer) Specifies the pulse-width in ms that the echo signal outputs |
| 19 | +* on the PPS Echo Output pin. |
| 20 | +* Must be less than 999. |
| 21 | +* Defaults to 10ms. |
| 22 | +* echo: (boolean) Enables the PPS Echo Output signal. |
| 23 | +* Defaults to off. |
| 24 | +* capture-clear: (boolean) Captures the clear event time. |
| 25 | +* Defaults to off. |
| 26 | +* assert-falling-edge: (boolean) Uses the falling signal edge instead of the |
| 27 | +* rising signal edge. |
| 28 | +* Defaults to off. |
17 | 29 | */ |
18 | 30 |
|
19 | 31 | /dts-v1/; |
|
36 | 48 | }; |
37 | 49 |
|
38 | 50 | fragment@1 { |
39 | | - target = <&gpio>; |
| 51 | + target = <&gpio>; |
40 | 52 | __overlay__ { |
41 | 53 | pps_gpios: pps_gpios@ { |
42 | 54 | pps_in: pps_in@ { |
|
74 | 86 | <&pps>,"gpios:4{,=18}", |
75 | 87 | <&pps_gpios>,"reg:0{,=18}", |
76 | 88 | <&pps_in>,"reg:0{,=18}", |
77 | | - <&pps_in>,"pins{2=gpio2,3=gpio3,4=gpio4,17=gpio17,27=gpio27,22=gpio22,10=gpio10,9=gpio9,11=gpio11,0=gpio0,5=gpio5,6=gpio6,13=gpio13,19=gpio19,26=gpio26,14=gpio14,15=gpio15,18=gpio18,23=gpio23,24=gpio24,25=gpio25,8=gpio8,7=gpio7,1=gpio1,12=gpio12,16=gpio16,20=gpio20,21=gpio21,=gpio18}"; |
| 89 | + <&pps_in>,"pins{2=gpio2,3=gpio3,4=gpio4,17=gpio17,27=gpio27,22=gpio22, |
| 90 | + 10=gpio10,9=gpio9,11=gpio11,0=gpio0,5=gpio5,6=gpio6,13=gpio13, |
| 91 | + 19=gpio19,26=gpio26,14=gpio14,15=gpio15,18=gpio18,23=gpio23, |
| 92 | + 24=gpio24,25=gpio25,8=gpio8,7=gpio7,1=gpio1,12=gpio12,16=gpio16, |
| 93 | + 20=gpio20,21=gpio21,=gpio18}"; |
78 | 94 | pull-none = <&pps_in>,"bias-disable?"; |
79 | 95 | pull-up = <&pps_in>,"bias-pull-up?"; |
80 | 96 | pull-down = <&pps_in>,"bias-pull-down?"; |
|
83 | 99 | capture-clear = <&pps>,"capture-clear?"; |
84 | 100 | echo-pin = |
85 | 101 | <&pps_out>,"reg:0{,=17}", |
86 | | - <&pps_out>,"pins{2=gpio2,3=gpio3,4=gpio4,17=gpio17,27=gpio27,22=gpio22,10=gpio10,9=gpio9,11=gpio11,0=gpio0,5=gpio5,6=gpio6,13=gpio13,19=gpio19,26=gpio26,14=gpio14,15=gpio15,18=gpio18,23=gpio23,24=gpio24,25=gpio25,8=gpio8,7=gpio7,1=gpio1,12=gpio12,16=gpio16,20=gpio20,21=gpio21,=gpio17}", |
| 102 | + <&pps_out>,"pins{2=gpio2,3=gpio3,4=gpio4,17=gpio17,27=gpio27,22=gpio22, |
| 103 | + 10=gpio10,9=gpio9,11=gpio11,0=gpio0,5=gpio5,6=gpio6,13=gpio13, |
| 104 | + 19=gpio19,26=gpio26,14=gpio14,15=gpio15,18=gpio18,23=gpio23, |
| 105 | + 24=gpio24,25=gpio25,8=gpio8,7=gpio7,1=gpio1,12=gpio12,16=gpio16, |
| 106 | + 20=gpio20,21=gpio21,=gpio17}", |
87 | 107 | <&pps_echo>,"echo-gpios:4{,=17}"; |
88 | 108 | echo-ms = <&pps_echo>,"echo-active-ms:0"; |
89 | 109 | echo = <0>,"+2+3"; |
|
0 commit comments