stih418-b2264.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2021 STMicroelectronics
  4. * Author: Alain Volmat <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include "stih418.dtsi"
  8. #include <dt-bindings/gpio/gpio.h>
  9. / {
  10. model = "STiH418 B2264";
  11. compatible = "st,stih418-b2264", "st,stih418";
  12. chosen {
  13. stdout-path = &sbc_serial0;
  14. };
  15. memory@40000000 {
  16. device_type = "memory";
  17. reg = <0x40000000 0xc0000000>;
  18. };
  19. cpus {
  20. cpu@0 {
  21. operating-points-v2 = <&cpu_opp_table>;
  22. /* u-boot puts hpen in SBC dmem at 0xb8 offset */
  23. cpu-release-addr = <0x94100b8>;
  24. };
  25. cpu@1 {
  26. operating-points-v2 = <&cpu_opp_table>;
  27. /* u-boot puts hpen in SBC dmem at 0xb8 offset */
  28. cpu-release-addr = <0x94100b8>;
  29. };
  30. cpu@2 {
  31. operating-points-v2 = <&cpu_opp_table>;
  32. /* u-boot puts hpen in SBC dmem at 0xb8 offset */
  33. cpu-release-addr = <0x94100b8>;
  34. };
  35. cpu@3 {
  36. operating-points-v2 = <&cpu_opp_table>;
  37. /* u-boot puts hpen in SBC dmem at 0xb8 offset */
  38. cpu-release-addr = <0x94100b8>;
  39. };
  40. };
  41. cpu_opp_table: opp_table {
  42. compatible = "operating-points-v2";
  43. opp-shared;
  44. opp00 {
  45. opp-hz = /bits/ 64 <300000000>;
  46. opp-microvolt = <784000>;
  47. };
  48. opp01 {
  49. opp-hz = /bits/ 64 <500000000>;
  50. opp-microvolt = <784000>;
  51. };
  52. opp02 {
  53. opp-hz = /bits/ 64 <800000000>;
  54. opp-microvolt = <784000>;
  55. };
  56. opp03 {
  57. opp-hz = /bits/ 64 <1200000000>;
  58. opp-microvolt = <784000>;
  59. };
  60. opp04 {
  61. opp-hz = /bits/ 64 <1500000000>;
  62. opp-microvolt = <784000>;
  63. };
  64. };
  65. aliases {
  66. ttyAS0 = &sbc_serial0;
  67. ethernet0 = &ethernet0;
  68. };
  69. soc {
  70. leds {
  71. compatible = "gpio-leds";
  72. green {
  73. gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
  74. default-state = "off";
  75. };
  76. };
  77. pin-controller-sbc@961f080 {
  78. gmac1 {
  79. rgmii1-0 {
  80. st,pins {
  81. rxd0 = <&pio1 4 ALT1 IN DE_IO 300 CLK_A>;
  82. rxd1 = <&pio1 5 ALT1 IN DE_IO 300 CLK_A>;
  83. rxd2 = <&pio1 6 ALT1 IN DE_IO 300 CLK_A>;
  84. rxd3 = <&pio1 7 ALT1 IN DE_IO 300 CLK_A>;
  85. rxdv = <&pio2 0 ALT1 IN DE_IO 300 CLK_A>;
  86. };
  87. };
  88. };
  89. };
  90. };
  91. };
  92. &ehci0 {
  93. status = "okay";
  94. };
  95. &ethernet0 {
  96. phy-mode = "rgmii";
  97. pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>;
  98. st,tx-retime-src = "clkgen";
  99. snps,reset-gpio = <&pio0 7 0>;
  100. snps,reset-active-low;
  101. snps,reset-delays-us = <0 10000 1000000>;
  102. status = "okay";
  103. };
  104. &miphy28lp_phy {
  105. phy_port0: port@9b22000 {
  106. st,sata-gen = <2>; /* SATA GEN3 */
  107. st,osc-rdy;
  108. };
  109. };
  110. &mmc0 {
  111. status = "okay";
  112. };
  113. &ohci1 {
  114. status = "okay";
  115. };
  116. &pwm1 {
  117. status = "okay";
  118. };
  119. &sata0 {
  120. status = "okay";
  121. };
  122. &sbc_serial0 {
  123. status = "okay";
  124. };
  125. &spifsm {
  126. status = "okay";
  127. };
  128. &st_dwc3 {
  129. status = "okay";
  130. };