kirkwood-nsa310b.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /dts-v1/;
  2. #include "kirkwood-nsa3x0-common.dtsi"
  3. /*
  4. * There are at least two different NSA310 designs. This variant has
  5. * a red/green USB Led (same as nsa310) and a lm85 temp/fan controller.
  6. */
  7. / {
  8. model = "ZyXEL NSA310b";
  9. compatible = "zyxel,nsa310b", "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  10. aliases {
  11. led-boot = &led_green_sys;
  12. led-failsafe = &led_red_sys;
  13. led-running = &led_green_sys;
  14. led-upgrade = &led_red_sys;
  15. };
  16. memory@0 {
  17. device_type = "memory";
  18. reg = <0x00000000 0x10000000>;
  19. };
  20. chosen {
  21. bootargs = "console=ttyS0,115200";
  22. stdout-path = &uart0;
  23. };
  24. ocp@f1000000 {
  25. pinctrl: pin-controller@10000 {
  26. pinctrl-names = "default";
  27. pmx_led_esata_green: pmx-led-esata-green {
  28. marvell,pins = "mpp12";
  29. marvell,function = "gpio";
  30. };
  31. pmx_led_esata_red: pmx-led-esata-red {
  32. marvell,pins = "mpp13";
  33. marvell,function = "gpio";
  34. };
  35. pmx_led_usb_green: pmx-led-usb-green {
  36. marvell,pins = "mpp15";
  37. marvell,function = "gpio";
  38. };
  39. pmx_led_usb_red: pmx-led-usb-red {
  40. marvell,pins = "mpp16";
  41. marvell,function = "gpio";
  42. };
  43. pmx_led_sys_green: pmx-led-sys-green {
  44. marvell,pins = "mpp28";
  45. marvell,function = "gpio";
  46. };
  47. pmx_led_sys_red: pmx-led-sys-red {
  48. marvell,pins = "mpp29";
  49. marvell,function = "gpio";
  50. };
  51. pmx_led_hdd_green: pmx-led-hdd-green {
  52. marvell,pins = "mpp41";
  53. marvell,function = "gpio";
  54. };
  55. pmx_led_hdd_red: pmx-led-hdd-red {
  56. marvell,pins = "mpp42";
  57. marvell,function = "gpio";
  58. };
  59. };
  60. i2c@11000 {
  61. status = "okay";
  62. lm85: lm85@2e {
  63. compatible = "national,lm85";
  64. reg = <0x2e>;
  65. };
  66. };
  67. };
  68. gpio-leds {
  69. compatible = "gpio-leds";
  70. led_green_sys: green-sys {
  71. label = "nsa310:green:sys";
  72. gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  73. default-state = "on";
  74. };
  75. led_red_sys: 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. linux,default-trigger = "ata1";
  83. };
  84. red-hdd {
  85. label = "nsa310:red:hdd";
  86. gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
  87. };
  88. green-esata {
  89. label = "nsa310:green:esata";
  90. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  91. linux,default-trigger = "ata2";
  92. };
  93. red-esata {
  94. label = "nsa310:red:esata";
  95. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  96. };
  97. green-usb {
  98. label = "nsa310:green:usb";
  99. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  100. linux,default-trigger = "usb-host";
  101. };
  102. red-usb {
  103. label = "nsa310:red:usb";
  104. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  105. };
  106. green-copy {
  107. label = "nsa310:green:copy";
  108. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  109. };
  110. red-copy {
  111. label = "nsa310:red:copy";
  112. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  113. };
  114. };
  115. };