aspeed-bmc-inventec-transformers.dts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. // Copyright 2021 Inventec Corp.
  3. /dts-v1/;
  4. #include "aspeed-g6.dtsi"
  5. #include "aspeed-g6-pinctrl.dtsi"
  6. #include <dt-bindings/i2c/i2c.h>
  7. #include <dt-bindings/gpio/aspeed-gpio.h>
  8. / {
  9. model = "TRANSFORMERS BMC";
  10. compatible = "inventec,transformer-bmc", "aspeed,ast2600";
  11. aliases {
  12. serial4 = &uart5;
  13. };
  14. chosen {
  15. stdout-path = &uart5;
  16. bootargs = "console=ttyS4,115200n8";
  17. };
  18. memory@80000000 {
  19. device_type = "memory";
  20. reg = <0x80000000 0x80000000>;
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. // UID led
  25. uid {
  26. label = "UID_LED";
  27. gpios = <&gpio0 ASPEED_GPIO(X, 0) GPIO_ACTIVE_LOW>;
  28. };
  29. // Heart beat led
  30. heartbeat {
  31. label = "HB_LED";
  32. gpios = <&gpio0 ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. };
  36. &mdio0 {
  37. status = "okay";
  38. ethphy0: ethernet-phy@0 {
  39. compatible = "ethernet-phy-ieee802.3-c22";
  40. reg = <1>;
  41. };
  42. };
  43. &mac3 {
  44. status = "okay";
  45. phy-mode = "rgmii";
  46. phy-handle = <&ethphy0>;
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&pinctrl_rgmii4_default>;
  49. };
  50. &fmc {
  51. status = "okay";
  52. flash@0 {
  53. status = "okay";
  54. m25p,fast-read;
  55. label = "bmc";
  56. spi-max-frequency = <33000000>;
  57. spi-tx-bus-width = <2>;
  58. spi-rx-bus-width = <2>;
  59. #include "openbmc-flash-layout.dtsi"
  60. };
  61. flash@1 {
  62. status = "okay";
  63. m25p,fast-read;
  64. label = "bmc2";
  65. spi-max-frequency = <33000000>;
  66. spi-tx-bus-width = <2>;
  67. spi-rx-bus-width = <2>;
  68. };
  69. };
  70. &spi1 {
  71. status = "okay";
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&pinctrl_spi1_default>;
  74. flash@0 {
  75. status = "okay";
  76. m25p,fast-read;
  77. label = "bios";
  78. spi-max-frequency = <33000000>;
  79. spi-tx-bus-width = <1>;
  80. spi-rx-bus-width = <1>;
  81. };
  82. };
  83. &wdt1 {
  84. status = "okay";
  85. };
  86. &uart1 {
  87. status = "okay";
  88. };
  89. &uart5 {
  90. status = "okay";
  91. };
  92. &i2c0 {
  93. status = "okay";
  94. //Set bmc' slave address;
  95. bmc_slave@10 {
  96. compatible = "ipmb-dev";
  97. reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
  98. i2c-protocol;
  99. };
  100. };
  101. &i2c2 {
  102. status = "okay";
  103. };
  104. &i2c3 {
  105. // FRU AT24C512C-SSHM-T
  106. status = "okay";
  107. eeprom@50 {
  108. compatible = "atmel,24c512";
  109. reg = <0x50>;
  110. pagesize = <128>;
  111. };
  112. };
  113. &i2c5 {
  114. status = "okay";
  115. };
  116. &i2c6 {
  117. status = "okay";
  118. tmp75@49 {
  119. compatible = "ti,tmp75";
  120. reg = <0x49>;
  121. };
  122. tmp75@4f {
  123. compatible = "ti,tmp75";
  124. reg = <0x4f>;
  125. };
  126. tmp468@48 {
  127. compatible = "ti,tmp468";
  128. reg = <0x48>;
  129. };
  130. };
  131. &i2c7 {
  132. status = "okay";
  133. adm1278@40 {
  134. compatible = "adi,adm1278";
  135. reg = <0x40>;
  136. };
  137. };
  138. &i2c8 {
  139. // FRU AT24C512C-SSHM-T
  140. status = "okay";
  141. eeprom@51 {
  142. compatible = "atmel,24c512";
  143. reg = <0x51>;
  144. pagesize = <128>;
  145. };
  146. eeprom@53 {
  147. compatible = "atmel,24c512";
  148. reg = <0x53>;
  149. pagesize = <128>;
  150. };
  151. };
  152. &i2c9 {
  153. // M.2
  154. status = "okay";
  155. };
  156. &i2c10 {
  157. // I2C EXPANDER
  158. status = "okay";
  159. i2c-switch@71 {
  160. compatible = "nxp,pca9544";
  161. #address-cells = <1>;
  162. #size-cells = <0>;
  163. reg = <0x71>;
  164. };
  165. i2c-switch@73 {
  166. compatible = "nxp,pca9544";
  167. #address-cells = <1>;
  168. #size-cells = <0>;
  169. reg = <0x73>;
  170. };
  171. };
  172. &i2c11 {
  173. // I2C EXPANDER
  174. status = "okay";
  175. i2c-switch@70 {
  176. compatible = "nxp,pca9544";
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. reg = <0x70>;
  180. pcie_eeprom_riser1: i2c@0 {
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. reg = <0>;
  184. eeprom@55 {
  185. compatible = "atmel,24c512";
  186. reg = <0x55>;
  187. pagesize = <128>;
  188. };
  189. };
  190. pcie_eeprom_riser2: i2c@1 {
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. reg = <1>;
  194. eeprom@55 {
  195. compatible = "atmel,24c512";
  196. reg = <0x55>;
  197. pagesize = <128>;
  198. };
  199. };
  200. pcie_eeprom_riser3: i2c@2 {
  201. #address-cells = <1>;
  202. #size-cells = <0>;
  203. reg = <2>;
  204. eeprom@55 {
  205. compatible = "atmel,24c512";
  206. reg = <0x55>;
  207. pagesize = <128>;
  208. };
  209. };
  210. };
  211. };
  212. &i2c12 {
  213. status = "okay";
  214. psu0:psu0@58 {
  215. compatible = "pmbus";
  216. reg = <0x58>;
  217. };
  218. };
  219. &gpio0 {
  220. status = "okay";
  221. gpio-line-names =
  222. /*A0-A7*/ "","","","","","","","",
  223. /*B0-B7*/ "presence-ps0","power-chassis-good","","","","","presence-ps1","",
  224. /*C0-C7*/ "","","","","","","","",
  225. /*D0-D7*/ "","","","","","","","",
  226. /*E0-E7*/ "","","","","","","","",
  227. /*F0-F7*/ "","","","","power-chassis-control","","","",
  228. /*G0-G7*/ "","","jtag-mux","","","","","",
  229. /*H0-H7*/ "","","","","reset-button","power-button","","",
  230. /*I0-I7*/ "","","","","","","","",
  231. /*J0-J7*/ "","","","","","","","",
  232. /*K0-K7*/ "","","","","","","","",
  233. /*L0-L7*/ "","","","","","","","",
  234. /*M0-M7*/ "","","","","","","","",
  235. /*N0-N7*/ "","","","","","","","",
  236. /*O0-O7*/ "","","","","","","","",
  237. /*P0-P7*/ "","","","tck-mux","","","","",
  238. /*Q0-Q7*/ "","","","","","","","",
  239. /*R0-R7*/ "","","","","","","","",
  240. /*S0-S7*/ "","","","","","","","",
  241. /*T0-T7*/ "","","","","","","","",
  242. /*U0-U7*/ "","nmi-button","","","","","","",
  243. /*V0-V7*/ "","","","","power-config-full-load","","","",
  244. /*W0-W7*/ "","","","","","","","",
  245. /*X0-X7*/ "","","","","","","","",
  246. /*Y0-Y7*/ "","","","","","","","",
  247. /*Z0-Z7*/ "","","","","","","","",
  248. /*AA0-AA7*/ "","","","","","","","",
  249. /*AB0-AB7*/ "","","","","","","","",
  250. /*AC0-AC7*/ "","","","","","","","";
  251. };
  252. &lpc_snoop {
  253. status = "okay";
  254. snoop-ports = <0x80>;
  255. };
  256. &emmc_controller {
  257. status = "okay";
  258. };
  259. &emmc {
  260. status = "okay";
  261. non-removable;
  262. max-frequency = <52000000>;
  263. bus-width = <8>;
  264. };
  265. &vhub {
  266. status = "okay";
  267. aspeed,vhub-downstream-ports = <7>;
  268. aspeed,vhub-generic-endpoints = <21>;
  269. pinctrl-names = "default";
  270. pinctrl-0 = <&pinctrl_usb2ad_default>;
  271. };
  272. &rtc {
  273. status = "okay";
  274. };