kirkwood-on100.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /dts-v1/;
  2. #include "kirkwood.dtsi"
  3. #include "kirkwood-6282.dtsi"
  4. / {
  5. model = "Cisco Systems ON100";
  6. compatible = "cisco,on100", "marvell,kirkwood-88f6282", "marvell,kirkwood";
  7. memory@0 {
  8. device_type = "memory";
  9. reg = <0x00000000 0x20000000>;
  10. };
  11. aliases {
  12. led-boot = &led_health_green;
  13. led-failsafe = &led_health_red;
  14. led-running = &led_health_green;
  15. led-upgrade = &led_health_red;
  16. serial0 = &uart0;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,115200n8 earlyprintk";
  20. stdout-path = "serial0:115200n8";
  21. };
  22. gpio-keys {
  23. compatible = "gpio-keys";
  24. pinctrl-0 = <&pmx_btn_reset>;
  25. pinctrl-names = "default";
  26. reset {
  27. label = "Reset Button";
  28. linux,code = <KEY_RESTART>;
  29. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. pinctrl-0 = <&pmx_led_health_red &pmx_led_health_green>;
  35. pinctrl-names = "default";
  36. led_health_green: health-green {
  37. label = "on100:green:health";
  38. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  39. default-state = "on";
  40. };
  41. led_health_red: health-red {
  42. label = "on100:red:health";
  43. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  44. };
  45. health2-green {
  46. label = "on100:green:health2";
  47. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  48. };
  49. health2-red {
  50. label = "on100:red:health2";
  51. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. };
  55. &eth0 {
  56. status = "okay";
  57. ethernet0-port@0 {
  58. phy-handle = <&ethphy0>;
  59. phy-connection-type = "rgmii-id";
  60. };
  61. };
  62. &eth1 {
  63. status = "okay";
  64. ethernet1-port@0 {
  65. phy-handle = <&ethphy1>;
  66. phy-connection-type = "rgmii-id";
  67. };
  68. };
  69. &mdio {
  70. status = "okay";
  71. ethphy0: ethernet-phy@0 {
  72. /* Marvell 88E1121R */
  73. compatible = "ethernet-phy-id0141.0cb0",
  74. "ethernet-phy-ieee802.3-c22";
  75. reg = <0>;
  76. };
  77. ethphy1: ethernet-phy@1 {
  78. /* Marvell 88E1121R */
  79. compatible = "ethernet-phy-id0141.0cb0",
  80. "ethernet-phy-ieee802.3-c22";
  81. reg = <1>;
  82. };
  83. };
  84. &nand {
  85. status = "okay";
  86. partition@0 {
  87. label = "u-boot";
  88. reg = <0x00000000 0x000a0000>;
  89. read-only;
  90. };
  91. partition@a0000 {
  92. label = "u-boot environment";
  93. reg = <0x000a0000 0x00020000>;
  94. read-only;
  95. };
  96. partition@c0000 {
  97. label = "kernel";
  98. reg = <0x000c0000 0x00540000>;
  99. };
  100. partition@600000 {
  101. label = "ubi";
  102. reg = <0x00600000 0x1fa00000>;
  103. };
  104. };
  105. &pinctrl {
  106. pmx_led_health_red: pmx-led-health-red {
  107. marvell,pins = "mpp45";
  108. marvell,function = "gpio";
  109. };
  110. pmx_led_health_green: pmx-led-health-green {
  111. marvell,pins = "mpp44";
  112. marvell,function = "gpio";
  113. };
  114. pmx_led_health2_red: pmx-led-health2-red {
  115. marvell,pins = "mpp47";
  116. marvell,function = "gpio";
  117. };
  118. pmx_led_health2_green: pmx-led-health2-green {
  119. marvell,pins = "mpp46";
  120. marvell,function = "gpio";
  121. };
  122. pmx_btn_reset: pmx-btn-reset {
  123. marvell,pins = "mpp31";
  124. marvell,function = "gpio";
  125. };
  126. };
  127. &sdio {
  128. status = "okay";
  129. };
  130. &uart0 {
  131. status = "okay";
  132. };