Advertisement
Guest User

DS18B20

a guest
Aug 21st, 2014
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * Modified by Russell Senior from the weather cape's DTS file.
  9. * Minor formatting by C W Rose.
  10. */
  11. /dts-v1/;
  12. /plugin/;
  13.  
  14. / {
  15. compatible = "ti,beaglebone", "ti,beaglebone-black";
  16. part-number = "BB-W1";
  17. version = "00A0";
  18.  
  19. exclusive-use = "P8.11";
  20.  
  21. fragment@0 {
  22. target = <&am33xx_pinmux>;
  23. __overlay__ {
  24. bb_w1_pins: pinmux_bb_w1_pins {
  25. pinctrl-single,pins = <0x34 0x37 /* gpmc_ad13.gpio1_13, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE7 - w1-gpio */ >;
  26. };
  27. };
  28. };
  29.  
  30. fragment@1 {
  31. target = <&ocp>;
  32. __overlay__ {
  33. onewire@0 {
  34. status = "okay";
  35. compatible = "w1-gpio";
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&bb_w1_pins>;
  38.  
  39. gpios = <&gpio2 13 0>;
  40. };
  41. };
  42. };
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement