sg2042-milkv-pioneer.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // SPDX-License-Identifier: GPL-2.0 OR MIT
  2. /*
  3. * Copyright (C) 2022 Sophgo Technology Inc. All rights reserved.
  4. */
  5. #include "sg2042.dtsi"
  6. / {
  7. model = "Milk-V Pioneer";
  8. compatible = "milkv,pioneer", "sophgo,sg2042";
  9. chosen {
  10. stdout-path = "serial0";
  11. };
  12. };
  13. &cgi_main {
  14. clock-frequency = <25000000>;
  15. };
  16. &cgi_dpll0 {
  17. clock-frequency = <25000000>;
  18. };
  19. &cgi_dpll1 {
  20. clock-frequency = <25000000>;
  21. };
  22. &emmc {
  23. bus-width = <4>;
  24. no-sdio;
  25. no-sd;
  26. non-removable;
  27. wp-inverted;
  28. status = "okay";
  29. };
  30. &i2c1 {
  31. status = "okay";
  32. mcu: syscon@17 {
  33. compatible = "sophgo,sg2042-hwmon-mcu";
  34. reg = <0x17>;
  35. #thermal-sensor-cells = <1>;
  36. };
  37. };
  38. &sd {
  39. bus-width = <4>;
  40. no-sdio;
  41. no-mmc;
  42. wp-inverted;
  43. status = "okay";
  44. };
  45. &uart0 {
  46. status = "okay";
  47. };
  48. / {
  49. thermal-zones {
  50. soc-thermal {
  51. polling-delay-passive = <1000>;
  52. polling-delay = <1000>;
  53. thermal-sensors = <&mcu 0>;
  54. trips {
  55. soc_active1: soc-active1 {
  56. temperature = <30000>;
  57. hysteresis = <8000>;
  58. type = "active";
  59. };
  60. soc_active2: soc-active2 {
  61. temperature = <58000>;
  62. hysteresis = <12000>;
  63. type = "active";
  64. };
  65. soc_active3: soc-active3 {
  66. temperature = <70000>;
  67. hysteresis = <10000>;
  68. type = "active";
  69. };
  70. soc_hot: soc-hot {
  71. temperature = <80000>;
  72. hysteresis = <5000>;
  73. type = "hot";
  74. };
  75. };
  76. };
  77. board-thermal {
  78. polling-delay-passive = <1000>;
  79. polling-delay = <1000>;
  80. thermal-sensors = <&mcu 1>;
  81. trips {
  82. board_active: board-active {
  83. temperature = <75000>;
  84. hysteresis = <8000>;
  85. type = "active";
  86. };
  87. };
  88. };
  89. };
  90. };