kirkwood-laplug.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. * Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License version 2. This program is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. /dts-v1/;
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/input/input.h>
  11. #include "kirkwood.dtsi"
  12. #include "kirkwood-6192.dtsi"
  13. / {
  14. model = "LaCie LaPlug";
  15. compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood";
  16. memory {
  17. device_type = "memory";
  18. reg = <0x00000000 0x8000000>; /* 128 MB */
  19. };
  20. chosen {
  21. bootargs = "console=ttyS0,115200n8 earlyprintk";
  22. stdout-path = &uart0;
  23. };
  24. mbus {
  25. pcie-controller {
  26. status = "okay";
  27. pcie@1,0 {
  28. status = "okay";
  29. };
  30. };
  31. };
  32. ocp@f1000000 {
  33. serial@12000 {
  34. status = "okay";
  35. };
  36. i2c@11000 {
  37. status = "okay";
  38. eeprom@50 {
  39. compatible = "atmel,24c04";
  40. pagesize = <16>;
  41. reg = <0x50>;
  42. };
  43. };
  44. pinctrl: pin-controller@10000 {
  45. pmx_usb_power_enable: pmx-usb-power-enable {
  46. marvell,pins = "mpp14";
  47. marvell,function = "gpio";
  48. };
  49. };
  50. };
  51. gpio_keys {
  52. compatible = "gpio-keys";
  53. button@1{
  54. label = "Power push button";
  55. linux,code = <KEY_POWER>;
  56. gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
  57. };
  58. };
  59. gpio-leds {
  60. compatible = "gpio-leds";
  61. red-fail {
  62. label = "laplug_v2:red:power";
  63. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  64. };
  65. blue-power {
  66. label = "laplug_v2:blue:power";
  67. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  68. linux,default-trigger = "default-on";
  69. };
  70. };
  71. gpio_poweroff {
  72. compatible = "gpio-poweroff";
  73. gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
  74. };
  75. regulators {
  76. compatible = "simple-bus";
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. pinctrl-0 = <&pmx_usb_power_enable>;
  80. pinctrl-names = "default";
  81. usb_power_back1: regulator@1 {
  82. compatible = "regulator-fixed";
  83. reg = <1>;
  84. regulator-name = "USB Power Back 1";
  85. regulator-min-microvolt = <5000000>;
  86. regulator-max-microvolt = <5000000>;
  87. enable-active-high;
  88. regulator-always-on;
  89. regulator-boot-on;
  90. gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  91. };
  92. usb_power_back2: regulator@2 {
  93. compatible = "regulator-fixed";
  94. reg = <2>;
  95. regulator-name = "USB Power Back 2";
  96. regulator-min-microvolt = <5000000>;
  97. regulator-max-microvolt = <5000000>;
  98. enable-active-high;
  99. regulator-always-on;
  100. regulator-boot-on;
  101. gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  102. };
  103. usb_power_front: regulator@3 {
  104. compatible = "regulator-fixed";
  105. reg = <3>;
  106. regulator-name = "USB Power Front";
  107. regulator-min-microvolt = <5000000>;
  108. regulator-max-microvolt = <5000000>;
  109. enable-active-high;
  110. regulator-always-on;
  111. regulator-boot-on;
  112. gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  113. };
  114. };
  115. };
  116. &nand {
  117. /* Total size : 512MB */
  118. status = "okay";
  119. partition@0 {
  120. label = "u-boot";
  121. reg = <0x0 0x100000>; /* 1MB */
  122. read-only;
  123. };
  124. partition@100000 {
  125. label = "uImage";
  126. reg = <0x100000 0x1000000>; /* 16MB */
  127. };
  128. partition@1100000 {
  129. label = "rootfs";
  130. reg = <0x1100000 0x1EF00000>; /* 495MB */
  131. };
  132. };
  133. &mdio {
  134. status = "okay";
  135. ethphy0: ethernet-phy@0 {
  136. device_type = "ethernet-phy";
  137. reg = <0>;
  138. };
  139. };
  140. &eth0 {
  141. status = "okay";
  142. ethernet0-port@0 {
  143. phy-handle = <&ethphy0>;
  144. };
  145. };