armada-385-fortinet-fg-30e.dts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "armada-385-fortinet-fg-x0e.dtsi"
  3. / {
  4. model = "Fortinet FortiGate 30E";
  5. compatible = "fortinet,fg-30e", "marvell,armada385", "marvell,armada380";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x00000000 0x40000000>; /* 1GB */
  9. };
  10. };
  11. &gpio_leds {
  12. led-14 {
  13. gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
  14. color = <LED_COLOR_ID_AMBER>;
  15. linux,default-trigger = "mv88e6xxx-1:00:100Mbps";
  16. };
  17. led-15 {
  18. gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
  19. color = <LED_COLOR_ID_GREEN>;
  20. linux,default-trigger = "mv88e6xxx-1:00:1Gbps";
  21. };
  22. };
  23. &pinctrl {
  24. pmx_switch_pins: switch-pins {
  25. marvell,pins = "mpp19";
  26. marvell,function = "gpio";
  27. };
  28. };
  29. &mdio {
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&mdio_pins>, <&pmx_switch_pins>;
  32. /* Marvell 88E6176 */
  33. switch@2 {
  34. compatible = "marvell,mv88e6085";
  35. reg = <0x2>;
  36. reset-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
  37. ports {
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. port@0 {
  41. reg = <0>;
  42. label = "wan";
  43. nvmem-cells = <&macaddr_bdinfo_d880 1>;
  44. nvmem-cell-names = "mac-address";
  45. };
  46. port@1 {
  47. reg = <1>;
  48. label = "lan4";
  49. nvmem-cells = <&macaddr_bdinfo_d880 5>;
  50. nvmem-cell-names = "mac-address";
  51. };
  52. port@2 {
  53. reg = <2>;
  54. label = "lan3";
  55. nvmem-cells = <&macaddr_bdinfo_d880 4>;
  56. nvmem-cell-names = "mac-address";
  57. };
  58. port@3 {
  59. reg = <3>;
  60. label = "lan2";
  61. nvmem-cells = <&macaddr_bdinfo_d880 3>;
  62. nvmem-cell-names = "mac-address";
  63. };
  64. port@4 {
  65. reg = <4>;
  66. label = "lan1";
  67. nvmem-cells = <&macaddr_bdinfo_d880 2>;
  68. nvmem-cell-names = "mac-address";
  69. };
  70. port@6 {
  71. reg = <6>;
  72. ethernet = <&eth0>;
  73. phy-connection-type = "rgmii-id";
  74. fixed-link {
  75. speed = <1000>;
  76. full-duplex;
  77. };
  78. };
  79. };
  80. };
  81. };