ox820-akitio-mycloud.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /dts-v1/;
  2. #include "ox820.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Akitio MyCloud";
  6. compatible = "akitio,mycloud", "oxsemi,ox820";
  7. chosen {
  8. bootargs = "earlyprintk console=ttyS0,115200";
  9. stdout-path = "serial0:115200n8";
  10. };
  11. memory {
  12. /* 128Mbytes DDR */
  13. reg = <0x60000000 0x8000000>;
  14. };
  15. aliases {
  16. serial0 = &uart0;
  17. gpio0 = &gpio0;
  18. gpio1 = &gpio1;
  19. led-boot = &led_status;
  20. led-failsafe = &led_status;
  21. led-running = &led_status;
  22. led-upgrade = &led_status;
  23. };
  24. i2c-gpio {
  25. compatible = "i2c-gpio";
  26. gpios = <&gpio1 9 0 &gpio1 10 0>;
  27. pinctrl-names = "default";
  28. pinctrl-0 = <&pinctrl_i2c>;
  29. i2c-gpio,delay-us = <10>;
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. ds1307: rtc@68 {
  33. compatible = "dallas,ds1307";
  34. reg = <0x68>;
  35. };
  36. };
  37. keys {
  38. compatible = "gpio-keys-polled";
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&pinctrl_buttons>;
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. poll-interval = <100>;
  44. power {
  45. label = "power";
  46. gpios = <&gpio0 11 1>;
  47. linux,code = <KEY_POWER>;
  48. };
  49. reset {
  50. label = "reset";
  51. gpios = <&gpio1 6 1>;
  52. linux,code = <KEY_RESTART>;
  53. };
  54. };
  55. leds {
  56. compatible = "gpio-leds";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&pinctrl_leds>;
  59. led_status: status {
  60. label = "akitio:red:status";
  61. gpios = <&gpio0 29 0>;
  62. };
  63. };
  64. gpio-poweroff {
  65. compatible = "gpio-poweroff";
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&pinctrl_poweroff>;
  68. gpios = <&gpio1 13 2>;
  69. };
  70. };
  71. &pinctrl {
  72. pinctrl_i2c: i2c-0 {
  73. i2c {
  74. pins = "gpio41", "gpio42"; /* MF_B9, MF_B10 */
  75. function = "gpio";
  76. /* ToDo: find a way to set debounce for those pins */
  77. };
  78. };
  79. pinctrl_buttons: buttons-0 {
  80. buttons {
  81. pins = "gpio11", "gpio38"; /* MF_A11, MF_B6 GPIO */
  82. function = "gpio";
  83. };
  84. };
  85. pinctrl_leds: leds-0 {
  86. leds {
  87. pins = "gpio29"; /* MF_A29 GPIO */
  88. function = "gpio";
  89. };
  90. };
  91. pinctrl_poweroff: poweroff-0 {
  92. poweroff {
  93. pins = "gpio45"; /* MF_B13 GPIO */
  94. function = "gpio";
  95. };
  96. };
  97. };
  98. &uart0 {
  99. status = "okay";
  100. pinctrl-names = "default";
  101. pinctrl-0 = <&pinctrl_uart0>;
  102. };
  103. &nandc {
  104. status = "okay";
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&pinctrl_nand>;
  107. nand@0 {
  108. reg = <0>;
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. nand-ecc-mode = "soft";
  112. nand-ecc-algo = "hamming";
  113. partition@0 {
  114. label = "boot";
  115. reg = <0x0 0x26c0000>;
  116. };
  117. partition@26c0000 {
  118. label = "ubi";
  119. reg = <0x26c0000 0xd940000>;
  120. };
  121. };
  122. };
  123. &etha {
  124. status = "okay";
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&pinctrl_etha_mdio>;
  127. };
  128. &ehci {
  129. status = "okay";
  130. };
  131. &sata {
  132. status = "okay";
  133. nr-ports = <2>;
  134. };
  135. &pcie_phy {
  136. status = "okay";
  137. };
  138. &pcie0 {
  139. status = "okay";
  140. };