servalt_pcb116.dts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2018 Microsemi Corporation
  4. */
  5. /dts-v1/;
  6. #include "mscc,servalt.dtsi"
  7. / {
  8. model = "ServalT PCB116 Reference Board";
  9. compatible = "mscc,servalt-pcb116", "mscc,servalt";
  10. aliases {
  11. spi0 = &spi0;
  12. serial0 = &uart0;
  13. };
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. gpio-leds {
  18. compatible = "gpio-leds";
  19. status_green {
  20. label = "pcb116:green:status";
  21. gpios = <&sgpio 70 0>; /* p6.2 */
  22. default-state = "on";
  23. };
  24. status_red {
  25. label = "pcb116:red:status";
  26. gpios = <&sgpio 102 0>; /* p6.3 */
  27. default-state = "off";
  28. };
  29. };
  30. };
  31. &uart0 {
  32. status = "okay";
  33. };
  34. &spi0 {
  35. status = "okay";
  36. spi-flash@0 {
  37. compatible = "jedec,spi-nor";
  38. spi-max-frequency = <18000000>; /* input clock */
  39. reg = <0>; /* CS0 */
  40. spi-cs-high;
  41. };
  42. };
  43. &sgpio {
  44. status = "okay";
  45. sgpio-ports = <0x0000fe7f>;
  46. };
  47. &mdio0 {
  48. status = "okay";
  49. phy0: ethernet-phy@0 {
  50. reg = <0>;
  51. };
  52. phy1: ethernet-phy@1 {
  53. reg = <1>;
  54. };
  55. };
  56. &switch {
  57. ethernet-ports {
  58. port0: port@0 {
  59. reg = <0>;
  60. phy-handle = <&phy0>;
  61. };
  62. port1: port@1 {
  63. reg = <1>;
  64. phy-handle = <&phy1>;
  65. };
  66. };
  67. };