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. ocp@f1000000 {
  25. serial@12000 {
  26. status = "okay";
  27. };
  28. i2c@11000 {
  29. status = "okay";
  30. eeprom@50 {
  31. compatible = "atmel,24c04";
  32. pagesize = <16>;
  33. reg = <0x50>;
  34. };
  35. };
  36. pinctrl: pin-controller@10000 {
  37. pmx_usb_power_enable: pmx-usb-power-enable {
  38. marvell,pins = "mpp14";
  39. marvell,function = "gpio";
  40. };
  41. };
  42. };
  43. gpio_keys {
  44. compatible = "gpio-keys";
  45. power {
  46. label = "Power push button";
  47. linux,code = <KEY_POWER>;
  48. gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
  49. };
  50. };
  51. gpio-leds {
  52. compatible = "gpio-leds";
  53. red-fail {
  54. label = "laplug_v2:red:power";
  55. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  56. };
  57. blue-power {
  58. label = "laplug_v2:blue:power";
  59. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  60. linux,default-trigger = "default-on";
  61. };
  62. };
  63. gpio_poweroff {
  64. compatible = "gpio-poweroff";
  65. gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
  66. };
  67. regulators {
  68. compatible = "simple-bus";
  69. #address-cells = <1>;
  70. #size-cells = <0>;
  71. pinctrl-0 = <&pmx_usb_power_enable>;
  72. pinctrl-names = "default";
  73. usb_power_back1: regulator@1 {
  74. compatible = "regulator-fixed";
  75. reg = <1>;
  76. regulator-name = "USB Power Back 1";
  77. regulator-min-microvolt = <5000000>;
  78. regulator-max-microvolt = <5000000>;
  79. enable-active-high;
  80. regulator-always-on;
  81. regulator-boot-on;
  82. gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  83. };
  84. usb_power_back2: regulator@2 {
  85. compatible = "regulator-fixed";
  86. reg = <2>;
  87. regulator-name = "USB Power Back 2";
  88. regulator-min-microvolt = <5000000>;
  89. regulator-max-microvolt = <5000000>;
  90. enable-active-high;
  91. regulator-always-on;
  92. regulator-boot-on;
  93. gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  94. };
  95. usb_power_front: regulator@3 {
  96. compatible = "regulator-fixed";
  97. reg = <3>;
  98. regulator-name = "USB Power Front";
  99. regulator-min-microvolt = <5000000>;
  100. regulator-max-microvolt = <5000000>;
  101. enable-active-high;
  102. regulator-always-on;
  103. regulator-boot-on;
  104. gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  105. };
  106. };
  107. };
  108. &nand {
  109. /* Total size : 512MB */
  110. status = "okay";
  111. partition@0 {
  112. label = "u-boot";
  113. reg = <0x0 0x100000>; /* 1MB */
  114. read-only;
  115. };
  116. partition@100000 {
  117. label = "uImage";
  118. reg = <0x100000 0x1000000>; /* 16MB */
  119. };
  120. partition@1100000 {
  121. label = "rootfs";
  122. reg = <0x1100000 0x1EF00000>; /* 495MB */
  123. };
  124. };
  125. &mdio {
  126. status = "okay";
  127. ethphy0: ethernet-phy@0 {
  128. device_type = "ethernet-phy";
  129. reg = <0>;
  130. };
  131. };
  132. &eth0 {
  133. status = "okay";
  134. ethernet0-port@0 {
  135. phy-handle = <&ethphy0>;
  136. };
  137. };
  138. &pciec {
  139. status = "okay";
  140. };
  141. &pcie0 {
  142. status = "okay";
  143. };