kirkwood-ib62x0.dts 2.3 KB

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