orion5x-rd88f5182-nas.dts 3.1 KB

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