lan966x-pcb8291.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * lan966x_pcb8291.dts - Device Tree file for PCB8291
  4. */
  5. /dts-v1/;
  6. #include "lan966x.dtsi"
  7. #include "dt-bindings/phy/phy-lan966x-serdes.h"
  8. / {
  9. model = "Microchip EVB - LAN9662";
  10. compatible = "microchip,lan9662-pcb8291", "microchip,lan9662", "microchip,lan966";
  11. chosen {
  12. stdout-path = "serial0:115200n8";
  13. };
  14. aliases {
  15. serial0 = &usart3;
  16. };
  17. gpio-restart {
  18. compatible = "gpio-restart";
  19. gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
  20. priority = <200>;
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. led-s0-blue {
  25. label = "s0:blue";
  26. gpios = <&sgpio_out 2 0 GPIO_ACTIVE_LOW>;
  27. default-state = "off";
  28. };
  29. led-s0-green {
  30. label = "s0:green";
  31. gpios = <&sgpio_out 2 1 GPIO_ACTIVE_LOW>;
  32. default-state = "off";
  33. };
  34. led-s1-blue {
  35. label = "s1:blue";
  36. gpios = <&sgpio_out 3 0 GPIO_ACTIVE_LOW>;
  37. default-state = "off";
  38. };
  39. led-s1-green {
  40. label = "s1:green";
  41. gpios = <&sgpio_out 3 1 GPIO_ACTIVE_LOW>;
  42. default-state = "off";
  43. };
  44. };
  45. };
  46. &aes {
  47. status = "disabled"; /* Reserved by secure OS */
  48. };
  49. &gpio {
  50. fc3_b_pins: fc3-b-pins {
  51. /* RX, TX */
  52. pins = "GPIO_52", "GPIO_53";
  53. function = "fc3_b";
  54. };
  55. can0_b_pins: can0-b-pins {
  56. /* RX, TX */
  57. pins = "GPIO_35", "GPIO_36";
  58. function = "can0_b";
  59. };
  60. sgpio_a_pins: sgpio-a-pins {
  61. /* SCK, D0, D1, LD */
  62. pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35";
  63. function = "sgpio_a";
  64. };
  65. };
  66. &can0 {
  67. pinctrl-0 = <&can0_b_pins>;
  68. pinctrl-names = "default";
  69. status = "disabled"; /* Conflict with switch */
  70. };
  71. &flx3 {
  72. atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
  73. status = "okay";
  74. usart3: serial@200 {
  75. pinctrl-0 = <&fc3_b_pins>;
  76. pinctrl-names = "default";
  77. status = "okay";
  78. };
  79. };
  80. &mdio1 {
  81. status = "okay";
  82. };
  83. &phy0 {
  84. status = "okay";
  85. };
  86. &phy1 {
  87. status = "okay";
  88. };
  89. &port0 {
  90. phy-handle = <&phy0>;
  91. phy-mode = "gmii";
  92. phys = <&serdes 0 CU(0)>;
  93. status = "okay";
  94. };
  95. &port1 {
  96. phy-handle = <&phy1>;
  97. phy-mode = "gmii";
  98. phys = <&serdes 1 CU(1)>;
  99. status = "okay";
  100. };
  101. &serdes {
  102. status = "okay";
  103. };
  104. &sgpio {
  105. pinctrl-0 = <&sgpio_a_pins>;
  106. pinctrl-names = "default";
  107. microchip,sgpio-port-ranges = <0 3>, <8 11>;
  108. status = "okay";
  109. gpio@0 {
  110. ngpios = <64>;
  111. };
  112. gpio@1 {
  113. ngpios = <64>;
  114. };
  115. };
  116. &switch {
  117. status = "okay";
  118. };
  119. &watchdog {
  120. status = "okay";
  121. };