kirkwood-ib62x0.dts 2.7 KB

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