203-blackarmor-nas220.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --- a/arch/arm/boot/dts/kirkwood-blackarmor-nas220.dts
  2. +++ b/arch/arm/boot/dts/kirkwood-blackarmor-nas220.dts
  3. @@ -17,6 +17,13 @@
  4. compatible = "seagate,blackarmor-nas220","marvell,kirkwood-88f6192",
  5. "marvell,kirkwood";
  6. + aliases {
  7. + led-boot = &led_status_amber;
  8. + led-failsafe = &led_status_amber;
  9. + led-running = &led_status_blue;
  10. + led-upgrade = &led_status_amber;
  11. + };
  12. +
  13. memory { /* 128 MB */
  14. device_type = "memory";
  15. reg = <0x00000000 0x8000000>;
  16. @@ -36,14 +43,14 @@
  17. compatible = "gpio-keys";
  18. reset {
  19. - label = "Reset";
  20. - linux,code = <KEY_POWER>;
  21. + label = "Reset Button";
  22. + linux,code = <KEY_RESTART>;
  23. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  24. };
  25. - button {
  26. - label = "Power";
  27. - linux,code = <KEY_SLEEP>;
  28. + power {
  29. + label = "Power Button";
  30. + linux,code = <KEY_POWER>;
  31. gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
  32. };
  33. };
  34. @@ -51,11 +58,27 @@
  35. gpio-leds {
  36. compatible = "gpio-leds";
  37. - blue-power {
  38. + led_power_blue: power_blue {
  39. label = "nas220:blue:power";
  40. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  41. linux,default-trigger = "default-on";
  42. };
  43. +
  44. + disk_blue {
  45. + label = "nas220:blue:disk";
  46. + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  47. + linux,default-trigger = "disk-activity";
  48. + };
  49. +
  50. + led_status_blue: status_blue {
  51. + label = "nas220:blue:status";
  52. + gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
  53. + };
  54. +
  55. + led_status_amber: status_amber {
  56. + label = "nas220:amber:status";
  57. + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
  58. + };
  59. };
  60. regulators {
  61. @@ -153,6 +176,33 @@
  62. &nand {
  63. status = "okay";
  64. +
  65. + partitions {
  66. + compatible = "fixed-partitions";
  67. +
  68. + partition@0 {
  69. + label = "uboot";
  70. + reg = <0x0 0xa0000>;
  71. + read-only;
  72. + };
  73. +
  74. + partition@a0000 {
  75. + label = "uboot-env";
  76. + reg = <0xa0000 0x10000>;
  77. + read-only;
  78. + };
  79. +
  80. + partition@b0000 {
  81. + label = "reserved";
  82. + reg = <0xb0000 0x10000>;
  83. + read-only;
  84. + };
  85. +
  86. + partition@c0000 {
  87. + label = "ubi";
  88. + reg = <0xc0000 0x1e80000>;
  89. + };
  90. + };
  91. };
  92. &mdio {