kirkwood-openrd.dtsi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Marvell OpenRD (Base|Client|Ultimate) Board Description
  4. *
  5. * Andrew Lunn <[email protected]>
  6. *
  7. * This file contains the definitions that are common between the three
  8. * variants of the Marvell Kirkwood Development Board.
  9. */
  10. #include "kirkwood.dtsi"
  11. #include "kirkwood-6281.dtsi"
  12. / {
  13. memory {
  14. device_type = "memory";
  15. reg = <0x00000000 0x20000000>;
  16. };
  17. chosen {
  18. bootargs = "console=ttyS0,115200n8";
  19. stdout-path = &uart0;
  20. };
  21. ocp@f1000000 {
  22. pinctrl: pin-controller@10000 {
  23. pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>;
  24. pinctrl-names = "default";
  25. pmx_select28: pmx-select-rs232-rs485 {
  26. marvell,pins = "mpp28";
  27. marvell,function = "gpio";
  28. };
  29. pmx_sdio_cd: pmx-sdio-cd {
  30. marvell,pins = "mpp29";
  31. marvell,function = "gpio";
  32. };
  33. pmx_select34: pmx-select-uart-sd {
  34. marvell,pins = "mpp34";
  35. marvell,function = "gpio";
  36. };
  37. };
  38. serial@12000 {
  39. status = "okay";
  40. };
  41. sata@80000 {
  42. status = "okay";
  43. nr-ports = <2>;
  44. };
  45. mvsdio@90000 {
  46. status = "okay";
  47. cd-gpios = <&gpio0 29 9>;
  48. };
  49. gpio@10100 {
  50. p28 {
  51. gpio-hog;
  52. gpios = <28 GPIO_ACTIVE_HIGH>;
  53. /*
  54. * SelRS232or485 selects between RS-232 or RS-485
  55. * mode for the second UART.
  56. *
  57. * Low: RS-232
  58. * High: RS-485
  59. *
  60. * To use the second UART, you need to change also
  61. * the SelUARTorSD.
  62. */
  63. output-low;
  64. line-name = "SelRS232or485";
  65. };
  66. };
  67. gpio@10140 {
  68. p2 {
  69. gpio-hog;
  70. gpios = <2 GPIO_ACTIVE_HIGH>;
  71. /*
  72. * SelUARTorSD selects between the second UART
  73. * (serial@12100) and SD (mvsdio@90000).
  74. *
  75. * Low: UART
  76. * High: SD
  77. *
  78. * When changing this line make sure the newly
  79. * selected device node is enabled and the
  80. * previously selected device node is disabled.
  81. */
  82. output-high; /* Select SD by default */
  83. line-name = "SelUARTorSD";
  84. };
  85. };
  86. };
  87. };
  88. &nand {
  89. status = "okay";
  90. pinctrl-0 = <&pmx_nand>;
  91. pinctrl-names = "default";
  92. partition@0 {
  93. label = "u-boot";
  94. reg = <0x0000000 0x100000>;
  95. };
  96. partition@100000 {
  97. label = "uImage";
  98. reg = <0x0100000 0x400000>;
  99. };
  100. partition@600000 {
  101. label = "root";
  102. reg = <0x0600000 0x1FA00000>;
  103. };
  104. };
  105. &pciec {
  106. status = "okay";
  107. };
  108. &pcie0 {
  109. status = "okay";
  110. };