orion5x-rd88f5182-nas.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /*
  2. * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License version 2. This program is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. /dts-v1/;
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include "orion5x-mv88f5182.dtsi"
  11. / {
  12. model = "Marvell Reference Design 88F5182 NAS";
  13. compatible = "marvell,rd-88f5182-nas", "marvell,orion5x-88f5182", "marvell,orion5x";
  14. memory {
  15. reg = <0x00000000 0x4000000>; /* 64 MB */
  16. };
  17. chosen {
  18. bootargs = "console=ttyS0,115200n8 earlyprintk";
  19. linux,stdout-path = &uart0;
  20. };
  21. soc {
  22. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
  23. <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
  24. <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x80000>,
  25. <MBUS_ID(0x01, 0x1d) 0 0xfc000000 0x1000000>;
  26. };
  27. gpio-leds {
  28. compatible = "gpio-leds";
  29. pinctrl-0 = <&pmx_debug_led>;
  30. pinctrl-names = "default";
  31. led@0 {
  32. label = "rd88f5182:cpu";
  33. linux,default-trigger = "heartbeat";
  34. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  35. };
  36. };
  37. };
  38. &devbus_bootcs {
  39. status = "okay";
  40. /* Read parameters */
  41. devbus,bus-width = <8>;
  42. devbus,turn-off-ps = <90000>;
  43. devbus,badr-skew-ps = <0>;
  44. devbus,acc-first-ps = <186000>;
  45. devbus,acc-next-ps = <186000>;
  46. /* Write parameters */
  47. devbus,wr-high-ps = <90000>;
  48. devbus,wr-low-ps = <90000>;
  49. devbus,ale-wr-ps = <90000>;
  50. flash@0 {
  51. compatible = "cfi-flash";
  52. reg = <0 0x80000>;
  53. bank-width = <1>;
  54. };
  55. };
  56. &devbus_cs1 {
  57. status = "okay";
  58. /* Read parameters */
  59. devbus,bus-width = <8>;
  60. devbus,turn-off-ps = <90000>;
  61. devbus,badr-skew-ps = <0>;
  62. devbus,acc-first-ps = <186000>;
  63. devbus,acc-next-ps = <186000>;
  64. /* Write parameters */
  65. devbus,wr-high-ps = <90000>;
  66. devbus,wr-low-ps = <90000>;
  67. devbus,ale-wr-ps = <90000>;
  68. flash@0 {
  69. compatible = "cfi-flash";
  70. reg = <0 0x1000000>;
  71. bank-width = <1>;
  72. };
  73. };
  74. &ehci0 {
  75. status = "okay";
  76. };
  77. &ehci1 {
  78. status = "okay";
  79. };
  80. &eth {
  81. status = "okay";
  82. ethernet-port@0 {
  83. phy-handle = <&ethphy>;
  84. };
  85. };
  86. &i2c {
  87. status = "okay";
  88. clock-frequency = <100000>;
  89. #address-cells = <1>;
  90. rtc@68 {
  91. pinctrl-0 = <&pmx_rtc>;
  92. pinctrl-names = "default";
  93. compatible = "dallas,ds1338";
  94. reg = <0x68>;
  95. };
  96. };
  97. &mdio {
  98. status = "okay";
  99. ethphy: ethernet-phy {
  100. reg = <8>;
  101. };
  102. };
  103. &pinctrl {
  104. pinctrl-0 = <&pmx_reset_switch &pmx_misc_gpios
  105. &pmx_pci_gpios>;
  106. pinctrl-names = "default";
  107. /*
  108. * MPP[20] PCI Clock to MV88F5182
  109. * MPP[21] PCI Clock to mini PCI CON11
  110. * MPP[22] USB 0 over current indication
  111. * MPP[23] USB 1 over current indication
  112. * MPP[24] USB 1 over current enable
  113. * MPP[25] USB 0 over current enable
  114. */
  115. pmx_debug_led: pmx-debug_led {
  116. marvell,pins = "mpp0";
  117. marvell,function = "gpio";
  118. };
  119. pmx_reset_switch: pmx-reset-switch {
  120. marvell,pins = "mpp1";
  121. marvell,function = "gpio";
  122. };
  123. pmx_rtc: pmx-rtc {
  124. marvell,pins = "mpp3";
  125. marvell,function = "gpio";
  126. };
  127. pmx_misc_gpios: pmx-misc-gpios {
  128. marvell,pins = "mpp4", "mpp5";
  129. marvell,function = "gpio";
  130. };
  131. pmx_pci_gpios: pmx-pci-gpios {
  132. marvell,pins = "mpp6", "mpp7";
  133. marvell,function = "gpio";
  134. };
  135. };
  136. &sata {
  137. pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
  138. pinctrl-names = "default";
  139. status = "okay";
  140. nr-ports = <2>;
  141. };
  142. &uart0 {
  143. status = "okay";
  144. };