Skip to content

Instantly share code, notes, and snippets.

@ion1
Created August 4, 2013 21:52
Show Gist options
  • Select an option

  • Save ion1/6152104 to your computer and use it in GitHub Desktop.

Select an option

Save ion1/6152104 to your computer and use it in GitHub Desktop.
Beagle Bone GPS PPS via GPIO
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "gps-pps";
version = "00A0";
exclusive-use = "P8.4", "gpio1_7";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
pps_pins: pinmux_pps_pins {
pinctrl-single,pins = <0x1c 0x27>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
pps {
compatible = "pps-gpio";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pps_pins>;
gpios = <&gpio2 7 0>;
assert-rising-edge;
};
};
};
};
@mpiannucci

Copy link
Copy Markdown

Which kernel did you use to make this work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment