kirkwood-laplug.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2013 Maxime Hadjinlian <[email protected]>
  4. *
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. #include "kirkwood.dtsi"
  10. #include "kirkwood-6192.dtsi"
  11. / {
  12. model = "LaCie LaPlug";
  13. compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood";
  14. memory {
  15. device_type = "memory";
  16. reg = <0x00000000 0x8000000>; /* 128 MB */
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,115200n8 earlyprintk";
  20. stdout-path = &uart0;
  21. };
  22. ocp@f1000000 {
  23. serial@12000 {
  24. status = "okay";
  25. };
  26. i2c@11000 {
  27. status = "okay";
  28. eeprom@50 {
  29. compatible = "atmel,24c04";
  30. pagesize = <16>;
  31. reg = <0x50>;
  32. };
  33. };
  34. pinctrl: pin-controller@10000 {
  35. pmx_usb_power_enable: pmx-usb-power-enable {
  36. marvell,pins = "mpp14";
  37. marvell,function = "gpio";
  38. };
  39. };
  40. };
  41. gpio_keys {
  42. compatible = "gpio-keys";
  43. power {
  44. label = "Power push button";
  45. linux,code = <KEY_POWER>;
  46. gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
  47. };
  48. };
  49. gpio-leds {
  50. compatible = "gpio-leds";
  51. red-fail {
  52. label = "laplug_v2:red:power";
  53. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  54. };
  55. blue-power {
  56. label = "laplug_v2:blue:power";
  57. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  58. linux,default-trigger = "default-on";
  59. };
  60. };
  61. gpio_poweroff {
  62. compatible = "gpio-poweroff";
  63. gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
  64. };
  65. regulators {
  66. compatible = "simple-bus";
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. pinctrl-0 = <&pmx_usb_power_enable>;
  70. pinctrl-names = "default";
  71. usb_power_back1: regulator@1 {
  72. compatible = "regulator-fixed";
  73. reg = <1>;
  74. regulator-name = "USB Power Back 1";
  75. regulator-min-microvolt = <5000000>;
  76. regulator-max-microvolt = <5000000>;
  77. enable-active-high;
  78. regulator-always-on;
  79. regulator-boot-on;
  80. gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  81. };
  82. usb_power_back2: regulator@2 {
  83. compatible = "regulator-fixed";
  84. reg = <2>;
  85. regulator-name = "USB Power Back 2";
  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 28 GPIO_ACTIVE_HIGH>;
  92. };
  93. usb_power_front: regulator@3 {
  94. compatible = "regulator-fixed";
  95. reg = <3>;
  96. regulator-name = "USB Power Front";
  97. regulator-min-microvolt = <5000000>;
  98. regulator-max-microvolt = <5000000>;
  99. enable-active-high;
  100. regulator-always-on;
  101. regulator-boot-on;
  102. gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
  103. };
  104. };
  105. };
  106. &nand {
  107. /* Total size : 512MB */
  108. status = "okay";
  109. partition@0 {
  110. label = "u-boot";
  111. reg = <0x0 0x100000>; /* 1MB */
  112. read-only;
  113. };
  114. partition@100000 {
  115. label = "uImage";
  116. reg = <0x100000 0x1000000>; /* 16MB */
  117. };
  118. partition@1100000 {
  119. label = "rootfs";
  120. reg = <0x1100000 0x1EF00000>; /* 495MB */
  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. };
  136. &pciec {
  137. status = "okay";
  138. };
  139. &pcie0 {
  140. status = "okay";
  141. };