kirkwood-nsa310.dts 3.6 KB

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