aspeed-bmc-arm-stardragon4800-rep2.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /dts-v1/;
  3. #include "aspeed-g5.dtsi"
  4. #include <dt-bindings/gpio/aspeed-gpio.h>
  5. / {
  6. model = "HXT StarDragon 4800 REP2 AST2520";
  7. compatible = "hxt,stardragon4800-rep2-bmc", "aspeed,ast2500";
  8. chosen {
  9. stdout-path = &uart5;
  10. bootargs = "console=ttyS4,115200 earlycon";
  11. };
  12. memory@80000000 {
  13. reg = <0x80000000 0x40000000>;
  14. };
  15. iio-hwmon {
  16. compatible = "iio-hwmon";
  17. io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
  18. <&adc 4>, <&adc 5>, <&adc 6>, <&adc 8>;
  19. };
  20. iio-hwmon-battery {
  21. compatible = "iio-hwmon";
  22. io-channels = <&adc 7>;
  23. };
  24. leds {
  25. compatible = "gpio-leds";
  26. system_fault1 {
  27. label = "System_fault1";
  28. gpios = <&gpio ASPEED_GPIO(I, 3) GPIO_ACTIVE_LOW>;
  29. };
  30. system_fault2 {
  31. label = "System_fault2";
  32. gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. };
  36. &fmc {
  37. status = "okay";
  38. flash@0 {
  39. status = "okay";
  40. m25p,fast-read;
  41. label = "bmc";
  42. #include "openbmc-flash-layout.dtsi"
  43. };
  44. };
  45. &spi1 {
  46. status = "okay";
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&pinctrl_spi1_default>;
  49. flash@0 {
  50. status = "okay";
  51. };
  52. };
  53. &spi2 {
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&pinctrl_spi2ck_default
  56. &pinctrl_spi2miso_default
  57. &pinctrl_spi2mosi_default
  58. &pinctrl_spi2cs0_default>;
  59. };
  60. &uart3 {
  61. status = "okay";
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>;
  64. current-speed = <115200>;
  65. };
  66. &uart5 {
  67. status = "okay";
  68. };
  69. &mac0 {
  70. status = "okay";
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>;
  73. };
  74. &mac1 {
  75. status = "okay";
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pinctrl_rmii2_default>;
  78. clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>,
  79. <&syscon ASPEED_CLK_MAC2RCLK>;
  80. clock-names = "MACCLK", "RCLK";
  81. use-ncsi;
  82. };
  83. &i2c0 {
  84. status = "okay";
  85. };
  86. &i2c1 {
  87. status = "okay";
  88. tmp421@1e {
  89. compatible = "ti,tmp421";
  90. reg = <0x1e>;
  91. };
  92. tmp421@2a {
  93. compatible = "ti,tmp421";
  94. reg = <0x2a>;
  95. };
  96. tmp421@1c {
  97. compatible = "ti,tmp421";
  98. reg = <0x1c>;
  99. };
  100. };
  101. &i2c2 {
  102. status = "okay";
  103. };
  104. &i2c3 {
  105. status = "okay";
  106. };
  107. &i2c4 {
  108. status = "okay";
  109. };
  110. &i2c5 {
  111. status = "okay";
  112. };
  113. &i2c6 {
  114. status = "okay";
  115. tmp421@1f {
  116. compatible = "ti,tmp421";
  117. reg = <0x1f>;
  118. };
  119. nvt210@4c {
  120. compatible = "nvt210";
  121. reg = <0x4c>;
  122. };
  123. eeprom@50 {
  124. compatible = "atmel,24c128";
  125. reg = <0x50>;
  126. pagesize = <128>;
  127. };
  128. };
  129. &i2c7 {
  130. status = "okay";
  131. };
  132. &i2c8 {
  133. status = "okay";
  134. pca9641@70 {
  135. compatible = "nxp,pca9641";
  136. reg = <0x70>;
  137. i2c-arb {
  138. #address-cells = <1>;
  139. #size-cells = <0>;
  140. eeprom@50 {
  141. compatible = "atmel,24c02";
  142. reg = <0x50>;
  143. };
  144. dps650ab@58 {
  145. compatible = "dps650ab";
  146. reg = <0x58>;
  147. };
  148. };
  149. };
  150. dps650ab@58 {
  151. compatible = "delta,dps650ab";
  152. reg = <0x58>;
  153. };
  154. dps650ab@59 {
  155. compatible = "delta,dps650ab";
  156. reg = <0x59>;
  157. };
  158. };
  159. &i2c9 {
  160. status = "okay";
  161. };
  162. &vuart {
  163. status = "okay";
  164. };
  165. &gfx {
  166. status = "okay";
  167. };
  168. &pinctrl {
  169. aspeed,external-nodes = <&gfx &lhc>;
  170. };
  171. &gpio {
  172. pin_gpio_c7 {
  173. gpio-hog;
  174. gpios = <ASPEED_GPIO(C, 7) GPIO_ACTIVE_HIGH>;
  175. output-low;
  176. line-name = "BIOS_SPI_MUX_S";
  177. };
  178. pin_gpio_d1 {
  179. gpio-hog;
  180. gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
  181. output-high;
  182. line-name = "PHY2_RESET_N";
  183. };
  184. };