ste-nomadik-s8815.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * Device Tree for the ST-Ericsson Nomadik S8815 board
  3. * Produced by Calao Systems
  4. */
  5. /dts-v1/;
  6. /include/ "ste-nomadik-stn8815.dtsi"
  7. / {
  8. model = "Calao Systems USB-S8815";
  9. compatible = "calaosystems,usb-s8815";
  10. chosen {
  11. bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk";
  12. };
  13. /* This is where the interrupt is routed on the S8815 board */
  14. external-bus@34000000 {
  15. ethernet@300 {
  16. interrupt-parent = <&gpio3>;
  17. interrupts = <8 0x1>;
  18. };
  19. };
  20. src@101e0000 {
  21. /* These chrystal drivers are not used on this board */
  22. disable-sxtalo;
  23. disable-mxtalo;
  24. };
  25. pinctrl {
  26. /* Hog CD pins */
  27. pinctrl-names = "default";
  28. pinctrl-0 = <&cd_default_mode>;
  29. mmcsd-cd {
  30. cd_default_mode: cd_default {
  31. cd_default_cfg1 {
  32. /* CD input GPIO */
  33. ste,pins = "GPIO111_H21";
  34. ste,input = <0>;
  35. };
  36. cd_default_cfg2 {
  37. /* CD GPIO biasing */
  38. ste,pins = "GPIO112_J21";
  39. ste,output = <0>;
  40. };
  41. };
  42. };
  43. user-led {
  44. user_led_default_mode: user_led_default {
  45. user_led_default_cfg {
  46. ste,pins = "GPIO2_C5";
  47. ste,output = <1>;
  48. };
  49. };
  50. };
  51. user-button {
  52. user_button_default_mode: user_button_default {
  53. user_button_default_cfg {
  54. ste,pins = "GPIO3_A4";
  55. ste,input = <0>;
  56. };
  57. };
  58. };
  59. };
  60. /* Custom board node with GPIO pins to active etc */
  61. usb-s8815 {
  62. /* The S8815 is using this very GPIO pin for the SMSC91x IRQs */
  63. ethernet-gpio {
  64. gpios = <&gpio3 8 0x1>;
  65. };
  66. /* This will bias the MMC/SD card detect line */
  67. mmcsd-gpio {
  68. gpios = <&gpio3 16 0x1>;
  69. };
  70. };
  71. /* The user LED on the board is set up to be used for heartbeat */
  72. leds {
  73. compatible = "gpio-leds";
  74. user-led {
  75. label = "user_led";
  76. gpios = <&gpio0 2 0x1>;
  77. default-state = "off";
  78. linux,default-trigger = "heartbeat";
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&user_led_default_mode>;
  81. };
  82. };
  83. /* User key mapped in as "escape" */
  84. gpio-keys {
  85. compatible = "gpio-keys";
  86. user-button {
  87. label = "user_button";
  88. gpios = <&gpio0 3 0x1>;
  89. linux,code = <1>; /* KEY_ESC */
  90. gpio-key,wakeup;
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&user_button_default_mode>;
  93. };
  94. };
  95. };