s3c6410-mini6410.dts 4.0 KB

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