Advertisement
Guest User

Untitled

a guest
Nov 15th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. [root@alarm ~]# cat nocape-dual-w1-00A0.dts
  2. /*
  3. * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9.  
  10. /dts-v1/;
  11. /plugin/;
  12.  
  13. / {
  14. compatible = "ti,beaglebone", "ti,beaglebone-black";
  15. part-number = "BB-BONE-2W1";
  16. version = "00A0";
  17.  
  18. fragment@0 {
  19. target = <&am33xx_pinmux>;
  20. __overlay__ {
  21. nocape_w1_0_pins: pinmux_nocape_w1_0_pins {
  22. pinctrl-single,pins = <
  23. 0x34 0x37 /* gpmc_ad13.gpio1_13, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE7 - w1-gpio */
  24. >;
  25. };
  26. nocape_w1_1_pins: pinmux_nocape_w1_1_pins {
  27. pinctrl-single,pins = <
  28. 0x30 0x37 /* gpmc_ad13.gpio1_12, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE7 - w1-gpio */
  29. >;
  30. };
  31.  
  32. };
  33. };
  34.  
  35. fragment@1 {
  36. target = <&ocp>;
  37. __overlay__ {
  38. onewire@0 {
  39. compatible = "w1-gpio";
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&nocape_w1_0_pins>;
  42. status = "okay";
  43.  
  44. gpios = <&gpio2 13 0>;
  45. };
  46. onewire@1 {
  47. compatible = "w1-gpio";
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&nocape_w1_1_pins>;
  50. status = "okay";
  51.  
  52. gpios = <&gpio2 12 0>;
  53. };
  54. };
  55. };
  56. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement