kirkwood-linkstation-duo-6281.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device Tree common file for kirkwood-6281 based 2-Bay Buffalo Linkstation
  4. *
  5. * Copyright (C) 2015, 2016
  6. * Roger Shimizu <[email protected]>
  7. */
  8. #include "kirkwood.dtsi"
  9. #include "kirkwood-6281.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 = "mpp28";
  16. marvell,function = "gpio";
  17. };
  18. pmx_power_hdd1: pmx-power-hdd1 {
  19. marvell,pins = "mpp29";
  20. marvell,function = "gpio";
  21. };
  22. pmx_usb_vbus: pmx-usb-vbus {
  23. marvell,pins = "mpp37";
  24. marvell,function = "gpio";
  25. };
  26. pmx_led_alarm: pmx-led-alarm {
  27. marvell,pins = "mpp49";
  28. marvell,function = "gpio";
  29. };
  30. pmx_led_function_red: pmx-led-function-red {
  31. marvell,pins = "mpp34";
  32. marvell,function = "gpio";
  33. };
  34. pmx_led_function_blue: pmx-led-function-blue {
  35. marvell,pins = "mpp36";
  36. marvell,function = "gpio";
  37. };
  38. pmx_led_info: pmx-led-info {
  39. marvell,pins = "mpp38";
  40. marvell,function = "gpio";
  41. };
  42. pmx_led_power: pmx-led-power {
  43. marvell,pins = "mpp39";
  44. marvell,function = "gpio";
  45. };
  46. pmx_button_function: pmx-button-function {
  47. marvell,pins = "mpp41";
  48. marvell,function = "gpio";
  49. };
  50. pmx_power_switch: pmx-power-switch {
  51. marvell,pins = "mpp42";
  52. marvell,function = "gpio";
  53. };
  54. pmx_power_auto_switch: pmx-power-auto-switch {
  55. marvell,pins = "mpp43";
  56. marvell,function = "gpio";
  57. };
  58. };
  59. sata@80000 {
  60. nr-ports = <2>;
  61. };
  62. };
  63. gpio_keys {
  64. function-button {
  65. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  66. };
  67. power-on-switch {
  68. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  69. };
  70. power-auto-switch {
  71. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  72. };
  73. };
  74. gpio_leds {
  75. red-alarm-led {
  76. label = "linkstation:red:alarm";
  77. gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
  78. };
  79. red-function-led {
  80. label = "linkstation:red:function";
  81. gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
  82. };
  83. amber-info-led {
  84. label = "linkstation:amber:info";
  85. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  86. };
  87. blue-function-led {
  88. label = "linkstation:blue:function";
  89. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  90. };
  91. blue-power-led {
  92. label = "linkstation:blue:power";
  93. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  94. default-state = "keep";
  95. };
  96. };
  97. regulators {
  98. pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>;
  99. usb_power: regulator@1 {
  100. gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>;
  101. };
  102. hdd_power0: regulator@2 {
  103. gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  104. };
  105. hdd_power1: regulator@3 {
  106. compatible = "regulator-fixed";
  107. reg = <3>;
  108. regulator-name = "HDD1 Power";
  109. regulator-min-microvolt = <5000000>;
  110. regulator-max-microvolt = <5000000>;
  111. enable-active-high;
  112. regulator-always-on;
  113. regulator-boot-on;
  114. gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  115. };
  116. };
  117. };
  118. &mdio {
  119. status = "okay";
  120. ethphy1: ethernet-phy@8 {
  121. device_type = "ethernet-phy";
  122. reg = <8>;
  123. };
  124. };
  125. &eth1 {
  126. status = "okay";
  127. ethernet1-port@0 {
  128. phy-handle = <&ethphy1>;
  129. };
  130. };