ox820-akitio.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. / {
  11. model = "Akitio MyCloud mini";
  12. chosen {
  13. bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
  14. };
  15. pcie-controller@47C00000 {
  16. status = "disabled";
  17. };
  18. uart@44200000 {
  19. status = "okay";
  20. };
  21. sata@45900000 {
  22. status = "okay";
  23. nr-ports = <2>;
  24. };
  25. nand@41000000 {
  26. status = "okay";
  27. partition@0 {
  28. label = "boot";
  29. reg = <0x0 0x26c0000>;
  30. };
  31. partition@26c0000 {
  32. label = "ubi";
  33. reg = <0x26c0000 0xd940000>;
  34. };
  35. };
  36. ethernet@40400000 {
  37. status = "okay";
  38. };
  39. ehci@40200100 {
  40. status = "okay";
  41. };
  42. i2c-gpio {
  43. compatible = "i2c-gpio";
  44. gpios = <&GPIOB 9 0 &GPIOB 10 0>;
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&pinctrl_i2c>;
  47. i2c-gpio,delay-us = <10>;
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. ds1307: rtc@68 {
  51. compatible = "dallas,ds1307";
  52. reg = <0x68>;
  53. };
  54. };
  55. gpio-keys-polled {
  56. compatible = "gpio-keys-polled";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&pinctrl_buttons>;
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. poll-interval = <100>;
  62. power {
  63. label = "power";
  64. gpios = <&GPIOA 11 1>;
  65. linux,code = <116>;
  66. };
  67. reset {
  68. label = "reset";
  69. gpios = <&GPIOB 6 1>;
  70. linux,code = <0x198>;
  71. };
  72. };
  73. gpio-leds {
  74. compatible = "gpio-leds";
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&pinctrl_leds>;
  77. status {
  78. label = "akitio:red:status";
  79. gpios = <&GPIOA 29 0>;
  80. };
  81. };
  82. gpio-poweroff {
  83. compatible = "gpio-poweroff";
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&pinctrl_poweroff>;
  86. gpios = <&GPIOB 13 2>;
  87. };
  88. pinctrl {
  89. i2c {
  90. pinctrl_i2c: i2c-0 {
  91. plxtech,pins =
  92. <1 9 0 4 /* MF_B9 GPIO debounce */
  93. 1 10 0 4>; /* MF_B10 GPIO debounce */
  94. };
  95. };
  96. buttons {
  97. pinctrl_buttons: buttons-0 {
  98. plxtech,pins =
  99. <0 11 0 0 /* MF_A11 GPIO */
  100. 1 6 0 0>; /* MF_B6 GPIO */
  101. };
  102. };
  103. leds {
  104. pinctrl_leds: leds-0 {
  105. plxtech,pins =
  106. <0 29 0 0>; /* MF_A29 GPIO */
  107. };
  108. };
  109. poweroff {
  110. pinctrl_poweroff: poweroff-0 {
  111. plxtech,pins =
  112. <1 13 0 0>; /* MF_B13 GPIO */
  113. };
  114. };
  115. };
  116. };