kirkwood-pogo_e02.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. * kirkwood-pogo_e02.dts - Device tree file for Pogoplug E02
  3. *
  4. * Copyright (C) 2015 Christoph Junghans <ottxor@gentoo.org>
  5. *
  6. * based on information of dts files from
  7. * Arch Linux ARM by Oleg Rakhmanov <moonman.ca@gmail.com>
  8. * OpenWrt by Felix Kaechele <heffer@fedoraproject.org>
  9. *
  10. * This file is licensed under the terms of the GNU General Public
  11. * License version 2. This program is licensed "as is" without any
  12. * warranty of any kind, whether express or implied.
  13. */
  14. /dts-v1/;
  15. #include "kirkwood.dtsi"
  16. #include "kirkwood-6281.dtsi"
  17. / {
  18. model = "Cloud Engines Pogoplug E02";
  19. compatible = "cloudengines,pogoe02", "marvell,kirkwood-88f6281",
  20. "marvell,kirkwood";
  21. memory {
  22. device_type = "memory";
  23. reg = <0x00000000 0x10000000>;
  24. };
  25. chosen {
  26. bootargs = "console=ttyS0,115200n8";
  27. stdout-path = &uart0;
  28. };
  29. gpio-leds {
  30. compatible = "gpio-leds";
  31. health {
  32. label = "pogo_e02:green:health";
  33. gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
  34. default-state = "keep";
  35. };
  36. fault {
  37. label = "pogo_e02:orange:fault";
  38. gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
  39. };
  40. };
  41. regulators {
  42. compatible = "simple-bus";
  43. #address-cells = <1>;
  44. #size-cells = <0>;
  45. pinctrl-0 = <&pmx_usb_power_enable>;
  46. pinctrl-names = "default";
  47. usb_power: regulator@1 {
  48. compatible = "regulator-fixed";
  49. reg = <1>;
  50. regulator-name = "USB Power";
  51. regulator-min-microvolt = <5000000>;
  52. regulator-max-microvolt = <5000000>;
  53. enable-active-high;
  54. regulator-always-on;
  55. regulator-boot-on;
  56. gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  57. };
  58. };
  59. };
  60. &pinctrl {
  61. pinctrl-0 = < &pmx_usb_power_enable &pmx_led_orange
  62. &pmx_led_green >;
  63. pinctrl-names = "default";
  64. pmx_usb_power_enable: pmx-usb-power-enable {
  65. marvell,pins = "mpp29";
  66. marvell,function = "gpio";
  67. };
  68. pmx_led_green: pmx-led-green {
  69. marvell,pins = "mpp48";
  70. marvell,function = "gpio";
  71. };
  72. pmx_led_orange: pmx-led-orange {
  73. marvell,pins = "mpp49";
  74. marvell,function = "gpio";
  75. };
  76. };
  77. &uart0 {
  78. status = "okay";
  79. };
  80. &nand {
  81. chip-delay = <40>;
  82. status = "okay";
  83. partition@0 {
  84. label = "u-boot";
  85. reg = <0x0000000 0x100000>;
  86. read-only;
  87. };
  88. partition@100000 {
  89. label = "uImage";
  90. reg = <0x0100000 0x400000>;
  91. };
  92. partition@500000 {
  93. label = "pogoplug";
  94. reg = <0x0500000 0x2000000>;
  95. };
  96. partition@2500000 {
  97. label = "root";
  98. reg = <0x02500000 0x5b00000>;
  99. };
  100. };
  101. &mdio {
  102. status = "okay";
  103. ethphy0: ethernet-phy@0 {
  104. reg = <0>;
  105. };
  106. };
  107. &eth0 {
  108. status = "okay";
  109. ethernet0-port@0 {
  110. phy-handle = <&ethphy0>;
  111. };
  112. };