kirkwood-dnskw.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /include/ "kirkwood.dtsi"
  2. / {
  3. model = "D-Link DNS NASes (kirkwood-based)";
  4. compatible = "dlink,dns-kirkwood", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  5. gpio_keys {
  6. compatible = "gpio-keys";
  7. #address-cells = <1>;
  8. #size-cells = <0>;
  9. button@1 {
  10. label = "Power button";
  11. linux,code = <116>;
  12. gpios = <&gpio1 2 1>;
  13. };
  14. button@2 {
  15. label = "USB unmount button";
  16. linux,code = <161>;
  17. gpios = <&gpio1 15 1>;
  18. };
  19. button@3 {
  20. label = "Reset button";
  21. linux,code = <0x198>;
  22. gpios = <&gpio1 16 1>;
  23. };
  24. };
  25. gpio_fan {
  26. /* Fan: ADDA AD045HB-G73 40mm 6000rpm@5v */
  27. compatible = "gpio-fan";
  28. gpios = <&gpio1 14 1
  29. &gpio1 13 1>;
  30. gpio-fan,speed-map = <0 0
  31. 3000 1
  32. 6000 2>;
  33. };
  34. gpio_poweroff {
  35. compatible = "gpio-poweroff";
  36. gpios = <&gpio1 4 0>;
  37. };
  38. ocp@f1000000 {
  39. sata@80000 {
  40. status = "okay";
  41. nr-ports = <2>;
  42. };
  43. nand@3000000 {
  44. status = "okay";
  45. chip-delay = <35>;
  46. partition@0 {
  47. label = "u-boot";
  48. reg = <0x0000000 0x100000>;
  49. read-only;
  50. };
  51. partition@100000 {
  52. label = "uImage";
  53. reg = <0x0100000 0x500000>;
  54. };
  55. partition@600000 {
  56. label = "ramdisk";
  57. reg = <0x0600000 0x500000>;
  58. };
  59. partition@b00000 {
  60. label = "image";
  61. reg = <0x0b00000 0x6600000>;
  62. };
  63. partition@7100000 {
  64. label = "mini firmware";
  65. reg = <0x7100000 0xa00000>;
  66. };
  67. partition@7b00000 {
  68. label = "config";
  69. reg = <0x7b00000 0x500000>;
  70. };
  71. };
  72. };
  73. regulators {
  74. compatible = "simple-bus";
  75. #address-cells = <1>;
  76. #size-cells = <0>;
  77. sata0_power: regulator@1 {
  78. compatible = "regulator-fixed";
  79. reg = <1>;
  80. regulator-name = "SATA0 Power";
  81. regulator-min-microvolt = <5000000>;
  82. regulator-max-microvolt = <5000000>;
  83. enable-active-high;
  84. regulator-always-on;
  85. regulator-boot-on;
  86. gpio = <&gpio1 7 0>;
  87. };
  88. sata1_power: regulator@2 {
  89. compatible = "regulator-fixed";
  90. reg = <2>;
  91. regulator-name = "SATA1 Power";
  92. regulator-min-microvolt = <5000000>;
  93. regulator-max-microvolt = <5000000>;
  94. enable-active-high;
  95. regulator-always-on;
  96. regulator-boot-on;
  97. gpio = <&gpio1 8 0>;
  98. };
  99. };
  100. };