kirkwood-nsa310.dts 3.5 KB

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