s3c6410-mini6410.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /*
  2. * Samsung's S3C6410 based Mini6410 board device tree source
  3. *
  4. * Copyright (c) 2013 Tomasz Figa <tomasz.figa@gmail.com>
  5. *
  6. * Device tree source file for FriendlyARM Mini6410 board which is based on
  7. * Samsung's S3C6410 SoC.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. /dts-v1/;
  14. #include <dt-bindings/gpio/gpio.h>
  15. #include <dt-bindings/interrupt-controller/irq.h>
  16. #include "s3c6410.dtsi"
  17. / {
  18. model = "FriendlyARM Mini6410 board based on S3C6410";
  19. compatible = "friendlyarm,mini6410", "samsung,s3c6410";
  20. memory {
  21. reg = <0x50000000 0x10000000>;
  22. };
  23. chosen {
  24. bootargs = "console=ttySAC0,115200n8 earlyprintk rootwait root=/dev/mmcblk0p1";
  25. };
  26. clocks {
  27. compatible = "simple-bus";
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. fin_pll: oscillator@0 {
  31. compatible = "fixed-clock";
  32. reg = <0>;
  33. clock-frequency = <12000000>;
  34. clock-output-names = "fin_pll";
  35. #clock-cells = <0>;
  36. };
  37. xusbxti: oscillator@1 {
  38. compatible = "fixed-clock";
  39. reg = <1>;
  40. clock-output-names = "xusbxti";
  41. clock-frequency = <48000000>;
  42. #clock-cells = <0>;
  43. };
  44. };
  45. srom-cs1@18000000 {
  46. compatible = "simple-bus";
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. reg = <0x18000000 0x8000000>;
  50. ranges;
  51. ethernet@18000000 {
  52. compatible = "davicom,dm9000";
  53. reg = <0x18000000 0x2 0x18000004 0x2>;
  54. interrupt-parent = <&gpn>;
  55. interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
  56. davicom,no-eeprom;
  57. };
  58. };
  59. gpio-keys {
  60. compatible = "gpio-keys";
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&gpio_keys>;
  63. autorepeat;
  64. button-k1 {
  65. label = "K1";
  66. gpios = <&gpn 0 GPIO_ACTIVE_LOW>;
  67. linux,code = <2>;
  68. debounce-interval = <20>;
  69. };
  70. button-k2 {
  71. label = "K2";
  72. gpios = <&gpn 1 GPIO_ACTIVE_LOW>;
  73. linux,code = <3>;
  74. debounce-interval = <20>;
  75. };
  76. button-k3 {
  77. label = "K3";
  78. gpios = <&gpn 2 GPIO_ACTIVE_LOW>;
  79. linux,code = <4>;
  80. debounce-interval = <20>;
  81. };
  82. button-k4 {
  83. label = "K4";
  84. gpios = <&gpn 3 GPIO_ACTIVE_LOW>;
  85. linux,code = <5>;
  86. debounce-interval = <20>;
  87. };
  88. button-k5 {
  89. label = "K5";
  90. gpios = <&gpn 4 GPIO_ACTIVE_LOW>;
  91. linux,code = <6>;
  92. debounce-interval = <20>;
  93. };
  94. button-k6 {
  95. label = "K6";
  96. gpios = <&gpn 5 GPIO_ACTIVE_LOW>;
  97. linux,code = <7>;
  98. debounce-interval = <20>;
  99. };
  100. button-k7 {
  101. label = "K7";
  102. gpios = <&gpl 11 GPIO_ACTIVE_LOW>;
  103. linux,code = <8>;
  104. debounce-interval = <20>;
  105. };
  106. button-k8 {
  107. label = "K8";
  108. gpios = <&gpl 12 GPIO_ACTIVE_LOW>;
  109. linux,code = <9>;
  110. debounce-interval = <20>;
  111. };
  112. };
  113. leds {
  114. compatible = "gpio-leds";
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&gpio_leds>;
  117. led-1 {
  118. label = "LED1";
  119. gpios = <&gpk 4 GPIO_ACTIVE_LOW>;
  120. linux,default-trigger = "heartbeat";
  121. };
  122. led-2 {
  123. label = "LED2";
  124. gpios = <&gpk 5 GPIO_ACTIVE_LOW>;
  125. linux,default-trigger = "mmc0";
  126. };
  127. led-3 {
  128. label = "LED3";
  129. gpios = <&gpk 6 GPIO_ACTIVE_LOW>;
  130. };
  131. led-4 {
  132. label = "LED4";
  133. gpios = <&gpk 7 GPIO_ACTIVE_LOW>;
  134. };
  135. };
  136. buzzer {
  137. compatible = "pwm-beeper";
  138. pwms = <&pwm 0 1000000 0>;
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&pwm0_out>;
  141. };
  142. };
  143. &sdhci0 {
  144. pinctrl-names = "default";
  145. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  146. bus-width = <4>;
  147. status = "okay";
  148. };
  149. &uart0 {
  150. pinctrl-names = "default";
  151. pinctrl-0 = <&uart0_data>;
  152. status = "okay";
  153. };
  154. &uart1 {
  155. pinctrl-names = "default";
  156. pinctrl-0 = <&uart1_data>, <&uart1_fctl>;
  157. status = "okay";
  158. };
  159. &uart2 {
  160. pinctrl-names = "default";
  161. pinctrl-0 = <&uart2_data>;
  162. status = "okay";
  163. };
  164. &uart3 {
  165. pinctrl-names = "default";
  166. pinctrl-0 = <&uart3_data>;
  167. status = "okay";
  168. };
  169. &pwm {
  170. status = "okay";
  171. };
  172. &pinctrl0 {
  173. gpio_leds: gpio-leds {
  174. samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7";
  175. samsung,pin-pud = <PIN_PULL_NONE>;
  176. };
  177. gpio_keys: gpio-keys {
  178. samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3",
  179. "gpn-4", "gpn-5", "gpl-11", "gpl-12";
  180. samsung,pin-pud = <PIN_PULL_NONE>;
  181. };
  182. };
  183. &i2c0 {
  184. pinctrl-names = "default";
  185. pinctrl-0 = <&i2c0_bus>;
  186. status = "okay";
  187. eeprom@50 {
  188. compatible = "atmel,24c08";
  189. reg = <0x50>;
  190. pagesize = <16>;
  191. };
  192. };