gx6605s.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /dts-v1/;
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "C-SKY gx6605s";
  6. compatible = "csky,gx6605s";
  7. #address-cells = <1>;
  8. #size-cells = <1>;
  9. memory {
  10. device_type = "memory";
  11. reg = <0x10000000 0x04000000>;
  12. };
  13. soc {
  14. #address-cells = <1>;
  15. #size-cells = <1>;
  16. compatible = "simple-bus";
  17. ranges;
  18. dummy_apb: apb-clock {
  19. compatible = "fixed-clock";
  20. clock-frequency = <27000000>;
  21. clock-output-names = "dummy_apb";
  22. #clock-cells = <0>;
  23. };
  24. intc: interrupt-controller@500000 {
  25. compatible = "csky,gx6605s-intc";
  26. reg = <0x00500000 0x400>;
  27. interrupt-controller;
  28. #interrupt-cells = <1>;
  29. };
  30. timer@20a000 {
  31. compatible = "csky,gx6605s-timer";
  32. reg = <0x0020a000 0x400>;
  33. clocks = <&dummy_apb>;
  34. interrupts = <10>;
  35. interrupt-parent = <&intc>;
  36. };
  37. ehci-hcd@900000 {
  38. compatible = "generic-ehci";
  39. reg = <0x00900000 0x400>;
  40. interrupt-parent = <&intc>;
  41. interrupts = <59>;
  42. };
  43. ohci-hcd0@a00000 {
  44. compatible = "generic-ohci";
  45. reg = <0x00a00000 0x400>;
  46. interrupt-parent = <&intc>;
  47. interrupts = <58>;
  48. };
  49. ohci-hcd1@b00000 {
  50. compatible = "generic-ohci";
  51. reg = <0x00b00000 0x400>;
  52. interrupt-parent = <&intc>;
  53. interrupts = <57>;
  54. };
  55. serial@403000 {
  56. compatible = "ns16550a";
  57. reg = <0x00403000 0x400>;
  58. interrupt-parent = <&intc>;
  59. interrupts = <15>;
  60. clock-frequency = <29491200>;
  61. baud = <115200>;
  62. reg-shift = <2>;
  63. reg-io-width = <1>;
  64. };
  65. gpio0: gpio@305000 {
  66. compatible = "wd,mbl-gpio";
  67. reg-names = "dirout", "dat", "set", "clr";
  68. reg = <0x305000 4>, <0x305004 4>, <0x305008 4>, <0x30500c 4>;
  69. bgpio-base = <0>;
  70. #gpio-cells = <2>;
  71. gpio-controller;
  72. };
  73. gpio_buttons {
  74. compatible = "gpio-keys-polled";
  75. #address-cells = <1>;
  76. #size-cells = <0>;
  77. poll-interval = <100>;
  78. autorepeat;
  79. button0 {
  80. label = "button8";
  81. linux,code = <KEY_LEFT>;
  82. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  83. };
  84. button1 {
  85. label = "button6";
  86. linux,code = <KEY_RIGHT>;
  87. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  88. };
  89. button2 {
  90. label = "button5";
  91. linux,code = <KEY_UP>;
  92. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  93. };
  94. button3 {
  95. label = "button9";
  96. linux,code = <KEY_DOWN>;
  97. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  98. };
  99. button4 {
  100. label = "button7";
  101. linux,code = <KEY_ENTER>;
  102. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  103. };
  104. };
  105. gpio_leds {
  106. compatible = "gpio-leds";
  107. led0 {
  108. label = "led10";
  109. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  110. linux,default-trigger = "heartbeat";
  111. };
  112. led1 {
  113. label = "led11";
  114. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  115. linux,default-trigger = "timer";
  116. };
  117. led2 {
  118. label = "led12";
  119. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  120. linux,default-trigger = "default-on";
  121. };
  122. led3 {
  123. label = "led13";
  124. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  125. linux,default-trigger = "default-on";
  126. };
  127. };
  128. };
  129. chosen {
  130. bootargs = "console=ttyS0,115200 init=/sbin/init root=/dev/sda2 rw rootwait";
  131. };
  132. };