kirkwood-nsa310.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /dts-v1/;
  2. /include/ "kirkwood.dtsi"
  3. / {
  4. model = "ZyXEL NSA310";
  5. compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  6. memory {
  7. device_type = "memory";
  8. reg = <0x00000000 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. ocp@f1000000 {
  14. serial@12000 {
  15. clock-frequency = <200000000>;
  16. status = "ok";
  17. };
  18. sata@80000 {
  19. status = "okay";
  20. nr-ports = <2>;
  21. };
  22. i2c@11000 {
  23. status = "okay";
  24. };
  25. nand@3000000 {
  26. status = "okay";
  27. chip-delay = <35>;
  28. partition@0 {
  29. label = "uboot";
  30. reg = <0x0000000 0x0100000>;
  31. read-only;
  32. };
  33. partition@100000 {
  34. label = "uboot_env";
  35. reg = <0x0100000 0x0080000>;
  36. };
  37. partition@180000 {
  38. label = "key_store";
  39. reg = <0x0180000 0x0080000>;
  40. };
  41. partition@200000 {
  42. label = "info";
  43. reg = <0x0200000 0x0080000>;
  44. };
  45. partition@280000 {
  46. label = "etc";
  47. reg = <0x0280000 0x0a00000>;
  48. };
  49. partition@c80000 {
  50. label = "kernel_1";
  51. reg = <0x0c80000 0x0a00000>;
  52. };
  53. partition@1680000 {
  54. label = "rootfs1";
  55. reg = <0x1680000 0x2fc0000>;
  56. };
  57. partition@4640000 {
  58. label = "kernel_2";
  59. reg = <0x4640000 0x0a00000>;
  60. };
  61. partition@5040000 {
  62. label = "rootfs2";
  63. reg = <0x5040000 0x2fc0000>;
  64. };
  65. };
  66. };
  67. gpio_keys {
  68. compatible = "gpio-keys";
  69. #address-cells = <1>;
  70. #size-cells = <0>;
  71. button@1 {
  72. label = "Power Button";
  73. linux,code = <116>;
  74. gpios = <&gpio1 14 0>;
  75. };
  76. button@2 {
  77. label = "Copy Button";
  78. linux,code = <133>;
  79. gpios = <&gpio1 5 1>;
  80. };
  81. button@3 {
  82. label = "Reset Button";
  83. linux,code = <0x198>;
  84. gpios = <&gpio1 4 1>;
  85. };
  86. };
  87. gpio-leds {
  88. compatible = "gpio-leds";
  89. green-sys {
  90. label = "nsa310:green:sys";
  91. gpios = <&gpio0 28 0>;
  92. };
  93. red-sys {
  94. label = "nsa310:red:sys";
  95. gpios = <&gpio0 29 0>;
  96. };
  97. green-hdd {
  98. label = "nsa310:green:hdd";
  99. gpios = <&gpio1 9 0>;
  100. };
  101. red-hdd {
  102. label = "nsa310:red:hdd";
  103. gpios = <&gpio1 10 0>;
  104. };
  105. green-esata {
  106. label = "nsa310:green:esata";
  107. gpios = <&gpio0 12 0>;
  108. };
  109. red-esata {
  110. label = "nsa310:red:esata";
  111. gpios = <&gpio0 13 0>;
  112. };
  113. green-usb {
  114. label = "nsa310:green:usb";
  115. gpios = <&gpio0 15 0>;
  116. };
  117. red-usb {
  118. label = "nsa310:red:usb";
  119. gpios = <&gpio0 16 0>;
  120. };
  121. green-copy {
  122. label = "nsa310:green:copy";
  123. gpios = <&gpio1 7 0>;
  124. };
  125. red-copy {
  126. label = "nsa310:red:copy";
  127. gpios = <&gpio1 8 0>;
  128. };
  129. };
  130. };