orion5x-linkstation-lschl.dts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. * Device Tree file for Buffalo Linkstation LS-CHLv3
  3. *
  4. * Copyright (C) 2016 Ash Hughes <[email protected]>
  5. * Copyright (C) 2015-2017
  6. * Roger Shimizu <[email protected]>
  7. *
  8. * This file is dual-licensed: you can use it either under the terms
  9. * of the GPL or the X11 license, at your option. Note that this dual
  10. * licensing only applies to this file, and not this project as a
  11. * whole.
  12. *
  13. * a) This file is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of the
  16. * License, or (at your option) any later version.
  17. *
  18. * This file is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * Or, alternatively,
  24. *
  25. * b) Permission is hereby granted, free of charge, to any person
  26. * obtaining a copy of this software and associated documentation
  27. * files (the "Software"), to deal in the Software without
  28. * restriction, including without limitation the rights to use,
  29. * copy, modify, merge, publish, distribute, sublicense, and/or
  30. * sell copies of the Software, and to permit persons to whom the
  31. * Software is furnished to do so, subject to the following
  32. * conditions:
  33. *
  34. * The above copyright notice and this permission notice shall be
  35. * included in all copies or substantial portions of the Software.
  36. *
  37. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  38. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  39. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  40. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  41. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  42. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  43. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  44. * OTHER DEALINGS IN THE SOFTWARE.
  45. */
  46. /dts-v1/;
  47. #include "orion5x-linkstation.dtsi"
  48. #include "mvebu-linkstation-gpio-simple.dtsi"
  49. #include "mvebu-linkstation-fan.dtsi"
  50. #include <dt-bindings/gpio/gpio.h>
  51. / {
  52. model = "Buffalo Linkstation LiveV3 (LS-CHL)";
  53. compatible = "buffalo,lschl", "marvell,orion5x-88f5182", "marvell,orion5x";
  54. memory { /* 128 MB */
  55. device_type = "memory";
  56. reg = <0x00000000 0x8000000>;
  57. };
  58. gpio_keys {
  59. func {
  60. label = "Function Button";
  61. linux,code = <KEY_OPTION>;
  62. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  63. };
  64. power-on-switch {
  65. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  66. };
  67. power-auto-switch {
  68. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  69. };
  70. };
  71. gpio_leds {
  72. pinctrl-0 = <&pmx_led_power &pmx_led_alarm &pmx_led_info &pmx_led_func>;
  73. blue-power-led {
  74. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  75. };
  76. red-alarm-led {
  77. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  78. };
  79. amber-info-led {
  80. gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
  81. };
  82. func {
  83. label = "lschl:func:blue:top";
  84. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  85. };
  86. };
  87. gpio_fan {
  88. gpios = <&gpio0 14 GPIO_ACTIVE_LOW
  89. &gpio0 16 GPIO_ACTIVE_LOW>;
  90. alarm-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
  91. };
  92. };
  93. &pinctrl {
  94. pmx_led_power: pmx-leds {
  95. marvell,pins = "mpp0";
  96. marvell,function = "gpio";
  97. };
  98. pmx_power_hdd: pmx-power-hdd {
  99. marvell,pins = "mpp1";
  100. marvell,function = "gpio";
  101. };
  102. pmx_led_alarm: pmx-leds {
  103. marvell,pins = "mpp2";
  104. marvell,function = "gpio";
  105. };
  106. pmx_led_info: pmx-leds {
  107. marvell,pins = "mpp3";
  108. marvell,function = "gpio";
  109. };
  110. pmx_fan_lock: pmx-fan-lock {
  111. marvell,pins = "mpp6";
  112. marvell,function = "gpio";
  113. };
  114. pmx_power_switch: pmx-power-switch {
  115. marvell,pins = "mpp8", "mpp10", "mpp15";
  116. marvell,function = "gpio";
  117. };
  118. pmx_power_usb: pmx-power-usb {
  119. marvell,pins = "mpp9";
  120. marvell,function = "gpio";
  121. };
  122. pmx_fan_high: pmx-fan-high {
  123. marvell,pins = "mpp14";
  124. marvell,function = "gpio";
  125. };
  126. pmx_fan_low: pmx-fan-low {
  127. marvell,pins = "mpp16";
  128. marvell,function = "gpio";
  129. };
  130. pmx_led_func: pmx-leds {
  131. marvell,pins = "mpp17";
  132. marvell,function = "gpio";
  133. };
  134. pmx_sw_init: pmx-sw-init {
  135. marvell,pins = "mpp7";
  136. marvell,function = "gpio";
  137. };
  138. };
  139. &hdd_power {
  140. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  141. };
  142. &usb_power {
  143. gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  144. };