aspeed-bmc-tyan-s7106.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  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 S7106 BMC";
  8. compatible = "tyan,s7106-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 #0 */
  149. fan@0 {
  150. reg = <0x00>;
  151. aspeed,fan-tach-ch = /bits/ 8 <0x00>;
  152. };
  153. /* CPU fan #1 */
  154. fan@1 {
  155. reg = <0x01>;
  156. aspeed,fan-tach-ch = /bits/ 8 <0x01>;
  157. };
  158. /* PWM group for chassis fans #1, #2, #3 and #4 */
  159. fan@2 {
  160. reg = <0x03>;
  161. aspeed,fan-tach-ch = /bits/ 8 <0x02>;
  162. };
  163. fan@3 {
  164. reg = <0x03>;
  165. aspeed,fan-tach-ch = /bits/ 8 <0x03>;
  166. };
  167. fan@4 {
  168. reg = <0x03>;
  169. aspeed,fan-tach-ch = /bits/ 8 <0x04>;
  170. };
  171. fan@5 {
  172. reg = <0x03>;
  173. aspeed,fan-tach-ch = /bits/ 8 <0x05>;
  174. };
  175. /* PWM group for chassis fans #5 and #6 */
  176. fan@6 {
  177. reg = <0x04>;
  178. aspeed,fan-tach-ch = /bits/ 8 <0x06>;
  179. };
  180. fan@7 {
  181. reg = <0x04>;
  182. aspeed,fan-tach-ch = /bits/ 8 <0x07>;
  183. };
  184. };
  185. &i2c0 {
  186. status = "okay";
  187. /* Hardware monitor with temperature sensors */
  188. nct7802@28 {
  189. compatible = "nuvoton,nct7802";
  190. reg = <0x28>;
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. channel@0 { /* LTD */
  194. reg = <0>;
  195. };
  196. channel@1 { /* RTD1 */
  197. reg = <1>;
  198. sensor-type = "temperature";
  199. temperature-mode = "thermistor";
  200. };
  201. channel@2 { /* RTD2 */
  202. reg = <2>;
  203. sensor-type = "temperature";
  204. temperature-mode = "thermistor";
  205. };
  206. channel@3 { /* RTD3 */
  207. reg = <3>;
  208. sensor-type = "temperature";
  209. };
  210. };
  211. /* Also connected to:
  212. * - IPMB pin header
  213. * - CPU #0 memory error LED @ 0x3A
  214. * - CPU #1 memory error LED @ 0x3C
  215. */
  216. };
  217. &i2c1 {
  218. /* Directly connected to PCH SMBUS #0 */
  219. status = "okay";
  220. };
  221. &i2c2 {
  222. status = "okay";
  223. /* BMC EEPROM, incl. mainboard FRU */
  224. eeprom@50 {
  225. compatible = "atmel,24c256";
  226. reg = <0x50>;
  227. };
  228. /* Also connected to:
  229. * - fan header
  230. * - mini-SAS HD connector
  231. * - SSATA SGPIO
  232. * - via switch (BMC_SMB3_PCH_IE_SML3_EN, active low)
  233. * to PCH SMBUS #3
  234. */
  235. };
  236. &i2c3 {
  237. status = "okay";
  238. /* PSU1 FRU @ 0xA0 */
  239. eeprom@50 {
  240. compatible = "atmel,24c02";
  241. reg = <0x50>;
  242. };
  243. /* PSU2 FRU @ 0xA2 */
  244. eeprom@51 {
  245. compatible = "atmel,24c02";
  246. reg = <0x51>;
  247. };
  248. /* PSU1 @ 0xB0 */
  249. power-supply@58 {
  250. compatible = "pmbus";
  251. reg = <0x58>;
  252. };
  253. /* PSU2 @ 0xB2 */
  254. power-supply@59 {
  255. compatible = "pmbus";
  256. reg = <0x59>;
  257. };
  258. /* Also connected to:
  259. * - PCH SMBUS #1
  260. */
  261. };
  262. &i2c4 {
  263. status = "okay";
  264. /* Connected to:
  265. * - PCH SMBUS #2
  266. */
  267. /* Connected via switch to:
  268. * - CPU #0 channels ABC VDDQ @ 0x80
  269. * - CPU #0 channels DEF VDDQ @ 0x81
  270. * - CPU #1 channels ABC VDDQ @ 0x82
  271. * - CPU #1 channels DEF VDDQ @ 0x83
  272. * - CPU #0 VCCIO & VMCP @ 0x52
  273. * - CPU #1 VCCIO & VMCP @ 0x53
  274. * - CPU #0 VCCIN @ 0xC0
  275. * - CPU #0 VSA @ 0xC2
  276. * - CPU #1 VCCIN @ 0xC4
  277. * - CPU #1 VSA @ 0xC6
  278. * - J110
  279. */
  280. };
  281. &i2c5 {
  282. status = "okay";
  283. /* Connected via switch (PCH_BMC_SMB_SW_P) to:
  284. * - mainboard FRU @ 0xAE
  285. * - XDP connector
  286. * - ME debug header
  287. * - clock buffer @ 0xD8
  288. * - i2c4 via switch (PCH_VR_SMBUS_SW_P; controlled by PCH)
  289. * - PCH SMBUS
  290. */
  291. };
  292. &i2c6 {
  293. status = "okay";
  294. /* Connected via switch (BMC_PE_SMB_EN_1_N) to
  295. * bus mux (selector BMC_PE_SMB_SW_BIT[1..0]) to:
  296. * - 0,0: PCIE slot 1, SMB #1
  297. * - 0,1: PCIE slot 1, SMB #2
  298. * - 1,0: PCIE slot 2, SMB #1
  299. * - 1,1: PCIE slot 2, SMB #2
  300. */
  301. /* Connected via switch (BMC_PE_SMB_EN_2_N) to
  302. * bus mux (selector BMC_PE_SMB_SW_BIT[1..0]) to:
  303. * - 0,0: OCP0 (A) SMB
  304. * - 0,1: OCP0 (C) SMB
  305. * - 1,0: OCP1 (A) SMB
  306. * - 1,1: NC
  307. */
  308. };
  309. &i2c7 {
  310. status = "okay";
  311. /* Connected to:
  312. * - PCH SMBUS #4
  313. */
  314. };
  315. &i2c8 {
  316. status = "okay";
  317. /* Not connected */
  318. };
  319. &mac0 {
  320. status = "okay";
  321. use-ncsi;
  322. pinctrl-names = "default";
  323. pinctrl-0 = <&pinctrl_rmii1_default>;
  324. };
  325. &mac1 {
  326. status = "okay";
  327. pinctrl-names = "default";
  328. pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
  329. };
  330. &ibt {
  331. status = "okay";
  332. };
  333. &kcs1 {
  334. status = "okay";
  335. aspeed,lpc-io-reg = <0xca8>;
  336. };
  337. &kcs3 {
  338. status = "okay";
  339. aspeed,lpc-io-reg = <0xca2>;
  340. };
  341. /* Enable BMC VGA output to show an early (pre-BIOS) boot screen */
  342. &gfx {
  343. status = "okay";
  344. memory-region = <&gfx_memory>;
  345. };
  346. /* We're following the GPIO naming as defined at
  347. * https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md.
  348. *
  349. * Notes on led-identify and id-button:
  350. * - A physical button is connected to id-button which
  351. * triggers the clock on a D flip-flop. The /Q output of the
  352. * flip-flop drives its D input.
  353. * - The flip-flop's Q output drives led-identify which is
  354. * connected to LEDs.
  355. * - With that, every button press toggles the LED between on and off.
  356. *
  357. * Notes on power-, reset- and nmi- button and control:
  358. * - The -button signals can be used to monitor physical buttons.
  359. * - The -control signals can be used to actuate the specific
  360. * operation.
  361. * - In hardware, the -button signals are connected to the -control
  362. * signals through drivers with the -control signals being
  363. * protected through diodes.
  364. */
  365. &gpio {
  366. status = "okay";
  367. gpio-line-names =
  368. /*A0*/ "",
  369. /*A1*/ "",
  370. /*A2*/ "led-identify", /* in/out: BMC_IDLED_ON_N */
  371. /*A3*/ "",
  372. /*A4*/ "",
  373. /*A5*/ "",
  374. /*A6*/ "",
  375. /*A7*/ "",
  376. /*B0-B7*/ "","","","","","","","",
  377. /*C0*/ "",
  378. /*C1*/ "",
  379. /*C2*/ "",
  380. /*C3*/ "",
  381. /*C4*/ "id-button", /* in/out: BMC_IDBTN_IN_OUT_N */
  382. /*C5*/ "post-complete", /* in: FM_BIOS_POST_CMPLT_N */
  383. /*C6*/ "",
  384. /*C7*/ "",
  385. /*D0*/ "",
  386. /*D1*/ "",
  387. /*D2*/ "power-chassis-good", /* in: SYS_PWROK_BUF */
  388. /*D3*/ "platform-reset", /* in: SYS_PLTRST_N */
  389. /*D4*/ "",
  390. /*D5*/ "",
  391. /*D6*/ "",
  392. /*D7*/ "",
  393. /*E0*/ "power-button", /* in: BMC_PWBTN_IN_N */
  394. /*E1*/ "power-chassis-control", /* out: BMC_PWRBTN_OUT_N */
  395. /*E2*/ "reset-button", /* in: BMC_RSTBTN_IN_N */
  396. /*E3*/ "reset-control", /* out: BMC_RSTBTN_OUT_N */
  397. /*E4*/ "nmi-button", /* in: BMC_NMIBTN_IN_N */
  398. /*E5*/ "nmi-control", /* out: BMC_NMIBTN_OUT_N */
  399. /*E6*/ "",
  400. /*E7*/ "led-heartbeat", /* out: BMC_HEARTBRAT_LED_N */
  401. /*F0*/ "",
  402. /*F1*/ "clear-cmos-control", /* out: BMC_CLR_CMOS_N */
  403. /*F2*/ "",
  404. /*F3*/ "",
  405. /*F4*/ "led-fault", /* out: AST_HW_FAULT_N */
  406. /*F5*/ "",
  407. /*F6*/ "",
  408. /*F7*/ "",
  409. /*G0*/ "BMC_PE_SMB_EN_1_N", /* out */
  410. /*G1*/ "BMC_PE_SMB_EN_2_N", /* out */
  411. /*G2*/ "",
  412. /*G3*/ "",
  413. /*G4*/ "",
  414. /*G5*/ "",
  415. /*G6*/ "",
  416. /*G7*/ "",
  417. /*H0-H7*/ "","","","","","","","",
  418. /*I0-I7*/ "","","","","","","","",
  419. /*J0-J7*/ "","","","","","","","",
  420. /*K0-K7*/ "","","","","","","","",
  421. /*L0-L7*/ "","","","","","","","",
  422. /*M0-M7*/ "","","","","","","","",
  423. /*N0-N7*/ "","","","","","","","",
  424. /*O0-O7*/ "","","","","","","","",
  425. /*P0-P7*/ "","","","","","","","",
  426. /*Q0*/ "",
  427. /*Q1*/ "",
  428. /*Q2*/ "",
  429. /*Q3*/ "",
  430. /*Q4*/ "BMC_PE_SMB_SW_BIT0", /* out */
  431. /*Q5*/ "BMC_PE_SMB_SW_BIT1", /* out */
  432. /*Q6*/ "",
  433. /*Q7*/ "",
  434. /*R0-R7*/ "","","","","","","","",
  435. /*S0-S7*/ "","","","","","","","",
  436. /*T0-T7*/ "","","","","","","","",
  437. /*U0-U7*/ "","","","","","","","",
  438. /*V0-V7*/ "","","","","","","","",
  439. /*W0-W7*/ "","","","","","","","",
  440. /*X0-X7*/ "","","","","","","","",
  441. /*Y0-Y7*/ "","","","","","","","",
  442. /*Z0-Z7*/ "","","","","","","","",
  443. /*AA0*/ "",
  444. /*AA1*/ "",
  445. /*AA2*/ "",
  446. /*AA3*/ "BMC_SMB3_PCH_IE_SML3_EN", /* out */
  447. /*AA4*/ "",
  448. /*AA5*/ "",
  449. /*AA6*/ "",
  450. /*AA7*/ "",
  451. /*AB0-AB7*/ "","","","","","","","";
  452. };