kirkwood-ib62x0.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. };
  14. ocp@f1000000 {
  15. pinctrl: pinctrl@10000 {
  16. pmx_led_os_red: pmx-led-os-red {
  17. marvell,pins = "mpp22";
  18. marvell,function = "gpio";
  19. };
  20. pmx_power_off: pmx-power-off {
  21. marvell,pins = "mpp24";
  22. marvell,function = "gpio";
  23. };
  24. pmx_led_os_green: pmx-led-os-green {
  25. marvell,pins = "mpp25";
  26. marvell,function = "gpio";
  27. };
  28. pmx_led_usb_transfer: pmx-led-usb-transfer {
  29. marvell,pins = "mpp27";
  30. marvell,function = "gpio";
  31. };
  32. pmx_button_reset: pmx-button-reset {
  33. marvell,pins = "mpp28";
  34. marvell,function = "gpio";
  35. };
  36. pmx_button_usb_copy: pmx-button-usb-copy {
  37. marvell,pins = "mpp29";
  38. marvell,function = "gpio";
  39. };
  40. };
  41. serial@12000 {
  42. status = "okay";
  43. };
  44. sata@80000 {
  45. status = "okay";
  46. nr-ports = <2>;
  47. };
  48. };
  49. gpio_keys {
  50. compatible = "gpio-keys";
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
  54. pinctrl-names = "default";
  55. button@1 {
  56. label = "USB Copy";
  57. linux,code = <133>;
  58. gpios = <&gpio0 29 1>;
  59. };
  60. button@2 {
  61. label = "Reset";
  62. linux,code = <0x198>;
  63. gpios = <&gpio0 28 1>;
  64. };
  65. };
  66. gpio-leds {
  67. compatible = "gpio-leds";
  68. pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
  69. &pmx_led_usb_transfer>;
  70. pinctrl-names = "default";
  71. green-os {
  72. label = "ib62x0:green:os";
  73. gpios = <&gpio0 25 0>;
  74. linux,default-trigger = "default-on";
  75. };
  76. red-os {
  77. label = "ib62x0:red:os";
  78. gpios = <&gpio0 22 0>;
  79. };
  80. usb-copy {
  81. label = "ib62x0:red:usb_copy";
  82. gpios = <&gpio0 27 0>;
  83. };
  84. };
  85. gpio_poweroff {
  86. compatible = "gpio-poweroff";
  87. pinctrl-0 = <&pmx_power_off>;
  88. pinctrl-names = "default";
  89. gpios = <&gpio0 24 0>;
  90. };
  91. };
  92. &nand {
  93. status = "okay";
  94. pinctrl-0 = <&pmx_nand>;
  95. pinctrl-names = "default";
  96. partition@0 {
  97. label = "u-boot";
  98. reg = <0x0000000 0xe0000>;
  99. };
  100. partition@e0000 {
  101. label = "u-boot environment";
  102. reg = <0xe0000 0x100000>;
  103. };
  104. partition@100000 {
  105. label = "uImage";
  106. reg = <0x0100000 0x600000>;
  107. };
  108. partition@700000 {
  109. label = "root";
  110. reg = <0x0700000 0xf900000>;
  111. };
  112. };
  113. &mdio {
  114. status = "okay";
  115. ethphy0: ethernet-phy@8 {
  116. device_type = "ethernet-phy";
  117. reg = <8>;
  118. };
  119. };
  120. &eth0 {
  121. status = "okay";
  122. ethernet0-port@0 {
  123. phy-handle = <&ethphy0>;
  124. };
  125. };