s5pv210-smdkv210.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Samsung's S5PV210 SoC device tree source
  4. *
  5. * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd.
  6. *
  7. * Mateusz Krawczuk <[email protected]>
  8. * Tomasz Figa <[email protected]>
  9. *
  10. * Board device tree source for YIC System SMDV210 board.
  11. *
  12. * NOTE: This file is completely based on original board file for mach-smdkv210
  13. * available in Linux 3.15 and intends to provide equivalent level of hardware
  14. * support. Due to lack of hardware, _no_ testing has been performed.
  15. */
  16. /dts-v1/;
  17. #include <dt-bindings/interrupt-controller/irq.h>
  18. #include <dt-bindings/input/input.h>
  19. #include "s5pv210.dtsi"
  20. / {
  21. model = "YIC System SMDKV210 based on S5PV210";
  22. compatible = "yic,smdkv210", "samsung,s5pv210";
  23. chosen {
  24. bootargs = "console=ttySAC0,115200n8 root=/dev/mmcblk0p1 rw rootwait ignore_loglevel earlyprintk";
  25. };
  26. memory@20000000 {
  27. device_type = "memory";
  28. reg = <0x20000000 0x40000000>;
  29. };
  30. pmic_ap_clk: clock-0 {
  31. /* Workaround for missing PMIC and its clock */
  32. compatible = "fixed-clock";
  33. #clock-cells = <0>;
  34. clock-frequency = <32768>;
  35. };
  36. ethernet@a8000000 {
  37. compatible = "davicom,dm9000";
  38. reg = <0xa8000000 0x2>, <0xa8000002 0x2>;
  39. interrupt-parent = <&gph1>;
  40. interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
  41. local-mac-address = [00 00 de ad be ef];
  42. davicom,no-eeprom;
  43. };
  44. backlight {
  45. compatible = "pwm-backlight";
  46. pwms = <&pwm 3 5000000 0>;
  47. brightness-levels = <0 4 8 16 32 64 128 255>;
  48. default-brightness-level = <6>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&pwm3_out>;
  51. power-supply = <&dc5v_reg>;
  52. };
  53. dc5v_reg: regulator-0 {
  54. compatible = "regulator-fixed";
  55. regulator-name = "DC5V";
  56. regulator-min-microvolt = <5000000>;
  57. regulator-max-microvolt = <5000000>;
  58. };
  59. };
  60. &xusbxti {
  61. clock-frequency = <24000000>;
  62. };
  63. &keypad {
  64. linux,input-no-autorepeat;
  65. wakeup-source;
  66. samsung,keypad-num-rows = <8>;
  67. samsung,keypad-num-columns = <8>;
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&keypad_row0>, <&keypad_row1>, <&keypad_row2>,
  70. <&keypad_row3>, <&keypad_row4>, <&keypad_row5>,
  71. <&keypad_row6>, <&keypad_row7>,
  72. <&keypad_col0>, <&keypad_col1>, <&keypad_col2>,
  73. <&keypad_col3>, <&keypad_col4>, <&keypad_col5>,
  74. <&keypad_col6>, <&keypad_col7>;
  75. status = "okay";
  76. key-1 {
  77. keypad,row = <0>;
  78. keypad,column = <3>;
  79. linux,code = <KEY_1>;
  80. };
  81. key-2 {
  82. keypad,row = <0>;
  83. keypad,column = <4>;
  84. linux,code = <KEY_2>;
  85. };
  86. key-3 {
  87. keypad,row = <0>;
  88. keypad,column = <5>;
  89. linux,code = <KEY_3>;
  90. };
  91. key-4 {
  92. keypad,row = <0>;
  93. keypad,column = <6>;
  94. linux,code = <KEY_4>;
  95. };
  96. key-5 {
  97. keypad,row = <0
  98. >;
  99. keypad,column = <7>;
  100. linux,code = <KEY_5>;
  101. };
  102. key-6 {
  103. keypad,row = <1>;
  104. keypad,column = <3>;
  105. linux,code = <KEY_A>;
  106. };
  107. key-7 {
  108. keypad,row = <1>;
  109. keypad,column = <4>;
  110. linux,code = <KEY_B>;
  111. };
  112. key-8 {
  113. keypad,row = <1>;
  114. keypad,column = <5>;
  115. linux,code = <KEY_C>;
  116. };
  117. key-9 {
  118. keypad,row = <1>;
  119. keypad,column = <6>;
  120. linux,code = <KEY_D>;
  121. };
  122. key-10 {
  123. keypad,row = <1>;
  124. keypad,column = <7>;
  125. linux,code = <KEY_E>;
  126. };
  127. };
  128. &uart0 {
  129. status = "okay";
  130. };
  131. &uart1 {
  132. status = "okay";
  133. };
  134. &uart2 {
  135. status = "okay";
  136. };
  137. &uart3 {
  138. status = "okay";
  139. };
  140. &rtc {
  141. status = "okay";
  142. clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>;
  143. clock-names = "rtc", "rtc_src";
  144. };
  145. &sdhci0 {
  146. bus-width = <4>;
  147. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus1 &sd0_bus4>;
  148. pinctrl-names = "default";
  149. status = "okay";
  150. };
  151. &sdhci1 {
  152. bus-width = <4>;
  153. pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus1 &sd1_bus4>;
  154. pinctrl-names = "default";
  155. status = "okay";
  156. };
  157. &sdhci2 {
  158. bus-width = <4>;
  159. pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
  160. pinctrl-names = "default";
  161. status = "okay";
  162. };
  163. &sdhci3 {
  164. bus-width = <4>;
  165. pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_cd &sd3_bus1 &sd3_bus4>;
  166. pinctrl-names = "default";
  167. status = "okay";
  168. };
  169. &hsotg {
  170. dr_mode = "peripheral";
  171. status = "okay";
  172. };
  173. &usbphy {
  174. status = "okay";
  175. };
  176. &fimd {
  177. pinctrl-0 = <&lcd_clk &lcd_data24>;
  178. pinctrl-names = "default";
  179. status = "okay";
  180. display-timings {
  181. native-mode = <&timing0>;
  182. timing0: timing {
  183. /* 800x480@60Hz */
  184. clock-frequency = <24373920>;
  185. hactive = <800>;
  186. vactive = <480>;
  187. hfront-porch = <8>;
  188. hback-porch = <13>;
  189. hsync-len = <3>;
  190. vback-porch = <7>;
  191. vfront-porch = <5>;
  192. vsync-len = <1>;
  193. hsync-active = <0>;
  194. vsync-active = <0>;
  195. de-active = <1>;
  196. pixelclk-active = <1>;
  197. };
  198. };
  199. };
  200. &pwm {
  201. samsung,pwm-outputs = <3>;
  202. };
  203. &i2c0 {
  204. status = "okay";
  205. audio-codec@1b {
  206. compatible = "wlf,wm8580";
  207. reg = <0x1b>;
  208. };
  209. eeprom@50 {
  210. compatible = "atmel,24c08";
  211. reg = <0x50>;
  212. };
  213. };
  214. &i2s0 {
  215. status = "okay";
  216. };