kirkwood-nsa310.dts 3.4 KB

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