Guest User

BB-SPI1DEV-00A0.dts

a guest
Jun 7th, 2013
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2013 CircuitCo
  3. *
  4. * Virtual cape for SPI1 on connector pins P9.29 P9.31 P9.30 P9.28
  5. * Modified to enable /dev/spidev2.0 by Carl Johnson
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. /dts-v1/;
  12. /plugin/;
  13.  
  14. / {
  15. compatible = "ti,beaglebone", "ti,beaglebone-black";
  16.  
  17. /* identification */
  18. part-number = "BB-SPI1DEV";
  19. version = "00A0";
  20.  
  21. /* state the resources this cape uses */
  22. exclusive-use =
  23. /* the pin header uses */
  24. "P9.31", /* spi1_sclk */
  25. "P9.29", /* spi1_d0 */
  26. "P9.30", /* spi1_d1 */
  27. "P9.28", /* spi1_cs0 */
  28. /* the hardware ip uses */
  29. "spi1";
  30.  
  31. fragment@0 {
  32. target = <&am33xx_pinmux>;
  33. __overlay__ {
  34. bb_spi1_pins: pinmux_bb_spi1_pins {
  35. pinctrl-single,pins = <
  36. 0x190 0x33 /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | MODE3 */
  37. 0x194 0x33 /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 */
  38. 0x198 0x13 /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | MODE3 */
  39. 0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | MODE3 */
  40. >;
  41. };
  42. };
  43. };
  44.  
  45. fragment@1 {
  46. target = <&spi1>; /* spi1 is numbered correctly */
  47. __overlay__ {
  48. status = "okay";
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&bb_spi1_pins>;
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. spidev@1 {
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. spi-max-frequency = <24000000>;
  57. reg = <0>;
  58. compatible = "linux,spidev";
  59. };
  60. };
  61. };
  62. };
Advertisement
Add Comment
Please, Sign In to add comment