ocelot_pcb120.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /* Copyright (c) 2017 Microsemi Corporation */
  3. /dts-v1/;
  4. #include <dt-bindings/interrupt-controller/irq.h>
  5. #include <dt-bindings/phy/phy-ocelot-serdes.h>
  6. #include "ocelot.dtsi"
  7. / {
  8. compatible = "mscc,ocelot-pcb120", "mscc,ocelot";
  9. chosen {
  10. stdout-path = "serial0:115200n8";
  11. };
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0x0 0x0e000000>;
  15. };
  16. };
  17. &gpio {
  18. phy_int_pins: phy_int_pins {
  19. pins = "GPIO_4";
  20. function = "gpio";
  21. };
  22. };
  23. &mdio0 {
  24. status = "okay";
  25. };
  26. &mdio1 {
  27. status = "okay";
  28. pinctrl-names = "default";
  29. pinctrl-0 = <&miim1>, <&phy_int_pins>;
  30. phy7: ethernet-phy@0 {
  31. reg = <0>;
  32. interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
  33. interrupt-parent = <&gpio>;
  34. };
  35. phy6: ethernet-phy@1 {
  36. reg = <1>;
  37. interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
  38. interrupt-parent = <&gpio>;
  39. };
  40. phy5: ethernet-phy@2 {
  41. reg = <2>;
  42. interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
  43. interrupt-parent = <&gpio>;
  44. };
  45. phy4: ethernet-phy@3 {
  46. reg = <3>;
  47. interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
  48. interrupt-parent = <&gpio>;
  49. };
  50. };
  51. &port0 {
  52. phy-handle = <&phy0>;
  53. };
  54. &port1 {
  55. phy-handle = <&phy1>;
  56. };
  57. &port2 {
  58. phy-handle = <&phy2>;
  59. };
  60. &port3 {
  61. phy-handle = <&phy3>;
  62. };
  63. &port4 {
  64. phy-handle = <&phy7>;
  65. phy-mode = "sgmii";
  66. phys = <&serdes 4 SERDES1G(2)>;
  67. };
  68. &port5 {
  69. phy-handle = <&phy4>;
  70. phy-mode = "sgmii";
  71. phys = <&serdes 5 SERDES1G(5)>;
  72. };
  73. &port6 {
  74. phy-handle = <&phy6>;
  75. phy-mode = "sgmii";
  76. phys = <&serdes 6 SERDES1G(3)>;
  77. };
  78. &port9 {
  79. phy-handle = <&phy5>;
  80. phy-mode = "sgmii";
  81. phys = <&serdes 9 SERDES1G(4)>;
  82. };
  83. &uart0 {
  84. status = "okay";
  85. };
  86. &uart2 {
  87. status = "okay";
  88. };