armada-3720-uDPU.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Device tree for the uDPU board.
  4. * Based on Marvell Armada 3720 development board (DB-88F3720-DDR3)
  5. * Copyright (C) 2016 Marvell
  6. * Copyright (C) 2019 Methode Electronics
  7. * Copyright (C) 2019 Telus
  8. *
  9. * Vladimir Vid <[email protected]>
  10. */
  11. /dts-v1/;
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include "armada-372x.dtsi"
  14. / {
  15. chosen {
  16. stdout-path = "serial0:115200n8";
  17. };
  18. memory@0 {
  19. device_type = "memory";
  20. reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. led-power1 {
  25. label = "udpu:green:power";
  26. gpios = <&gpionb 11 GPIO_ACTIVE_LOW>;
  27. };
  28. led-power2 {
  29. label = "udpu:red:power";
  30. gpios = <&gpionb 12 GPIO_ACTIVE_LOW>;
  31. };
  32. led-network1 {
  33. label = "udpu:green:network";
  34. gpios = <&gpionb 13 GPIO_ACTIVE_LOW>;
  35. };
  36. led-network2 {
  37. label = "udpu:red:network";
  38. gpios = <&gpionb 14 GPIO_ACTIVE_LOW>;
  39. };
  40. led-alarm1 {
  41. label = "udpu:green:alarm";
  42. gpios = <&gpionb 15 GPIO_ACTIVE_LOW>;
  43. };
  44. led-alarm2 {
  45. label = "udpu:red:alarm";
  46. gpios = <&gpionb 16 GPIO_ACTIVE_LOW>;
  47. };
  48. };
  49. sfp_eth1: sfp-eth1 {
  50. compatible = "sff,sfp";
  51. i2c-bus = <&i2c1>;
  52. los-gpio = <&gpiosb 7 GPIO_ACTIVE_HIGH>;
  53. mod-def0-gpio = <&gpiosb 8 GPIO_ACTIVE_LOW>;
  54. tx-disable-gpio = <&gpiosb 9 GPIO_ACTIVE_HIGH>;
  55. tx-fault-gpio = <&gpiosb 10 GPIO_ACTIVE_HIGH>;
  56. maximum-power-milliwatt = <3000>;
  57. };
  58. };
  59. &sdhci0 {
  60. status = "okay";
  61. bus-width = <8>;
  62. mmc-ddr-1_8v;
  63. mmc-hs400-1_8v;
  64. marvell,pad-type = "fixed-1-8v";
  65. non-removable;
  66. no-sd;
  67. no-sdio;
  68. };
  69. &spi0 {
  70. status = "okay";
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&spi_quad_pins>;
  73. flash@0 {
  74. compatible = "jedec,spi-nor";
  75. reg = <0>;
  76. spi-max-frequency = <54000000>;
  77. partitions {
  78. compatible = "fixed-partitions";
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. partition@0 {
  82. label = "firmware";
  83. reg = <0x0 0x180000>;
  84. };
  85. partition@180000 {
  86. label = "u-boot-env";
  87. reg = <0x180000 0x10000>;
  88. };
  89. };
  90. };
  91. };
  92. &pinctrl_nb {
  93. i2c2_recovery_pins: i2c2-recovery-pins {
  94. groups = "i2c2";
  95. function = "gpio";
  96. };
  97. };
  98. &i2c1 {
  99. status = "okay";
  100. pinctrl-names = "default", "recovery";
  101. pinctrl-0 = <&i2c2_pins>;
  102. pinctrl-1 = <&i2c2_recovery_pins>;
  103. /delete-property/mrvl,i2c-fast-mode;
  104. scl-gpios = <&gpionb 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  105. sda-gpios = <&gpionb 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  106. temp-sensor@48 {
  107. compatible = "ti,tmp75c";
  108. reg = <0x48>;
  109. };
  110. temp-sensor@49 {
  111. compatible = "ti,tmp75c";
  112. reg = <0x49>;
  113. };
  114. };
  115. &eth0 {
  116. status = "okay";
  117. managed = "in-band-status";
  118. phys = <&comphy1 0>;
  119. };
  120. &eth1 {
  121. phy-mode = "sgmii";
  122. status = "okay";
  123. managed = "in-band-status";
  124. phys = <&comphy0 1>;
  125. sfp = <&sfp_eth1>;
  126. };
  127. &usb3 {
  128. status = "okay";
  129. phys = <&usb2_utmi_otg_phy>;
  130. phy-names = "usb2-utmi-otg-phy";
  131. };
  132. &uart0 {
  133. status = "okay";
  134. };