kirkwood-nsa310.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. adt7476: adt7476a@2e {
  25. compatible = "adt7476";
  26. reg = <0x2e>;
  27. };
  28. };
  29. nand@3000000 {
  30. status = "okay";
  31. chip-delay = <35>;
  32. partition@0 {
  33. label = "uboot";
  34. reg = <0x0000000 0x0100000>;
  35. read-only;
  36. };
  37. partition@100000 {
  38. label = "uboot_env";
  39. reg = <0x0100000 0x0080000>;
  40. };
  41. partition@180000 {
  42. label = "key_store";
  43. reg = <0x0180000 0x0080000>;
  44. };
  45. partition@200000 {
  46. label = "info";
  47. reg = <0x0200000 0x0080000>;
  48. };
  49. partition@280000 {
  50. label = "etc";
  51. reg = <0x0280000 0x0a00000>;
  52. };
  53. partition@c80000 {
  54. label = "kernel_1";
  55. reg = <0x0c80000 0x0a00000>;
  56. };
  57. partition@1680000 {
  58. label = "rootfs1";
  59. reg = <0x1680000 0x2fc0000>;
  60. };
  61. partition@4640000 {
  62. label = "kernel_2";
  63. reg = <0x4640000 0x0a00000>;
  64. };
  65. partition@5040000 {
  66. label = "rootfs2";
  67. reg = <0x5040000 0x2fc0000>;
  68. };
  69. };
  70. };
  71. gpio_keys {
  72. compatible = "gpio-keys";
  73. #address-cells = <1>;
  74. #size-cells = <0>;
  75. button@1 {
  76. label = "Power Button";
  77. linux,code = <116>;
  78. gpios = <&gpio1 14 0>;
  79. };
  80. button@2 {
  81. label = "Copy Button";
  82. linux,code = <133>;
  83. gpios = <&gpio1 5 1>;
  84. };
  85. button@3 {
  86. label = "Reset Button";
  87. linux,code = <0x198>;
  88. gpios = <&gpio1 4 1>;
  89. };
  90. };
  91. gpio-leds {
  92. compatible = "gpio-leds";
  93. green-sys {
  94. label = "nsa310:green:sys";
  95. gpios = <&gpio0 28 0>;
  96. };
  97. red-sys {
  98. label = "nsa310:red:sys";
  99. gpios = <&gpio0 29 0>;
  100. };
  101. green-hdd {
  102. label = "nsa310:green:hdd";
  103. gpios = <&gpio1 9 0>;
  104. };
  105. red-hdd {
  106. label = "nsa310:red:hdd";
  107. gpios = <&gpio1 10 0>;
  108. };
  109. green-esata {
  110. label = "nsa310:green:esata";
  111. gpios = <&gpio0 12 0>;
  112. };
  113. red-esata {
  114. label = "nsa310:red:esata";
  115. gpios = <&gpio0 13 0>;
  116. };
  117. green-usb {
  118. label = "nsa310:green:usb";
  119. gpios = <&gpio0 15 0>;
  120. };
  121. red-usb {
  122. label = "nsa310:red:usb";
  123. gpios = <&gpio0 16 0>;
  124. };
  125. green-copy {
  126. label = "nsa310:green:copy";
  127. gpios = <&gpio1 7 0>;
  128. };
  129. red-copy {
  130. label = "nsa310:red:copy";
  131. gpios = <&gpio1 8 0>;
  132. };
  133. };
  134. gpio_poweroff {
  135. compatible = "gpio-poweroff";
  136. gpios = <&gpio1 16 0>;
  137. };
  138. regulators {
  139. compatible = "simple-bus";
  140. #address-cells = <1>;
  141. #size-cells = <0>;
  142. usb0_power_off: regulator@1 {
  143. compatible = "regulator-fixed";
  144. reg = <1>;
  145. regulator-name = "USB Power Off";
  146. regulator-min-microvolt = <5000000>;
  147. regulator-max-microvolt = <5000000>;
  148. regulator-always-on;
  149. regulator-boot-on;
  150. gpio = <&gpio0 21 0>;
  151. };
  152. };
  153. };