kirkwood-linkstation-6282.dtsi 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree common file for kirkwood-6282 based Buffalo Linkstation
  4. *
  5. * Copyright (C) 2015, 2016
  6. * Roger Shimizu <[email protected]>
  7. */
  8. #include "kirkwood.dtsi"
  9. #include "kirkwood-6282.dtsi"
  10. #include "kirkwood-linkstation.dtsi"
  11. / {
  12. ocp@f1000000 {
  13. pinctrl: pin-controller@10000 {
  14. pmx_power_hdd0: pmx-power-hdd0 {
  15. marvell,pins = "mpp8";
  16. marvell,function = "gpio";
  17. };
  18. pmx_usb_vbus: pmx-usb-vbus {
  19. marvell,pins = "mpp12";
  20. marvell,function = "gpio";
  21. };
  22. pmx_fan_high: pmx-fan-high {
  23. marvell,pins = "mpp16";
  24. marvell,function = "gpio";
  25. };
  26. pmx_fan_low: pmx-fan-low {
  27. marvell,pins = "mpp17";
  28. marvell,function = "gpio";
  29. };
  30. pmx_led_alarm: pmx-led-alarm {
  31. marvell,pins = "mpp36";
  32. marvell,function = "gpio";
  33. };
  34. pmx_led_function_red: pmx-led-function-red {
  35. marvell,pins = "mpp37";
  36. marvell,function = "gpio";
  37. };
  38. pmx_led_info: pmx-led-info {
  39. marvell,pins = "mpp38";
  40. marvell,function = "gpio";
  41. };
  42. pmx_led_function_blue: pmx-led-function-blue {
  43. marvell,pins = "mpp39";
  44. marvell,function = "gpio";
  45. };
  46. pmx_led_power: pmx-led-power {
  47. marvell,pins = "mpp40";
  48. marvell,function = "gpio";
  49. };
  50. pmx_fan_lock: pmx-fan-lock {
  51. marvell,pins = "mpp43";
  52. marvell,function = "gpio";
  53. };
  54. pmx_button_function: pmx-button-function {
  55. marvell,pins = "mpp45";
  56. marvell,function = "gpio";
  57. };
  58. pmx_power_switch: pmx-power-switch {
  59. marvell,pins = "mpp46";
  60. marvell,function = "gpio";
  61. };
  62. pmx_power_auto_switch: pmx-power-auto-switch {
  63. marvell,pins = "mpp47";
  64. marvell,function = "gpio";
  65. };
  66. };
  67. };
  68. gpio_keys {
  69. function-button {
  70. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  71. };
  72. power-on-switch {
  73. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  74. };
  75. power-auto-switch {
  76. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  77. };
  78. };
  79. gpio_leds {
  80. red-alarm-led {
  81. label = "linkstation:red:alarm";
  82. gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
  83. };
  84. red-function-led {
  85. label = "linkstation:red:function";
  86. gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
  87. };
  88. amber-info-led {
  89. label = "linkstation:amber:info";
  90. gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
  91. };
  92. blue-function-led {
  93. label = "linkstation:blue:function";
  94. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  95. };
  96. blue-power-led {
  97. label = "linkstation:blue:power";
  98. gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
  99. default-state = "keep";
  100. };
  101. };
  102. gpio_fan {
  103. compatible = "gpio-fan";
  104. pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
  105. pinctrl-names = "default";
  106. gpios = <&gpio0 17 GPIO_ACTIVE_LOW
  107. &gpio0 16 GPIO_ACTIVE_LOW>;
  108. gpio-fan,speed-map = <0 3
  109. 1500 2
  110. 3250 1
  111. 5000 0>;
  112. alarm-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
  113. };
  114. regulators {
  115. usb_power: regulator@1 {
  116. gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  117. };
  118. hdd_power0: regulator@2 {
  119. gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  120. };
  121. };
  122. };
  123. &mdio {
  124. status = "okay";
  125. ethphy0: ethernet-phy@0 {
  126. device_type = "ethernet-phy";
  127. reg = <0>;
  128. };
  129. };
  130. &eth0 {
  131. status = "okay";
  132. ethernet0-port@0 {
  133. phy-handle = <&ethphy0>;
  134. };
  135. };