ste-nomadik-s8815.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. * Device Tree for the ST-Ericsson Nomadik S8815 board
  3. * Produced by Calao Systems
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. #include "ste-nomadik-stn8815.dtsi"
  8. / {
  9. model = "Calao Systems USB-S8815";
  10. compatible = "calaosystems,usb-s8815";
  11. chosen {
  12. bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk";
  13. };
  14. aliases {
  15. serial0 = &uart0;
  16. serial1 = &uart1;
  17. };
  18. gpio3: gpio@101e7000 {
  19. /* This hog will bias the MMC/SD card detect line */
  20. mmcsd-gpio {
  21. gpio-hog;
  22. gpios = <16 0x0>;
  23. output-low;
  24. line-name = "card detect bias";
  25. };
  26. };
  27. src@101e0000 {
  28. /* These chrystal drivers are not used on this board */
  29. disable-sxtalo;
  30. disable-mxtalo;
  31. };
  32. pinctrl {
  33. /* Hog CD pins */
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&cd_default_mode>;
  36. uart0 {
  37. /* Only use RX/TX pins */
  38. uart0_s8815_mode: uart0_mux {
  39. u0_default_mux {
  40. function = "u0";
  41. groups = "u0txrx_a_1";
  42. };
  43. };
  44. };
  45. mmcsd-cd {
  46. cd_default_mode: cd_default {
  47. cd_default_cfg1 {
  48. /* CD input GPIO */
  49. pins = "GPIO111_H21";
  50. ste,input = <0>;
  51. };
  52. cd_default_cfg2 {
  53. /* CD GPIO biasing */
  54. pins = "GPIO112_J21";
  55. ste,output = <0>;
  56. };
  57. };
  58. };
  59. gpioi2c {
  60. gpioi2c_default_mode: gpioi2c_default {
  61. gpioi2c_default_cfg {
  62. pins = "GPIO73_C21", "GPIO74_C20";
  63. ste,input = <0>;
  64. };
  65. };
  66. };
  67. user-led {
  68. user_led_default_mode: user_led_default {
  69. user_led_default_cfg {
  70. pins = "GPIO2_C5";
  71. ste,output = <1>;
  72. };
  73. };
  74. };
  75. user-button {
  76. user_button_default_mode: user_button_default {
  77. user_button_default_cfg {
  78. pins = "GPIO3_A4";
  79. ste,input = <0>;
  80. };
  81. };
  82. };
  83. };
  84. /* Ethernet */
  85. external-bus@34000000 {
  86. compatible = "simple-bus";
  87. reg = <0x34000000 0x1000000>;
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. ranges = <0 0x34000000 0x1000000>;
  91. ethernet@300 {
  92. compatible = "smsc,lan91c111";
  93. reg = <0x300 0x0fd00>;
  94. interrupt-parent = <&gpio3>;
  95. interrupts = <8 IRQ_TYPE_EDGE_RISING>;
  96. };
  97. };
  98. i2c1 {
  99. lis3lv02dl@1d {
  100. /* Accelerometer */
  101. compatible = "st,lis3lv02dl-accel";
  102. reg = <0x1d>;
  103. };
  104. };
  105. /* GPIO I2C connected to the USB portions of the STw4811 only */
  106. gpio-i2c {
  107. compatible = "i2c-gpio";
  108. gpios = <&gpio2 10 0>, /* sda */
  109. <&gpio2 9 0>; /* scl */
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&gpioi2c_default_mode>;
  114. stw4811@2d {
  115. compatible = "st,stw4811-usb";
  116. reg = <0x2d>;
  117. };
  118. };
  119. amba {
  120. /* Activate RXTX on UART 0 */
  121. uart0: uart@101fd000 {
  122. pinctrl-names = "default";
  123. pinctrl-0 = <&uart0_s8815_mode>;
  124. status = "okay";
  125. };
  126. /* Configure card detect for the uSD slot */
  127. mmcsd: sdi@101f6000 {
  128. cd-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
  129. };
  130. };
  131. /* The user LED on the board is set up to be used for heartbeat */
  132. leds {
  133. compatible = "gpio-leds";
  134. user-led {
  135. label = "user_led";
  136. gpios = <&gpio0 2 0x1>;
  137. default-state = "off";
  138. linux,default-trigger = "heartbeat";
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&user_led_default_mode>;
  141. };
  142. };
  143. /* User key mapped in as "escape" */
  144. gpio-keys {
  145. compatible = "gpio-keys";
  146. user-button {
  147. label = "user_button";
  148. gpios = <&gpio0 3 0x1>;
  149. linux,code = <1>; /* KEY_ESC */
  150. wakeup-source;
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&user_button_default_mode>;
  153. };
  154. };
  155. };