ox820-akitio.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*
  2. * Copyright (C) 2016 Daniel Golle <daniel@makrotopia.org>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /dts-v1/;
  9. #include "ox820.dtsi"
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "Akitio MyCloud mini";
  13. chosen {
  14. bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
  15. };
  16. pcie-controller@47C00000 {
  17. status = "disabled";
  18. };
  19. uart@44200000 {
  20. status = "okay";
  21. };
  22. sata@45900000 {
  23. status = "okay";
  24. nr-ports = <2>;
  25. };
  26. nand@41000000 {
  27. status = "okay";
  28. };
  29. ethernet@40400000 {
  30. status = "okay";
  31. };
  32. ehci@40200100 {
  33. status = "okay";
  34. };
  35. i2c-gpio {
  36. compatible = "i2c-gpio";
  37. gpios = <&GPIOB 9 0 &GPIOB 10 0>;
  38. pinctrl-names = "default";
  39. pinctrl-0 = <&pinctrl_i2c>;
  40. i2c-gpio,delay-us = <10>;
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. ds1307: rtc@68 {
  44. compatible = "dallas,ds1307";
  45. reg = <0x68>;
  46. };
  47. };
  48. gpio-keys-polled {
  49. compatible = "gpio-keys-polled";
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&pinctrl_buttons>;
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. poll-interval = <100>;
  55. power {
  56. label = "power";
  57. gpios = <&GPIOA 11 1>;
  58. linux,code = <KEY_POWER>;
  59. };
  60. reset {
  61. label = "reset";
  62. gpios = <&GPIOB 6 1>;
  63. linux,code = <KEY_RESTART>;
  64. };
  65. };
  66. gpio-leds {
  67. compatible = "gpio-leds";
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&pinctrl_leds>;
  70. status {
  71. label = "akitio:red:status";
  72. gpios = <&GPIOA 29 0>;
  73. };
  74. };
  75. gpio-poweroff {
  76. compatible = "gpio-poweroff";
  77. pinctrl-names = "default";
  78. pinctrl-0 = <&pinctrl_poweroff>;
  79. gpios = <&GPIOB 13 2>;
  80. };
  81. pinctrl {
  82. i2c {
  83. pinctrl_i2c: i2c-0 {
  84. plxtech,pins =
  85. <1 9 0 4 /* MF_B9 GPIO debounce */
  86. 1 10 0 4>; /* MF_B10 GPIO debounce */
  87. };
  88. };
  89. buttons {
  90. pinctrl_buttons: buttons-0 {
  91. plxtech,pins =
  92. <0 11 0 0 /* MF_A11 GPIO */
  93. 1 6 0 0>; /* MF_B6 GPIO */
  94. };
  95. };
  96. leds {
  97. pinctrl_leds: leds-0 {
  98. plxtech,pins =
  99. <0 29 0 0>; /* MF_A29 GPIO */
  100. };
  101. };
  102. poweroff {
  103. pinctrl_poweroff: poweroff-0 {
  104. plxtech,pins =
  105. <1 13 0 0>; /* MF_B13 GPIO */
  106. };
  107. };
  108. };
  109. };
  110. &nandc {
  111. status = "okay";
  112. nand@0 {
  113. reg = <0>;
  114. #address-cells = <1>;
  115. #size-cells = <1>;
  116. nand-ecc-mode = "soft";
  117. nand-ecc-algo = "hamming";
  118. partition@0 {
  119. label = "boot";
  120. reg = <0x00000000 0x026c0000>;
  121. };
  122. partition@26c0000 {
  123. label = "ubi";
  124. reg = <0x026c0000 0x0d940000>;
  125. };
  126. };
  127. };