kirkwood-nsa310a.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /dts-v1/;
  2. #include "kirkwood-nsa310-common.dtsi"
  3. /*
  4. * There are at least two different NSA310 designs. This variant does
  5. * not have the red USB Led.
  6. */
  7. / {
  8. compatible = "zyxel,nsa310a", "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  9. memory {
  10. device_type = "memory";
  11. reg = <0x00000000 0x10000000>;
  12. };
  13. chosen {
  14. bootargs = "console=ttyS0,115200";
  15. };
  16. ocp@f1000000 {
  17. pinctrl: pinctrl@10000 {
  18. pinctrl-names = "default";
  19. pmx_led_esata_green: pmx-led-esata-green {
  20. marvell,pins = "mpp12";
  21. marvell,function = "gpio";
  22. };
  23. pmx_led_esata_red: pmx-led-esata-red {
  24. marvell,pins = "mpp13";
  25. marvell,function = "gpio";
  26. };
  27. pmx_led_usb_green: pmx-led-usb-green {
  28. marvell,pins = "mpp15";
  29. marvell,function = "gpio";
  30. };
  31. pmx_usb_power_off: pmx-usb-power-off {
  32. marvell,pins = "mpp21";
  33. marvell,function = "gpio";
  34. };
  35. pmx_led_sys_green: pmx-led-sys-green {
  36. marvell,pins = "mpp28";
  37. marvell,function = "gpio";
  38. };
  39. pmx_led_sys_red: pmx-led-sys-red {
  40. marvell,pins = "mpp29";
  41. marvell,function = "gpio";
  42. };
  43. pmx_btn_reset: pmx-btn-reset {
  44. marvell,pins = "mpp36";
  45. marvell,function = "gpio";
  46. };
  47. pmx_btn_copy: pmx-btn-copy {
  48. marvell,pins = "mpp37";
  49. marvell,function = "gpio";
  50. };
  51. pmx_led_copy_green: pmx-led-copy-green {
  52. marvell,pins = "mpp39";
  53. marvell,function = "gpio";
  54. };
  55. pmx_led_copy_red: pmx-led-copy-red {
  56. marvell,pins = "mpp40";
  57. marvell,function = "gpio";
  58. };
  59. pmx_led_hdd_green: pmx-led-hdd-green {
  60. marvell,pins = "mpp41";
  61. marvell,function = "gpio";
  62. };
  63. pmx_led_hdd_red: pmx-led-hdd-red {
  64. marvell,pins = "mpp42";
  65. marvell,function = "gpio";
  66. };
  67. pmx_btn_power: pmx-btn-power {
  68. marvell,pins = "mpp46";
  69. marvell,function = "gpio";
  70. };
  71. };
  72. i2c@11000 {
  73. status = "okay";
  74. lm85: lm85@2e {
  75. compatible = "lm85";
  76. reg = <0x2e>;
  77. };
  78. };
  79. };
  80. gpio_keys {
  81. compatible = "gpio-keys";
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. button@1 {
  85. label = "Power Button";
  86. linux,code = <116>;
  87. gpios = <&gpio1 14 0>;
  88. };
  89. button@2 {
  90. label = "Copy Button";
  91. linux,code = <133>;
  92. gpios = <&gpio1 5 1>;
  93. };
  94. button@3 {
  95. label = "Reset Button";
  96. linux,code = <0x198>;
  97. gpios = <&gpio1 4 1>;
  98. };
  99. };
  100. gpio-leds {
  101. compatible = "gpio-leds";
  102. green-sys {
  103. label = "nsa310:green:sys";
  104. gpios = <&gpio0 28 0>;
  105. };
  106. red-sys {
  107. label = "nsa310:red:sys";
  108. gpios = <&gpio0 29 0>;
  109. };
  110. green-hdd {
  111. label = "nsa310:green:hdd";
  112. gpios = <&gpio1 9 0>;
  113. };
  114. red-hdd {
  115. label = "nsa310:red:hdd";
  116. gpios = <&gpio1 10 0>;
  117. };
  118. green-esata {
  119. label = "nsa310:green:esata";
  120. gpios = <&gpio0 12 0>;
  121. };
  122. red-esata {
  123. label = "nsa310:red:esata";
  124. gpios = <&gpio0 13 0>;
  125. };
  126. green-usb {
  127. label = "nsa310:green:usb";
  128. gpios = <&gpio0 15 0>;
  129. };
  130. green-copy {
  131. label = "nsa310:green:copy";
  132. gpios = <&gpio1 7 0>;
  133. };
  134. red-copy {
  135. label = "nsa310:red:copy";
  136. gpios = <&gpio1 8 0>;
  137. };
  138. };
  139. };