kirkwood-ib62x0.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /dts-v1/;
  2. #include "kirkwood.dtsi"
  3. #include "kirkwood-6281.dtsi"
  4. / {
  5. model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
  6. compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  7. memory {
  8. device_type = "memory";
  9. reg = <0x00000000 0x10000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,115200n8 earlyprintk";
  13. stdout-path = &uart0;
  14. };
  15. ocp@f1000000 {
  16. pinctrl: pin-controller@10000 {
  17. pmx_led_os_red: pmx-led-os-red {
  18. marvell,pins = "mpp22";
  19. marvell,function = "gpio";
  20. };
  21. pmx_power_off: pmx-power-off {
  22. marvell,pins = "mpp24";
  23. marvell,function = "gpio";
  24. };
  25. pmx_led_os_green: pmx-led-os-green {
  26. marvell,pins = "mpp25";
  27. marvell,function = "gpio";
  28. };
  29. pmx_led_usb_transfer: pmx-led-usb-transfer {
  30. marvell,pins = "mpp27";
  31. marvell,function = "gpio";
  32. };
  33. pmx_button_reset: pmx-button-reset {
  34. marvell,pins = "mpp28";
  35. marvell,function = "gpio";
  36. };
  37. pmx_button_usb_copy: pmx-button-usb-copy {
  38. marvell,pins = "mpp29";
  39. marvell,function = "gpio";
  40. };
  41. };
  42. serial@12000 {
  43. status = "okay";
  44. };
  45. sata@80000 {
  46. status = "okay";
  47. nr-ports = <2>;
  48. };
  49. };
  50. gpio_keys {
  51. compatible = "gpio-keys";
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
  55. pinctrl-names = "default";
  56. copy {
  57. label = "USB Copy";
  58. linux,code = <KEY_COPY>;
  59. gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
  60. };
  61. reset {
  62. label = "Reset";
  63. linux,code = <KEY_RESTART>;
  64. gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
  65. };
  66. };
  67. gpio-leds {
  68. compatible = "gpio-leds";
  69. pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
  70. &pmx_led_usb_transfer>;
  71. pinctrl-names = "default";
  72. green-os {
  73. label = "ib62x0:green:os";
  74. gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
  75. default-state = "keep";
  76. };
  77. red-os {
  78. label = "ib62x0:red:os";
  79. gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
  80. };
  81. usb-copy {
  82. label = "ib62x0:red:usb_copy";
  83. gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
  84. };
  85. };
  86. gpio_poweroff {
  87. compatible = "gpio-poweroff";
  88. pinctrl-0 = <&pmx_power_off>;
  89. pinctrl-names = "default";
  90. gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
  91. };
  92. };
  93. &nand {
  94. status = "okay";
  95. partition@0 {
  96. label = "u-boot";
  97. reg = <0x0000000 0xe0000>;
  98. };
  99. partition@e0000 {
  100. label = "u-boot environment";
  101. reg = <0xe0000 0x20000>;
  102. };
  103. partition@100000 {
  104. label = "uImage";
  105. reg = <0x0100000 0x600000>;
  106. };
  107. partition@700000 {
  108. label = "root";
  109. reg = <0x0700000 0xf900000>;
  110. };
  111. };
  112. &mdio {
  113. status = "okay";
  114. ethphy0: ethernet-phy@8 {
  115. reg = <8>;
  116. };
  117. };
  118. &eth0 {
  119. status = "okay";
  120. ethernet0-port@0 {
  121. phy-handle = <&ethphy0>;
  122. };
  123. };