kirkwood-mplcec4.dts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>;
  16. pcie-controller {
  17. status = "okay";
  18. pcie@1,0 {
  19. status = "okay";
  20. };
  21. };
  22. };
  23. ocp@f1000000 {
  24. pinctrl: pinctrl@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 = "ok";
  75. pinctrl-0 = <&pmx_uart0>;
  76. pinctrl-names = "default";
  77. };
  78. nand@3000000 {
  79. pinctrl-0 = <&pmx_nand>;
  80. pinctrl-names = "default";
  81. status = "okay";
  82. partition@0 {
  83. label = "uboot";
  84. reg = <0x0000000 0x100000>;
  85. };
  86. partition@100000 {
  87. label = "env";
  88. reg = <0x100000 0x80000>;
  89. };
  90. partition@180000 {
  91. label = "fdt";
  92. reg = <0x180000 0x80000>;
  93. };
  94. partition@200000 {
  95. label = "kernel";
  96. reg = <0x200000 0x400000>;
  97. };
  98. partition@600000 {
  99. label = "rootfs";
  100. reg = <0x600000 0x1fa00000>;
  101. };
  102. };
  103. rtc@10300 {
  104. status = "disabled";
  105. };
  106. sata@80000 {
  107. pinctrl-0 = <&pmx_sata0 &pmx_sata1>;
  108. pinctrl-names = "default";
  109. nr-ports = <2>;
  110. status = "okay";
  111. };
  112. mvsdio@90000 {
  113. pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
  114. pinctrl-names = "default";
  115. status = "okay";
  116. cd-gpios = <&gpio1 15 1>;
  117. /* No WP GPIO */
  118. };
  119. };
  120. gpio-leds {
  121. compatible = "gpio-leds";
  122. pinctrl-0 = < &pmx_led_health
  123. &pmx_led_user1o
  124. &pmx_led_user1g &pmx_led_user0o
  125. &pmx_led_user0g &pmx_led_misc
  126. >;
  127. pinctrl-names = "default";
  128. health {
  129. label = "status:green:health";
  130. gpios = <&gpio0 7 1>;
  131. };
  132. user1o {
  133. label = "user1:orange";
  134. gpios = <&gpio1 8 1>;
  135. default-state = "on";
  136. };
  137. user1g {
  138. label = "user1:green";
  139. gpios = <&gpio1 9 1>;
  140. default-state = "on";
  141. };
  142. user0o {
  143. label = "user0:orange";
  144. gpios = <&gpio1 12 1>;
  145. default-state = "on";
  146. };
  147. user0g {
  148. label = "user0:green";
  149. gpios = <&gpio1 13 1>;
  150. default-state = "on";
  151. };
  152. misc {
  153. label = "status:orange:misc";
  154. gpios = <&gpio1 14 1>;
  155. default-state = "on";
  156. };
  157. };
  158. };
  159. &mdio {
  160. status = "okay";
  161. ethphy0: ethernet-phy@1 {
  162. device_type = "ethernet-phy";
  163. reg = <1>;
  164. };
  165. ethphy1: ethernet-phy@2 {
  166. device_type = "ethernet-phy";
  167. reg = <2>;
  168. };
  169. };
  170. &eth0 {
  171. status = "okay";
  172. ethernet0-port@0 {
  173. phy-handle = <&ethphy0>;
  174. };
  175. };
  176. &eth1 {
  177. status = "okay";
  178. ethernet1-port@0 {
  179. phy-handle = <&ethphy1>;
  180. };
  181. };