kirkwood-netxbig.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /*
  2. * Device Tree common file for LaCie 2Big and 5Big Network v2
  3. *
  4. * Copyright (C) 2014
  5. *
  6. * Andrew Lunn <andrew@lunn.ch>
  7. *
  8. * Based on netxbig_v2-setup.c,
  9. * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
  10. *
  11. * This file is licensed under the terms of the GNU General Public
  12. * License version 2. This program is licensed "as is" without any
  13. * warranty of any kind, whether express or implied.
  14. */
  15. #include "kirkwood.dtsi"
  16. #include "kirkwood-6281.dtsi"
  17. / {
  18. chosen {
  19. bootargs = "console=ttyS0,115200n8";
  20. stdout-path = &uart0;
  21. };
  22. ocp@f1000000 {
  23. serial@12000 {
  24. status = "okay";
  25. };
  26. spi@10600 {
  27. status = "okay";
  28. flash@0 {
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. compatible = "mxicy,mx25l4005a";
  32. reg = <0>;
  33. spi-max-frequency = <20000000>;
  34. mode = <0>;
  35. partition@0 {
  36. reg = <0x0 0x80000>;
  37. label = "u-boot";
  38. };
  39. };
  40. };
  41. sata@80000 {
  42. status = "okay";
  43. nr-ports = <2>;
  44. };
  45. };
  46. gpio-keys {
  47. compatible = "gpio-keys";
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. /*
  51. * button@1 and button@2 represent a three position rocker
  52. * switch. Thus the conventional KEY_POWER does not fit
  53. */
  54. button@1 {
  55. label = "Back power switch (on|auto)";
  56. linux,code = <KEY_ESC>;
  57. linux,input-type = <5>;
  58. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  59. };
  60. button@2 {
  61. label = "Back power switch (auto|off)";
  62. linux,code = <KEY_1>;
  63. linux,input-type = <5>;
  64. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  65. };
  66. button@3 {
  67. label = "Function button";
  68. linux,code = <KEY_OPTION>;
  69. gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
  70. };
  71. };
  72. gpio-poweroff {
  73. compatible = "gpio-poweroff";
  74. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  75. };
  76. regulators: regulators {
  77. status = "okay";
  78. compatible = "simple-bus";
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. pinctrl-names = "default";
  82. regulator@1 {
  83. compatible = "regulator-fixed";
  84. reg = <1>;
  85. regulator-name = "hdd0power";
  86. regulator-min-microvolt = <5000000>;
  87. regulator-max-microvolt = <5000000>;
  88. enable-active-high;
  89. regulator-always-on;
  90. regulator-boot-on;
  91. gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  92. };
  93. };
  94. };
  95. &mdio {
  96. status = "okay";
  97. ethphy0: ethernet-phy@0 {
  98. reg = <8>;
  99. };
  100. ethphy1: ethernet-phy@1 {
  101. reg = <0>;
  102. };
  103. };
  104. &eth0 {
  105. status = "okay";
  106. ethernet0-port@0 {
  107. phy-handle = <&ethphy0>;
  108. };
  109. };
  110. &pinctrl {
  111. pinctrl-names = "default";
  112. pmx_button_function: pmx-button-function {
  113. marvell,pins = "mpp34";
  114. marvell,function = "gpio";
  115. };
  116. pmx_button_power_off: pmx-button-power-off {
  117. marvell,pins = "mpp15";
  118. marvell,function = "gpio";
  119. };
  120. pmx_button_power_on: pmx-button-power-on {
  121. marvell,pins = "mpp13";
  122. marvell,function = "gpio";
  123. };
  124. };
  125. &i2c0 {
  126. status = "okay";
  127. eeprom@50 {
  128. compatible = "atmel,24c04";
  129. pagesize = <16>;
  130. reg = <0x50>;
  131. };
  132. };