orion5x-lacie-ethernet-disk-mini-v2.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. // Copyright (C) 2012 Thomas Petazzoni <[email protected]>
  3. /*
  4. * TODO: add Orion USB device port init when kernel.org support is added.
  5. * TODO: add flash write support: see below.
  6. * TODO: add power-off support.
  7. * TODO: add I2C EEPROM support.
  8. */
  9. /dts-v1/;
  10. #include <dt-bindings/gpio/gpio.h>
  11. #include <dt-bindings/input/input.h>
  12. #include <dt-bindings/interrupt-controller/irq.h>
  13. #include "orion5x-mv88f5182.dtsi"
  14. / {
  15. model = "LaCie Ethernet Disk mini V2";
  16. compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x";
  17. memory {
  18. device_type = "memory";
  19. reg = <0x00000000 0x4000000>; /* 64 MB */
  20. };
  21. chosen {
  22. bootargs = "console=ttyS0,115200n8 earlyprintk";
  23. stdout-path = &uart0;
  24. };
  25. soc {
  26. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
  27. <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
  28. <MBUS_ID(0x01, 0x0f) 0 0xfff80000 0x80000>;
  29. };
  30. gpio-keys {
  31. compatible = "gpio-keys";
  32. pinctrl-0 = <&pmx_power_button>;
  33. pinctrl-names = "default";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. button@1 {
  37. label = "Power-on Switch";
  38. linux,code = <KEY_POWER>;
  39. gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  40. };
  41. };
  42. gpio-leds {
  43. compatible = "gpio-leds";
  44. pinctrl-0 = <&pmx_power_led>;
  45. pinctrl-names = "default";
  46. led@1 {
  47. label = "power:blue";
  48. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  49. };
  50. };
  51. };
  52. &devbus_bootcs {
  53. status = "okay";
  54. /* Read parameters */
  55. devbus,bus-width = <8>;
  56. devbus,turn-off-ps = <90000>;
  57. devbus,badr-skew-ps = <0>;
  58. devbus,acc-first-ps = <186000>;
  59. devbus,acc-next-ps = <186000>;
  60. /* Write parameters */
  61. devbus,wr-high-ps = <90000>;
  62. devbus,wr-low-ps = <90000>;
  63. devbus,ale-wr-ps = <90000>;
  64. /*
  65. * Currently the MTD code does not recognize the MX29LV400CBCT
  66. * as a bottom-type device. This could cause risks of
  67. * accidentally erasing critical flash sectors. We thus define
  68. * a single, write-protected partition covering the whole
  69. * flash. TODO: once the flash part TOP/BOTTOM detection
  70. * issue is sorted out in the MTD code, break this into at
  71. * least three partitions: 'u-boot code', 'u-boot environment'
  72. * and 'whatever is left'.
  73. */
  74. flash@0 {
  75. compatible = "cfi-flash";
  76. reg = <0 0x80000>;
  77. bank-width = <1>;
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. partition@0 {
  81. label = "Full512Kb";
  82. reg = <0 0x80000>;
  83. read-only;
  84. };
  85. };
  86. };
  87. &ehci0 {
  88. status = "okay";
  89. };
  90. &eth {
  91. status = "okay";
  92. ethernet-port@0 {
  93. phy-handle = <&ethphy>;
  94. };
  95. };
  96. &i2c {
  97. status = "okay";
  98. clock-frequency = <100000>;
  99. #address-cells = <1>;
  100. rtc@32 {
  101. compatible = "ricoh,rs5c372a";
  102. reg = <0x32>;
  103. interrupt-parent = <&gpio0>;
  104. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  105. };
  106. };
  107. &mdio {
  108. status = "okay";
  109. ethphy: ethernet-phy {
  110. reg = <8>;
  111. };
  112. };
  113. &pinctrl {
  114. pinctrl-0 = <&pmx_rtc &pmx_power_led_ctrl>;
  115. pinctrl-names = "default";
  116. pmx_power_button: pmx-power-button {
  117. marvell,pins = "mpp18";
  118. marvell,function = "gpio";
  119. };
  120. pmx_power_led: pmx-power-led {
  121. marvell,pins = "mpp16";
  122. marvell,function = "gpio";
  123. };
  124. pmx_power_led_ctrl: pmx-power-led-ctrl {
  125. marvell,pins = "mpp17";
  126. marvell,function = "gpio";
  127. };
  128. pmx_rtc: pmx-rtc {
  129. marvell,pins = "mpp3";
  130. marvell,function = "gpio";
  131. };
  132. };
  133. &sata {
  134. pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
  135. pinctrl-names = "default";
  136. status = "okay";
  137. nr-ports = <2>;
  138. };
  139. &uart0 {
  140. status = "okay";
  141. };