aspeed-bmc-tyan-s8036.dts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /dts-v1/;
  3. #include "aspeed-g5.dtsi"
  4. #include <dt-bindings/gpio/aspeed-gpio.h>
  5. #include <dt-bindings/interrupt-controller/irq.h>
  6. / {
  7. model = "Tyan S8036 BMC";
  8. compatible = "tyan,s8036-bmc", "aspeed,ast2500";
  9. chosen {
  10. stdout-path = &uart5;
  11. bootargs = "console=ttyS4,115200 earlycon";
  12. };
  13. memory@80000000 {
  14. device_type = "memory";
  15. reg = <0x80000000 0x20000000>;
  16. };
  17. reserved-memory {
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. ranges;
  21. p2a_memory: region@987f0000 {
  22. no-map;
  23. reg = <0x987f0000 0x00010000>; /* 64KB */
  24. };
  25. vga_memory: framebuffer@9f000000 {
  26. no-map;
  27. reg = <0x9f000000 0x01000000>; /* 16M */
  28. };
  29. gfx_memory: framebuffer {
  30. size = <0x01000000>; /* 16M */
  31. alignment = <0x01000000>;
  32. compatible = "shared-dma-pool";
  33. reusable;
  34. };
  35. };
  36. leds {
  37. compatible = "gpio-leds";
  38. identify {
  39. gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
  40. };
  41. heartbeat {
  42. gpios = <&gpio ASPEED_GPIO(E, 7) GPIO_ACTIVE_LOW>;
  43. };
  44. };
  45. iio-hwmon {
  46. compatible = "iio-hwmon";
  47. io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
  48. <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
  49. <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
  50. <&adc 12>, <&adc 13>, <&adc 14>;
  51. };
  52. iio-hwmon-battery {
  53. compatible = "iio-hwmon";
  54. io-channels = <&adc 15>;
  55. };
  56. };
  57. &fmc {
  58. status = "okay";
  59. flash@0 {
  60. label = "bmc";
  61. status = "okay";
  62. m25p,fast-read;
  63. #include "openbmc-flash-layout.dtsi"
  64. };
  65. };
  66. &spi1 {
  67. status = "okay";
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&pinctrl_spi1_default>;
  70. flash@0 {
  71. status = "okay";
  72. label = "pnor";
  73. m25p,fast-read;
  74. };
  75. };
  76. &uart1 {
  77. /* Rear RS-232 connector */
  78. status = "okay";
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&pinctrl_txd1_default
  81. &pinctrl_rxd1_default>;
  82. };
  83. &uart2 {
  84. /* RS-232 connector on header */
  85. status = "okay";
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&pinctrl_txd2_default
  88. &pinctrl_rxd2_default>;
  89. };
  90. &uart3 {
  91. /* Alternative to vuart to internally connect (route) to uart1
  92. * when vuart cannot be used due to BIOS limitations.
  93. */
  94. status = "okay";
  95. };
  96. &uart4 {
  97. /* Alternative to vuart to internally connect (route) to the
  98. * external port usually used by uart1 when vuart cannot be
  99. * used due to BIOS limitations.
  100. */
  101. status = "okay";
  102. };
  103. &uart5 {
  104. /* BMC "debug" (console) UART; connected to RS-232 connector
  105. * on header; selectable via jumpers as alternative to uart2
  106. */
  107. status = "okay";
  108. };
  109. &uart_routing {
  110. status = "okay";
  111. };
  112. &vuart {
  113. status = "okay";
  114. /* We enable the VUART here, but leave it in a state that does
  115. * not interfere with the SuperIO. The goal is to have both the
  116. * VUART and the SuperIO available and decide at runtime whether
  117. * the VUART should actually be used. For that reason, configure
  118. * an "invalid" IO address and an IRQ that is not used by the
  119. * BMC.
  120. */
  121. aspeed,lpc-io-reg = <0xffff>;
  122. aspeed,lpc-interrupts = <15 IRQ_TYPE_LEVEL_HIGH>;
  123. };
  124. &lpc_ctrl {
  125. status = "okay";
  126. };
  127. &p2a {
  128. status = "okay";
  129. memory-region = <&p2a_memory>;
  130. };
  131. &lpc_snoop {
  132. status = "okay";
  133. snoop-ports = <0x80>;
  134. };
  135. &adc {
  136. status = "okay";
  137. };
  138. &vhub {
  139. status = "okay";
  140. };
  141. &pwm_tacho {
  142. status = "okay";
  143. pinctrl-names = "default";
  144. pinctrl-0 = <&pinctrl_pwm0_default
  145. &pinctrl_pwm1_default
  146. &pinctrl_pwm3_default
  147. &pinctrl_pwm4_default>;
  148. /* CPU fan */
  149. fan@0 {
  150. reg = <0x00>;
  151. aspeed,fan-tach-ch = /bits/ 8 <0x00>;
  152. };
  153. /* PWM group for chassis fans #1, #2, #3 and #4 */
  154. fan@2 {
  155. reg = <0x03>;
  156. aspeed,fan-tach-ch = /bits/ 8 <0x02>;
  157. };
  158. fan@3 {
  159. reg = <0x03>;
  160. aspeed,fan-tach-ch = /bits/ 8 <0x03>;
  161. };
  162. fan@4 {
  163. reg = <0x03>;
  164. aspeed,fan-tach-ch = /bits/ 8 <0x04>;
  165. };
  166. fan@5 {
  167. reg = <0x03>;
  168. aspeed,fan-tach-ch = /bits/ 8 <0x05>;
  169. };
  170. /* PWM group for chassis fans #5 and #6 */
  171. fan@6 {
  172. reg = <0x04>;
  173. aspeed,fan-tach-ch = /bits/ 8 <0x06>;
  174. };
  175. fan@7 {
  176. reg = <0x04>;
  177. aspeed,fan-tach-ch = /bits/ 8 <0x07>;
  178. };
  179. };
  180. &i2c0 {
  181. /* Directly connected to Sideband-Temperature Sensor Interface (APML) */
  182. status = "okay";
  183. };
  184. &i2c1 {
  185. /* Directly connected to IPMB HDR. */
  186. status = "okay";
  187. };
  188. &i2c2 {
  189. status = "okay";
  190. /* BMC EEPROM, incl. mainboard FRU */
  191. eeprom@50 {
  192. compatible = "atmel,24c256";
  193. reg = <0x50>;
  194. };
  195. /* Also connected to:
  196. * - BCM5720
  197. * - FPGA
  198. * - FAN HDR
  199. * - FPIO HDR
  200. */
  201. };
  202. &i2c3 {
  203. status = "okay";
  204. /* PSU1 FRU @ 0xA0 */
  205. eeprom@50 {
  206. compatible = "atmel,24c02";
  207. reg = <0x50>;
  208. };
  209. /* PSU2 FRU @ 0xA2 */
  210. eeprom@51 {
  211. compatible = "atmel,24c02";
  212. reg = <0x51>;
  213. };
  214. /* PSU1 @ 0xB0 */
  215. power-supply@58 {
  216. compatible = "pmbus";
  217. reg = <0x58>;
  218. };
  219. /* PSU2 @ 0xB2 */
  220. power-supply@59 {
  221. compatible = "pmbus";
  222. reg = <0x59>;
  223. };
  224. };
  225. &i2c4 {
  226. status = "okay";
  227. };
  228. &i2c5 {
  229. status = "okay";
  230. /* Hardware monitor with temperature sensors */
  231. nct7802@28 {
  232. compatible = "nuvoton,nct7802";
  233. reg = <0x28>;
  234. #address-cells = <1>;
  235. #size-cells = <0>;
  236. channel@0 { /* LTD */
  237. reg = <0>;
  238. status = "okay";
  239. };
  240. channel@1 { /* RTD1 */
  241. reg = <1>;
  242. status = "okay";
  243. sensor-type = "temperature";
  244. temperature-mode = "thermistor";
  245. };
  246. channel@2 { /* RTD2 */
  247. reg = <2>;
  248. status = "okay";
  249. sensor-type = "temperature";
  250. temperature-mode = "thermistor";
  251. };
  252. channel@3 { /* RTD3 */
  253. reg = <3>;
  254. status = "okay";
  255. sensor-type = "temperature";
  256. };
  257. };
  258. /* Also connected to:
  259. * - PCA9544
  260. * - CLK BUFF
  261. * - OCP FRU
  262. */
  263. };
  264. &i2c6 {
  265. status = "okay";
  266. /* Connected to:
  267. * - PCA9548 @0xE0
  268. * - PCA9548 @0xE2
  269. * - PCA9544 @0xE4
  270. */
  271. };
  272. &i2c7 {
  273. status = "okay";
  274. /* Connected to:
  275. * - PCH SMBUS #4
  276. */
  277. };
  278. &i2c8 {
  279. status = "okay";
  280. /* Not connected */
  281. };
  282. &mac0 {
  283. status = "okay";
  284. use-ncsi;
  285. pinctrl-names = "default";
  286. pinctrl-0 = <&pinctrl_rmii1_default>;
  287. };
  288. &mac1 {
  289. status = "okay";
  290. pinctrl-names = "default";
  291. pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
  292. };
  293. &ibt {
  294. status = "okay";
  295. };
  296. &kcs1 {
  297. status = "okay";
  298. aspeed,lpc-io-reg = <0xca8>;
  299. };
  300. &kcs3 {
  301. status = "okay";
  302. aspeed,lpc-io-reg = <0xca2>;
  303. };
  304. /* Enable BMC VGA output to show an early (pre-BIOS) boot screen */
  305. &gfx {
  306. status = "okay";
  307. memory-region = <&gfx_memory>;
  308. };
  309. /* We're following the GPIO naming as defined at
  310. * https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md.
  311. *
  312. * Notes on led-identify and id-button:
  313. * - A physical button is connected to id-button which
  314. * triggers the clock on a D flip-flop. The /Q output of the
  315. * flip-flop drives its D input.
  316. * - The flip-flop's Q output drives led-identify which is
  317. * connected to LEDs.
  318. * - With that, every button press toggles the LED between on and off.
  319. *
  320. * Notes on power-, reset- and nmi- button and control:
  321. * - The -button signals can be used to monitor physical buttons.
  322. * - The -control signals can be used to actuate the specific
  323. * operation.
  324. * - In hardware, the -button signals are connected to the -control
  325. * signals through drivers with the -control signals being
  326. * protected through diodes.
  327. */
  328. &gpio {
  329. status = "okay";
  330. gpio-line-names =
  331. /*A0*/ "",
  332. /*A1*/ "",
  333. /*A2*/ "led-identify", /* in/out: BMC_CHASSIS_ID_LED_L */
  334. /*A3*/ "",
  335. /*A4*/ "",
  336. /*A5*/ "",
  337. /*A6*/ "",
  338. /*A7*/ "",
  339. /*B0-B7*/ "","","","","","","","",
  340. /*C0-C7*/ "","","","","","","","",
  341. /*D0*/ "",
  342. /*D1*/ "",
  343. /*D2*/ "power-chassis-good", /* in: PWR_GOOD_LED -- Check if this is Z3?*/
  344. /*D3*/ "platform-reset", /* in: RESET_LED_L */
  345. /*D4*/ "",
  346. /*D5*/ "",
  347. /*D6*/ "",
  348. /*D7*/ "",
  349. /*E0*/ "power-button", /* in: BMC_SYS_MON_PWR_BTN_L */
  350. /*E1*/ "power-chassis-control", /* out: BMC_ASSERT_PWR_BTN */
  351. /*E2*/ "reset-button", /* in: BMC_SYS_MOS_RST_BTN_L*/
  352. /*E3*/ "reset-control", /* out: BMC_ASSERT_RST_BTN */
  353. /*E4*/ "nmi-button", /* in: BMC_SYS_MON_NMI_BTN_L */
  354. /*E5*/ "nmi-control", /* out: BMC_ASSERT_NMI_BTN */
  355. /*E6*/ "TSI_RESERT",
  356. /*E7*/ "led-heartbeat", /* out: BMC_GPIOE7 */
  357. /*F0*/ "",
  358. /*F1*/ "clear-cmos-control", /* out: BMC_ASSERT_CLR_CMOS_L */
  359. /*F2*/ "",
  360. /*F3*/ "",
  361. /*F4*/ "led-fault", /* out: BMC_HWM_FAULT_LED_L */
  362. /*F5*/ "BMC_SYS_FAULT_LED_L",
  363. /*F6*/ "BMC_ASSERT_BIOS_WP_L",
  364. /*F7*/ "",
  365. /*G0-G7*/ "","","","","","","","",
  366. /*H0-H7*/ "","","","","","","","",
  367. /*I0-I7*/ "","","","","","","","",
  368. /*J0-J7*/ "","","","","","","","",
  369. /*K0-K7*/ "","","","","","","","",
  370. /*L0-L7*/ "","","","","","","","",
  371. /*M0-M7*/ "","","","","","","","",
  372. /*N0-N7*/ "","","","","","","","",
  373. /*O0-O7*/ "","","","","","","","",
  374. /*P0-P7*/ "","","","","","","","",
  375. /*Q0*/ "",
  376. /*Q1*/ "",
  377. /*Q2*/ "",
  378. /*Q3*/ "",
  379. /*Q4*/ "",
  380. /*Q5*/ "",
  381. /*Q6*/ "id-button", /* in: BMC_CHASSIS_ID_BTN_L */
  382. /*Q7*/ "",
  383. /*R0-R7*/ "","","","","","","","",
  384. /*S0-S7*/ "","","","","","","","",
  385. /*T0-T7*/ "","","","","","","","",
  386. /*U0-U7*/ "","","","","","","","",
  387. /*V0-V7*/ "","","","","","","","",
  388. /*W0-W7*/ "","","","","","","","",
  389. /*X0-X7*/ "","","","","","","","",
  390. /*Y0-Y7*/ "","","","","","","","",
  391. /*Z0-Z2*/ "","","",
  392. /*Z3*/ "post-complete", /* BMC_SYS_MON_PWROK */
  393. /*Z4-Z7*/ "","","","",
  394. /*AA0*/ "",
  395. /*AA1*/ "",
  396. /*AA2*/ "",
  397. /*AA3*/ "",
  398. /*AA4*/ "",
  399. /*AA5*/ "",
  400. /*AA6*/ "",
  401. /*AA7*/ "BMC_ASSERT_BMC_READY",
  402. /*AB0*/ "BMC_SPD_SEL",
  403. /*AB1-AB7*/ "","","","","","","";
  404. };