Created
January 28, 2014 19:22
-
-
Save leearmstrong/8674334 to your computer and use it in GitHub Desktop.
PPS Source for GPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2013 the8thlayerof.net | |
* | |
* GPS cape for UART4 on connector pins P9.11 P9.13 P8.26 | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ | |
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "ti,beaglebone", "ti,beaglebone-black"; | |
/* identification */ | |
part-number = "T8LO-GPS"; | |
version = "00A0"; | |
/* state the resources this cape uses */ | |
exclusive-use = | |
/* the pin header uses */ | |
"P9.11", /* uart4_rxd */ | |
"P9.13", /* uart4_txd */ | |
"P8.26", /* gpio1_29 */ | |
/* the hardware ip uses */ | |
"uart4", | |
"gpio1_29"; | |
fragment@0 { | |
target = <&am33xx_pinmux>; | |
__overlay__ { | |
gps_uart4_pins: pinmux_gps_uart4_pins { | |
pinctrl-single,pins = < | |
0x70 0x26 /* P9.11 uart4_rxd.uart4_rxd MODE6 INPUT (RX) */ | |
0x74 0x26 /* P9.13 uart4_txd.uart4_rxd MODE6 OUTPUT (TX) */ | |
>; | |
}; | |
gps_pps_pins: pinmux_gps_pps_pins { | |
pinctrl-single,pins = < | |
0x7c 0x27 /* P8.26 gpio1_29 */ | |
>; | |
}; | |
}; | |
}; | |
fragment@1 { | |
target = <&uart5>; /* really uart4 */ | |
__overlay__ { | |
status = "okay"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&gps_uart4_pins>; | |
}; | |
}; | |
fragment@2 { | |
target = <&ocp>; | |
__overlay__ { | |
pps { | |
compatible = "pps-gpio"; | |
status = "okay"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&gps_pps_pins>; | |
gpios = <&gpio2 31 0 >; | |
assert-rising-edge; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment