kirkwood-nsa310.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /dts-v1/;
  2. #include "kirkwood-nsa3x0-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. stdout-path = &uart0;
  12. };
  13. mbus {
  14. pcie-controller {
  15. status = "okay";
  16. pcie@1,0 {
  17. status = "okay";
  18. };
  19. };
  20. };
  21. ocp@f1000000 {
  22. pinctrl: pin-controller@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_led_hdd_green: pmx-led-hdd-green {
  50. marvell,pins = "mpp41";
  51. marvell,function = "gpio";
  52. };
  53. pmx_led_hdd_red: pmx-led-hdd-red {
  54. marvell,pins = "mpp42";
  55. marvell,function = "gpio";
  56. };
  57. pmx_unknown: pmx-unknown {
  58. marvell,pins = "mpp44";
  59. marvell,function = "gpio";
  60. };
  61. };
  62. i2c@11000 {
  63. status = "okay";
  64. adt7476: adt7476a@2e {
  65. compatible = "adi,adt7476";
  66. reg = <0x2e>;
  67. };
  68. };
  69. };
  70. gpio-leds {
  71. compatible = "gpio-leds";
  72. pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
  73. &pmx_led_usb_green &pmx_led_usb_red
  74. &pmx_led_sys_green &pmx_led_sys_red
  75. &pmx_led_copy_green &pmx_led_copy_red
  76. &pmx_led_hdd_green &pmx_led_hdd_red>;
  77. pinctrl-names = "default";
  78. green-sys {
  79. label = "nsa310:green:sys";
  80. gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  81. };
  82. red-sys {
  83. label = "nsa310:red:sys";
  84. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  85. };
  86. green-hdd {
  87. label = "nsa310:green:hdd";
  88. gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
  89. };
  90. red-hdd {
  91. label = "nsa310:red:hdd";
  92. gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  93. };
  94. green-esata {
  95. label = "nsa310:green:esata";
  96. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  97. };
  98. red-esata {
  99. label = "nsa310:red:esata";
  100. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  101. };
  102. green-usb {
  103. label = "nsa310:green:usb";
  104. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  105. };
  106. red-usb {
  107. label = "nsa310:red:usb";
  108. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  109. };
  110. green-copy {
  111. label = "nsa310:green:copy";
  112. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  113. };
  114. red-copy {
  115. label = "nsa310:red:copy";
  116. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  117. };
  118. };
  119. };