Advertisement
Guest User

Untitled

a guest
May 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. /dts-v1/;
  2.  
  3. / {
  4.  
  5. fragment@0 {
  6. target-path = [2f 00];
  7.  
  8. __overlay__ {
  9.  
  10. gpio-demo {
  11. compatible = "gpio-of-helper";
  12. pinctrl-names = "default";
  13. pinctrl-0 = <0x1>;
  14.  
  15. button {
  16. gpio = <0xdeadbeef 0x2 0x1>;
  17. input;
  18. };
  19.  
  20. reset-thing {
  21. gpio = <0xdeadbeef 0x3 0x1>;
  22. init-high;
  23. };
  24.  
  25. input-bidi {
  26. gpio = <0xdeadbeef 0x5 0x0>;
  27. input;
  28. dir-changeable;
  29. };
  30.  
  31. output-bidi {
  32. gpio = <0xdeadbeef 0x4 0x0>;
  33. init-low;
  34. dir-changeable;
  35. };
  36. };
  37. };
  38. };
  39.  
  40. fragment@1 {
  41. target = <0xdeadbeef>;
  42.  
  43. __overlay__ {
  44.  
  45. gpio-demo {
  46. pinctrl-single,pins = <0x90 0x37 0x94 0x37 0x9c 0x37 0x98 0x37>;
  47. linux,phandle = <0x1>;
  48. phandle = <0x1>;
  49. };
  50. };
  51. };
  52.  
  53. __symbols__ {
  54. gpio_demo_pins = "/fragment@1/__overlay__/gpio-demo";
  55. };
  56.  
  57. __fixups__ {
  58. gpio2 = "/fragment@0/__overlay__/gpio-demo/button:gpio:0", "/fragment@0/__overlay__/gpio-demo/reset-thing:gpio:0", "/fragment@0/__overlay__/gpio-demo/input-bidi:gpio:0", "/fragment@0/__overlay__/gpio-demo/output-bidi:gpio:0";
  59. am33xx_pinmux = "/fragment@1:target:0";
  60. };
  61.  
  62. __local_fixups__ {
  63. fixup = "/fragment@0/__overlay__/gpio-demo:pinctrl-0:0";
  64. };
  65. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement