kirkwood-mplcec4.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "kirkwood.dtsi"
  4. #include "kirkwood-6281.dtsi"
  5. / {
  6. model = "MPL CEC4";
  7. compatible = "mpl,cec4-10", "mpl,cec4", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  8. memory {
  9. device_type = "memory";
  10. reg = <0x00000000 0x20000000>;
  11. };
  12. chosen {
  13. bootargs = "console=ttyS0,115200n8 earlyprintk";
  14. stdout-path = &uart0;
  15. };
  16. ocp@f1000000 {
  17. pinctrl: pin-controller@10000 {
  18. pmx_led_health: pmx-led-health {
  19. marvell,pins = "mpp7";
  20. marvell,function = "gpo";
  21. };
  22. pmx_sata1: pmx-sata1 {
  23. marvell,pins = "mpp34";
  24. marvell,function = "sata1";
  25. };
  26. pmx_sata0: pmx-sata0 {
  27. marvell,pins = "mpp35";
  28. marvell,function = "sata0";
  29. };
  30. pmx_led_user1o: pmx-led-user1o {
  31. marvell,pins = "mpp40";
  32. marvell,function = "gpio";
  33. };
  34. pmx_led_user1g: pmx-led-user1g {
  35. marvell,pins = "mpp41";
  36. marvell,function = "gpio";
  37. };
  38. pmx_led_user0o: pmx-led-user0o {
  39. marvell,pins = "mpp44";
  40. marvell,function = "gpio";
  41. };
  42. pmx_led_user0g: pmx-led-user0g {
  43. marvell,pins = "mpp45";
  44. marvell,function = "gpio";
  45. };
  46. pmx_led_misc: pmx-led-misc {
  47. marvell,pins = "mpp46";
  48. marvell,function = "gpio";
  49. };
  50. pmx_sdio_cd: pmx-sdio-cd {
  51. marvell,pins = "mpp47";
  52. marvell,function = "gpio";
  53. };
  54. };
  55. i2c@11000 {
  56. status = "okay";
  57. rtc@51 {
  58. compatible = "nxp,pcf8563";
  59. reg = <0x51>;
  60. };
  61. eeprom@57 {
  62. compatible = "atmel,24c02";
  63. reg = <0x57>;
  64. };
  65. };
  66. serial@12000 {
  67. status = "okay";
  68. };
  69. rtc@10300 {
  70. status = "disabled";
  71. };
  72. sata@80000 {
  73. pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
  74. pinctrl-names = "default";
  75. nr-ports = <2>;
  76. status = "okay";
  77. };
  78. mvsdio@90000 {
  79. pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
  80. pinctrl-names = "default";
  81. status = "okay";
  82. cd-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  83. /* No WP GPIO */
  84. };
  85. };
  86. gpio-leds {
  87. compatible = "gpio-leds";
  88. pinctrl-0 = < &pmx_led_health
  89. &pmx_led_user1o
  90. &pmx_led_user1g &pmx_led_user0o
  91. &pmx_led_user0g &pmx_led_misc
  92. >;
  93. pinctrl-names = "default";
  94. health {
  95. label = "status:green:health";
  96. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  97. };
  98. user1o {
  99. label = "user1:orange";
  100. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  101. default-state = "on";
  102. };
  103. user1g {
  104. label = "user1:green";
  105. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  106. default-state = "on";
  107. };
  108. user0o {
  109. label = "user0:orange";
  110. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  111. default-state = "on";
  112. };
  113. user0g {
  114. label = "user0:green";
  115. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  116. default-state = "on";
  117. };
  118. misc {
  119. label = "status:orange:misc";
  120. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  121. default-state = "on";
  122. };
  123. };
  124. };
  125. &nand {
  126. status = "okay";
  127. partition@0 {
  128. label = "uboot";
  129. reg = <0x0000000 0x100000>;
  130. };
  131. partition@100000 {
  132. label = "env";
  133. reg = <0x100000 0x80000>;
  134. };
  135. partition@180000 {
  136. label = "fdt";
  137. reg = <0x180000 0x80000>;
  138. };
  139. partition@200000 {
  140. label = "kernel";
  141. reg = <0x200000 0x400000>;
  142. };
  143. partition@600000 {
  144. label = "rootfs";
  145. reg = <0x600000 0x1fa00000>;
  146. };
  147. };
  148. &mdio {
  149. status = "okay";
  150. ethphy0: ethernet-phy@1 {
  151. reg = <1>;
  152. };
  153. ethphy1: ethernet-phy@2 {
  154. reg = <2>;
  155. };
  156. };
  157. &eth0 {
  158. status = "okay";
  159. ethernet0-port@0 {
  160. phy-handle = <&ethphy0>;
  161. };
  162. };
  163. &eth1 {
  164. status = "okay";
  165. ethernet1-port@0 {
  166. phy-handle = <&ethphy1>;
  167. };
  168. };
  169. &pciec {
  170. status = "okay";
  171. };
  172. &pcie0 {
  173. status = "okay";
  174. };