kirkwood-mplcec4.dts 3.5 KB

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