kirkwood-nsa310.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "kirkwood-nsa3x0-common.dtsi"
  4. / {
  5. compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  6. memory {
  7. device_type = "memory";
  8. reg = <0x00000000 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. stdout-path = &uart0;
  13. };
  14. ocp@f1000000 {
  15. pinctrl: pin-controller@10000 {
  16. pinctrl-0 = <&pmx_unknown>;
  17. pinctrl-names = "default";
  18. pmx_led_esata_green: pmx-led-esata-green {
  19. marvell,pins = "mpp12";
  20. marvell,function = "gpio";
  21. };
  22. pmx_led_esata_red: pmx-led-esata-red {
  23. marvell,pins = "mpp13";
  24. marvell,function = "gpio";
  25. };
  26. pmx_led_usb_green: pmx-led-usb-green {
  27. marvell,pins = "mpp15";
  28. marvell,function = "gpio";
  29. };
  30. pmx_led_usb_red: pmx-led-usb-red {
  31. marvell,pins = "mpp16";
  32. marvell,function = "gpio";
  33. };
  34. pmx_led_sys_green: pmx-led-sys-green {
  35. marvell,pins = "mpp28";
  36. marvell,function = "gpio";
  37. };
  38. pmx_led_sys_red: pmx-led-sys-red {
  39. marvell,pins = "mpp29";
  40. marvell,function = "gpio";
  41. };
  42. pmx_led_hdd_green: pmx-led-hdd-green {
  43. marvell,pins = "mpp41";
  44. marvell,function = "gpio";
  45. };
  46. pmx_led_hdd_red: pmx-led-hdd-red {
  47. marvell,pins = "mpp42";
  48. marvell,function = "gpio";
  49. };
  50. pmx_unknown: pmx-unknown {
  51. marvell,pins = "mpp44";
  52. marvell,function = "gpio";
  53. };
  54. };
  55. i2c@11000 {
  56. status = "okay";
  57. adt7476: adt7476a@2e {
  58. compatible = "adi,adt7476";
  59. reg = <0x2e>;
  60. };
  61. };
  62. };
  63. gpio-leds {
  64. compatible = "gpio-leds";
  65. pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red
  66. &pmx_led_usb_green &pmx_led_usb_red
  67. &pmx_led_sys_green &pmx_led_sys_red
  68. &pmx_led_copy_green &pmx_led_copy_red
  69. &pmx_led_hdd_green &pmx_led_hdd_red>;
  70. pinctrl-names = "default";
  71. green-sys {
  72. label = "nsa310:green:sys";
  73. gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  74. };
  75. red-sys {
  76. label = "nsa310:red:sys";
  77. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  78. };
  79. green-hdd {
  80. label = "nsa310:green:hdd";
  81. gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
  82. };
  83. red-hdd {
  84. label = "nsa310:red:hdd";
  85. gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  86. };
  87. green-esata {
  88. label = "nsa310:green:esata";
  89. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  90. };
  91. red-esata {
  92. label = "nsa310:red:esata";
  93. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  94. };
  95. green-usb {
  96. label = "nsa310:green:usb";
  97. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  98. };
  99. red-usb {
  100. label = "nsa310:red:usb";
  101. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  102. };
  103. green-copy {
  104. label = "nsa310:green:copy";
  105. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  106. };
  107. red-copy {
  108. label = "nsa310:red:copy";
  109. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  110. };
  111. };
  112. };
  113. &pciec {
  114. status = "okay";
  115. };
  116. &pcie0 {
  117. status = "okay";
  118. };