kirkwood-pogo_e02.dts 2.3 KB

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