kirkwood-mplcec4.dts 3.7 KB

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