kirkwood-ib62x0.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. nand@3000000 {
  49. status = "okay";
  50. pinctrl-0 = <&pmx_nand>;
  51. pinctrl-names = "default";
  52. partition@0 {
  53. label = "u-boot";
  54. reg = <0x0000000 0x100000>;
  55. };
  56. partition@100000 {
  57. label = "uImage";
  58. reg = <0x0100000 0x600000>;
  59. };
  60. partition@700000 {
  61. label = "root";
  62. reg = <0x0700000 0xf900000>;
  63. };
  64. };
  65. };
  66. gpio_keys {
  67. compatible = "gpio-keys";
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
  71. pinctrl-names = "default";
  72. button@1 {
  73. label = "USB Copy";
  74. linux,code = <133>;
  75. gpios = <&gpio0 29 1>;
  76. };
  77. button@2 {
  78. label = "Reset";
  79. linux,code = <0x198>;
  80. gpios = <&gpio0 28 1>;
  81. };
  82. };
  83. gpio-leds {
  84. compatible = "gpio-leds";
  85. pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
  86. &pmx_led_usb_transfer>;
  87. pinctrl-names = "default";
  88. green-os {
  89. label = "ib62x0:green:os";
  90. gpios = <&gpio0 25 0>;
  91. linux,default-trigger = "default-on";
  92. };
  93. red-os {
  94. label = "ib62x0:red:os";
  95. gpios = <&gpio0 22 0>;
  96. };
  97. usb-copy {
  98. label = "ib62x0:red:usb_copy";
  99. gpios = <&gpio0 27 0>;
  100. };
  101. };
  102. gpio_poweroff {
  103. compatible = "gpio-poweroff";
  104. pinctrl-0 = <&pmx_power_off>;
  105. pinctrl-names = "default";
  106. gpios = <&gpio0 24 0>;
  107. };
  108. };
  109. &mdio {
  110. status = "okay";
  111. ethphy0: ethernet-phy@8 {
  112. device_type = "ethernet-phy";
  113. reg = <8>;
  114. };
  115. };
  116. &eth0 {
  117. status = "okay";
  118. ethernet0-port@0 {
  119. phy-handle = <&ethphy0>;
  120. };
  121. };