ste-nomadik-s8815.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. pinctrl {
  14. /* Hog CD pins */
  15. pinctrl-names = "default";
  16. pinctrl-0 = <&cd_default_mode>;
  17. mmcsd-cd {
  18. cd_default_mode: cd_default {
  19. cd_default_cfg1 {
  20. /* CD input GPIO */
  21. ste,pins = "GPIO111_H21";
  22. ste,input = <0>;
  23. };
  24. cd_default_cfg2 {
  25. /* CD GPIO biasing */
  26. ste,pins = "GPIO112_J21";
  27. ste,output = <0>;
  28. };
  29. };
  30. };
  31. user-led {
  32. user_led_default_mode: user_led_default {
  33. user_led_default_cfg {
  34. ste,pins = "GPIO2_C5";
  35. ste,output = <1>;
  36. };
  37. };
  38. };
  39. user-button {
  40. user_button_default_mode: user_button_default {
  41. user_button_default_cfg {
  42. ste,pins = "GPIO3_A4";
  43. ste,input = <0>;
  44. };
  45. };
  46. };
  47. };
  48. /* Custom board node with GPIO pins to active etc */
  49. usb-s8815 {
  50. /* The S8815 is using this very GPIO pin for the SMSC91x IRQs */
  51. ethernet-gpio {
  52. gpios = <&gpio3 19 0x1>;
  53. interrupts = <19 0x1>;
  54. interrupt-parent = <&gpio3>;
  55. };
  56. /* This will bias the MMC/SD card detect line */
  57. mmcsd-gpio {
  58. gpios = <&gpio3 16 0x1>;
  59. };
  60. };
  61. /* The user LED on the board is set up to be used for heartbeat */
  62. leds {
  63. compatible = "gpio-leds";
  64. user-led {
  65. label = "user_led";
  66. gpios = <&gpio0 2 0x1>;
  67. default-state = "off";
  68. linux,default-trigger = "heartbeat";
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&user_led_default_mode>;
  71. };
  72. };
  73. /* User key mapped in as "escape" */
  74. gpio-keys {
  75. compatible = "gpio-keys";
  76. user-button {
  77. label = "user_button";
  78. gpios = <&gpio0 3 0x1>;
  79. linux,code = <1>; /* KEY_ESC */
  80. gpio-key,wakeup;
  81. pinctrl-names = "default";
  82. pinctrl-0 = <&user_button_default_mode>;
  83. };
  84. };
  85. };