Skip to content

Instantly share code, notes, and snippets.

Created March 23, 2015 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1293f98cca577751846c to your computer and use it in GitHub Desktop.
Save anonymous/1293f98cca577751846c to your computer and use it in GitHub Desktop.
/*
* Copyright (C) 2013 the8thlayerof.net
*
* GPS cape for UART4 on connector pins P9.11 P9.13 P8.4
*
* 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 = "DD-TEMP";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P8.11", /* GPIO_45 */
/* the hardware ip uses */
"gpio1_13"; /* note: counting starts at 0 */
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
temp_w1_pins: pinmux_temp_w1_pins {
pinctrl-single,pins = <
0x34 0x37 /* gpmc_ad13.gpio1_13, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE7 */
>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
onewire@0 {
status = "okay";
compatible = "w1-gpio";
pinctrl-names = "default";
pinctrl-0 = <&temp_w1_pins>;
gpios = <&gpio2 13 0>; /* note: counting starts at 1 */
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment