aspeed-bmc-opp-witherspoon.dts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  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/leds/leds-pca955x.h>
  6. / {
  7. model = "Witherspoon BMC";
  8. compatible = "ibm,witherspoon-bmc", "aspeed,ast2500";
  9. chosen {
  10. stdout-path = &uart5;
  11. bootargs = "console=ttyS4,115200 earlycon";
  12. };
  13. memory@80000000 {
  14. reg = <0x80000000 0x20000000>;
  15. };
  16. reserved-memory {
  17. #address-cells = <1>;
  18. #size-cells = <1>;
  19. ranges;
  20. flash_memory: region@98000000 {
  21. no-map;
  22. reg = <0x98000000 0x04000000>; /* 64M */
  23. };
  24. vga_memory: region@9f000000 {
  25. no-map;
  26. compatible = "shared-dma-pool";
  27. reg = <0x9f000000 0x01000000>; /* 16M */
  28. };
  29. gfx_memory: framebuffer {
  30. size = <0x01000000>;
  31. alignment = <0x01000000>;
  32. compatible = "shared-dma-pool";
  33. reusable;
  34. };
  35. video_engine_memory: jpegbuffer {
  36. size = <0x02000000>; /* 32MM */
  37. alignment = <0x01000000>;
  38. compatible = "shared-dma-pool";
  39. reusable;
  40. };
  41. };
  42. gpio-keys {
  43. compatible = "gpio-keys";
  44. event-air-water {
  45. label = "air-water";
  46. gpios = <&gpio ASPEED_GPIO(B, 5) GPIO_ACTIVE_LOW>;
  47. linux,code = <ASPEED_GPIO(B, 5)>;
  48. };
  49. event-checkstop {
  50. label = "checkstop";
  51. gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
  52. linux,code = <ASPEED_GPIO(J, 2)>;
  53. };
  54. event-ps0-presence {
  55. label = "ps0-presence";
  56. gpios = <&gpio ASPEED_GPIO(P, 7) GPIO_ACTIVE_LOW>;
  57. linux,code = <ASPEED_GPIO(P, 7)>;
  58. };
  59. event-ps1-presence {
  60. label = "ps1-presence";
  61. gpios = <&gpio ASPEED_GPIO(N, 0) GPIO_ACTIVE_LOW>;
  62. linux,code = <ASPEED_GPIO(N, 0)>;
  63. };
  64. };
  65. iio-hwmon-battery {
  66. compatible = "iio-hwmon";
  67. io-channels = <&adc 12>;
  68. };
  69. gpio-keys-polled {
  70. compatible = "gpio-keys-polled";
  71. poll-interval = <1000>;
  72. event-fan0-presence {
  73. label = "fan0-presence";
  74. gpios = <&pca0 4 GPIO_ACTIVE_LOW>;
  75. linux,code = <4>;
  76. };
  77. event-fan1-presence {
  78. label = "fan1-presence";
  79. gpios = <&pca0 5 GPIO_ACTIVE_LOW>;
  80. linux,code = <5>;
  81. };
  82. event-fan2-presence {
  83. label = "fan2-presence";
  84. gpios = <&pca0 6 GPIO_ACTIVE_LOW>;
  85. linux,code = <6>;
  86. };
  87. event-fan3-presence {
  88. label = "fan3-presence";
  89. gpios = <&pca0 7 GPIO_ACTIVE_LOW>;
  90. linux,code = <7>;
  91. };
  92. };
  93. leds {
  94. compatible = "gpio-leds";
  95. fan0 {
  96. retain-state-shutdown;
  97. default-state = "keep";
  98. gpios = <&pca0 0 GPIO_ACTIVE_LOW>;
  99. };
  100. fan1 {
  101. retain-state-shutdown;
  102. default-state = "keep";
  103. gpios = <&pca0 1 GPIO_ACTIVE_LOW>;
  104. };
  105. fan2 {
  106. retain-state-shutdown;
  107. default-state = "keep";
  108. gpios = <&pca0 2 GPIO_ACTIVE_LOW>;
  109. };
  110. fan3 {
  111. retain-state-shutdown;
  112. default-state = "keep";
  113. gpios = <&pca0 3 GPIO_ACTIVE_LOW>;
  114. };
  115. front-fault {
  116. retain-state-shutdown;
  117. default-state = "keep";
  118. gpios = <&pca0 13 GPIO_ACTIVE_LOW>;
  119. };
  120. front-power {
  121. retain-state-shutdown;
  122. default-state = "keep";
  123. gpios = <&pca0 14 GPIO_ACTIVE_LOW>;
  124. };
  125. front-id {
  126. retain-state-shutdown;
  127. default-state = "keep";
  128. gpios = <&pca0 15 GPIO_ACTIVE_LOW>;
  129. };
  130. rear-fault {
  131. gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
  132. };
  133. rear-id {
  134. gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_LOW>;
  135. };
  136. rear-power {
  137. gpios = <&gpio ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>;
  138. };
  139. power-button {
  140. gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
  141. };
  142. };
  143. fsi: gpio-fsi {
  144. compatible = "fsi-master-gpio", "fsi-master";
  145. #address-cells = <2>;
  146. #size-cells = <0>;
  147. no-gpio-delays;
  148. clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
  149. data-gpios = <&gpio ASPEED_GPIO(E, 0) GPIO_ACTIVE_HIGH>;
  150. mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
  151. enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
  152. trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
  153. };
  154. iio-hwmon-dps310 {
  155. compatible = "iio-hwmon";
  156. io-channels = <&dps 0>;
  157. };
  158. iio-hwmon-bmp280 {
  159. compatible = "iio-hwmon";
  160. io-channels = <&bmp 1>;
  161. };
  162. };
  163. &gpio {
  164. gpio-line-names =
  165. /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","",
  166. /*B0-B7*/ "","","","","","air-water","","",
  167. /*C0-C7*/ "","","","","","","","",
  168. /*D0-D7*/ "fsi-enable","","","","","","","",
  169. /*E0-E7*/ "fsi-data","","","","","","","",
  170. /*F0-F7*/ "","","","","","","","",
  171. /*G0-G7*/ "","","","","","","","",
  172. /*H0-H7*/ "","","","","","","","",
  173. /*I0-I7*/ "","","","","","","","",
  174. /*J0-J7*/ "","","checkstop","","","","","",
  175. /*K0-K7*/ "","","","","","","","",
  176. /*L0-L7*/ "","","","","","","","",
  177. /*M0-M7*/ "","","","","","","","",
  178. /*N0-N7*/ "presence-ps1","","led-rear-fault","led-rear-power",
  179. "led-rear-id","","","",
  180. /*O0-O7*/ "","","","","","","","",
  181. /*P0-P7*/ "","","","","","","","presence-ps0",
  182. /*Q0-Q7*/ "","","","","","","","",
  183. /*R0-R7*/ "","","fsi-trans","","","power-button","","",
  184. /*S0-S7*/ "","","","","","","","",
  185. /*T0-T7*/ "","","","","","","","",
  186. /*U0-U7*/ "","","","","","","","",
  187. /*V0-V7*/ "","","","","","","","",
  188. /*W0-W7*/ "","","","","","","","",
  189. /*X0-X7*/ "","","","","","","","",
  190. /*Y0-Y7*/ "","","","","","","","",
  191. /*Z0-Z7*/ "","","","","","","","",
  192. /*AA0-AA7*/ "fsi-clock","","","","","","","",
  193. /*AB0-AB7*/ "","","","","","","","",
  194. /*AC0-AC7*/ "","","","","","","","";
  195. };
  196. &fmc {
  197. status = "okay";
  198. flash@0 {
  199. status = "okay";
  200. label = "bmc";
  201. m25p,fast-read;
  202. spi-max-frequency = <50000000>;
  203. partitions {
  204. #address-cells = < 1 >;
  205. #size-cells = < 1 >;
  206. compatible = "fixed-partitions";
  207. u-boot@0 {
  208. reg = < 0 0x60000 >;
  209. label = "u-boot";
  210. };
  211. u-boot-env@60000 {
  212. reg = < 0x60000 0x20000 >;
  213. label = "u-boot-env";
  214. };
  215. obmc-ubi@80000 {
  216. reg = < 0x80000 0x1F80000 >;
  217. label = "obmc-ubi";
  218. };
  219. };
  220. };
  221. flash@1 {
  222. status = "okay";
  223. label = "alt-bmc";
  224. m25p,fast-read;
  225. spi-max-frequency = <50000000>;
  226. partitions {
  227. #address-cells = < 1 >;
  228. #size-cells = < 1 >;
  229. compatible = "fixed-partitions";
  230. u-boot@0 {
  231. reg = < 0 0x60000 >;
  232. label = "alt-u-boot";
  233. };
  234. u-boot-env@60000 {
  235. reg = < 0x60000 0x20000 >;
  236. label = "alt-u-boot-env";
  237. };
  238. obmc-ubi@80000 {
  239. reg = < 0x80000 0x1F80000 >;
  240. label = "alt-obmc-ubi";
  241. };
  242. };
  243. };
  244. };
  245. &spi1 {
  246. status = "okay";
  247. pinctrl-names = "default";
  248. pinctrl-0 = <&pinctrl_spi1_default>;
  249. flash@0 {
  250. status = "okay";
  251. label = "pnor";
  252. m25p,fast-read;
  253. spi-max-frequency = <100000000>;
  254. };
  255. };
  256. &uart1 {
  257. /* Rear RS-232 connector */
  258. status = "okay";
  259. pinctrl-names = "default";
  260. pinctrl-0 = <&pinctrl_txd1_default
  261. &pinctrl_rxd1_default
  262. &pinctrl_nrts1_default
  263. &pinctrl_ndtr1_default
  264. &pinctrl_ndsr1_default
  265. &pinctrl_ncts1_default
  266. &pinctrl_ndcd1_default
  267. &pinctrl_nri1_default>;
  268. };
  269. &uart2 {
  270. /* APSS */
  271. status = "okay";
  272. pinctrl-names = "default";
  273. pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
  274. };
  275. &uart5 {
  276. status = "okay";
  277. };
  278. &lpc_ctrl {
  279. status = "okay";
  280. memory-region = <&flash_memory>;
  281. flash = <&spi1>;
  282. };
  283. &mac0 {
  284. status = "okay";
  285. pinctrl-names = "default";
  286. pinctrl-0 = <&pinctrl_rmii1_default>;
  287. clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
  288. <&syscon ASPEED_CLK_MAC1RCLK>;
  289. clock-names = "MACCLK", "RCLK";
  290. use-ncsi;
  291. };
  292. &i2c2 {
  293. status = "okay";
  294. /* MUX ->
  295. * Samtec 1
  296. * Samtec 2
  297. */
  298. };
  299. &i2c3 {
  300. status = "okay";
  301. bmp: bmp280@77 {
  302. compatible = "bosch,bmp280";
  303. reg = <0x77>;
  304. #io-channel-cells = <1>;
  305. };
  306. max31785@52 {
  307. compatible = "maxim,max31785a";
  308. reg = <0x52>;
  309. #address-cells = <1>;
  310. #size-cells = <0>;
  311. };
  312. dps: dps310@76 {
  313. compatible = "infineon,dps310";
  314. reg = <0x76>;
  315. #io-channel-cells = <0>;
  316. };
  317. pca0: pca9552@60 {
  318. compatible = "nxp,pca9552";
  319. reg = <0x60>;
  320. #address-cells = <1>;
  321. #size-cells = <0>;
  322. gpio-controller;
  323. #gpio-cells = <2>;
  324. gpio@0 {
  325. reg = <0>;
  326. type = <PCA955X_TYPE_GPIO>;
  327. };
  328. gpio@1 {
  329. reg = <1>;
  330. type = <PCA955X_TYPE_GPIO>;
  331. };
  332. gpio@2 {
  333. reg = <2>;
  334. type = <PCA955X_TYPE_GPIO>;
  335. };
  336. gpio@3 {
  337. reg = <3>;
  338. type = <PCA955X_TYPE_GPIO>;
  339. };
  340. gpio@4 {
  341. reg = <4>;
  342. type = <PCA955X_TYPE_GPIO>;
  343. };
  344. gpio@5 {
  345. reg = <5>;
  346. type = <PCA955X_TYPE_GPIO>;
  347. };
  348. gpio@6 {
  349. reg = <6>;
  350. type = <PCA955X_TYPE_GPIO>;
  351. };
  352. gpio@7 {
  353. reg = <7>;
  354. type = <PCA955X_TYPE_GPIO>;
  355. };
  356. gpio@8 {
  357. reg = <8>;
  358. type = <PCA955X_TYPE_GPIO>;
  359. };
  360. gpio@9 {
  361. reg = <9>;
  362. type = <PCA955X_TYPE_GPIO>;
  363. };
  364. gpio@10 {
  365. reg = <10>;
  366. type = <PCA955X_TYPE_GPIO>;
  367. };
  368. gpio@11 {
  369. reg = <11>;
  370. type = <PCA955X_TYPE_GPIO>;
  371. };
  372. gpio@12 {
  373. reg = <12>;
  374. type = <PCA955X_TYPE_GPIO>;
  375. };
  376. gpio@13 {
  377. reg = <13>;
  378. type = <PCA955X_TYPE_GPIO>;
  379. };
  380. gpio@14 {
  381. reg = <14>;
  382. type = <PCA955X_TYPE_GPIO>;
  383. };
  384. gpio@15 {
  385. reg = <15>;
  386. type = <PCA955X_TYPE_GPIO>;
  387. };
  388. };
  389. power-supply@68 {
  390. compatible = "ibm,cffps1";
  391. reg = <0x68>;
  392. };
  393. power-supply@69 {
  394. compatible = "ibm,cffps1";
  395. reg = <0x69>;
  396. };
  397. };
  398. &i2c4 {
  399. status = "okay";
  400. tmp423a@4c {
  401. compatible = "ti,tmp423";
  402. reg = <0x4c>;
  403. };
  404. ir35221@70 {
  405. compatible = "infineon,ir35221";
  406. reg = <0x70>;
  407. };
  408. ir35221@71 {
  409. compatible = "infineon,ir35221";
  410. reg = <0x71>;
  411. };
  412. };
  413. &i2c5 {
  414. status = "okay";
  415. tmp423a@4c {
  416. compatible = "ti,tmp423";
  417. reg = <0x4c>;
  418. };
  419. ir35221@70 {
  420. compatible = "infineon,ir35221";
  421. reg = <0x70>;
  422. };
  423. ir35221@71 {
  424. compatible = "infineon,ir35221";
  425. reg = <0x71>;
  426. };
  427. };
  428. &i2c9 {
  429. status = "okay";
  430. tmp275@4a {
  431. compatible = "ti,tmp275";
  432. reg = <0x4a>;
  433. };
  434. };
  435. &i2c10 {
  436. /* MUX
  437. * -> PCIe Slot 3
  438. * -> PCIe Slot 4
  439. */
  440. status = "okay";
  441. };
  442. &i2c11 {
  443. status = "okay";
  444. pca9552: pca9552@60 {
  445. compatible = "nxp,pca9552";
  446. reg = <0x60>;
  447. #address-cells = <1>;
  448. #size-cells = <0>;
  449. gpio-controller;
  450. #gpio-cells = <2>;
  451. gpio-line-names = "PS_SMBUS_RESET_N", "APSS_RESET_N",
  452. "GPU0_TH_OVERT_N_BUFF", "GPU1_TH_OVERT_N_BUFF",
  453. "GPU2_TH_OVERT_N_BUFF", "GPU3_TH_OVERT_N_BUFF",
  454. "GPU4_TH_OVERT_N_BUFF", "GPU5_TH_OVERT_N_BUFF",
  455. "GPU0_PWR_GOOD_BUFF", "GPU1_PWR_GOOD_BUFF",
  456. "GPU2_PWR_GOOD_BUFF", "GPU3_PWR_GOOD_BUFF",
  457. "GPU4_PWR_GOOD_BUFF", "GPU5_PWR_GOOD_BUFF",
  458. "12V_BREAKER_FLT_N", "THROTTLE_UNLATCHED_N";
  459. gpio@0 {
  460. reg = <0>;
  461. type = <PCA955X_TYPE_GPIO>;
  462. };
  463. gpio@1 {
  464. reg = <1>;
  465. type = <PCA955X_TYPE_GPIO>;
  466. };
  467. gpio@2 {
  468. reg = <2>;
  469. type = <PCA955X_TYPE_GPIO>;
  470. };
  471. gpio@3 {
  472. reg = <3>;
  473. type = <PCA955X_TYPE_GPIO>;
  474. };
  475. gpio@4 {
  476. reg = <4>;
  477. type = <PCA955X_TYPE_GPIO>;
  478. };
  479. gpio@5 {
  480. reg = <5>;
  481. type = <PCA955X_TYPE_GPIO>;
  482. };
  483. gpio@6 {
  484. reg = <6>;
  485. type = <PCA955X_TYPE_GPIO>;
  486. };
  487. gpio@7 {
  488. reg = <7>;
  489. type = <PCA955X_TYPE_GPIO>;
  490. };
  491. gpio@8 {
  492. reg = <8>;
  493. type = <PCA955X_TYPE_GPIO>;
  494. };
  495. gpio@9 {
  496. reg = <9>;
  497. type = <PCA955X_TYPE_GPIO>;
  498. };
  499. gpio@10 {
  500. reg = <10>;
  501. type = <PCA955X_TYPE_GPIO>;
  502. };
  503. gpio@11 {
  504. reg = <11>;
  505. type = <PCA955X_TYPE_GPIO>;
  506. };
  507. gpio@12 {
  508. reg = <12>;
  509. type = <PCA955X_TYPE_GPIO>;
  510. };
  511. gpio@13 {
  512. reg = <13>;
  513. type = <PCA955X_TYPE_GPIO>;
  514. };
  515. gpio@14 {
  516. reg = <14>;
  517. type = <PCA955X_TYPE_GPIO>;
  518. };
  519. gpio@15 {
  520. reg = <15>;
  521. type = <PCA955X_TYPE_GPIO>;
  522. };
  523. };
  524. rtc@32 {
  525. compatible = "epson,rx8900";
  526. reg = <0x32>;
  527. };
  528. eeprom@51 {
  529. compatible = "atmel,24c64";
  530. reg = <0x51>;
  531. };
  532. ucd90160@64 {
  533. compatible = "ti,ucd90160";
  534. reg = <0x64>;
  535. };
  536. };
  537. &i2c12 {
  538. status = "okay";
  539. };
  540. &i2c13 {
  541. status = "okay";
  542. };
  543. &vuart {
  544. status = "okay";
  545. };
  546. &gfx {
  547. status = "okay";
  548. memory-region = <&gfx_memory>;
  549. };
  550. &pinctrl {
  551. aspeed,external-nodes = <&gfx &lhc>;
  552. };
  553. &wdt1 {
  554. aspeed,reset-type = "none";
  555. aspeed,external-signal;
  556. aspeed,ext-push-pull;
  557. aspeed,ext-active-high;
  558. pinctrl-names = "default";
  559. pinctrl-0 = <&pinctrl_wdtrst1_default>;
  560. };
  561. &wdt2 {
  562. aspeed,alt-boot;
  563. };
  564. &ibt {
  565. status = "okay";
  566. };
  567. &adc {
  568. status = "okay";
  569. };
  570. &vhub {
  571. status = "okay";
  572. };
  573. &video {
  574. status = "okay";
  575. memory-region = <&video_engine_memory>;
  576. };
  577. &xdma {
  578. status = "okay";
  579. memory-region = <&vga_memory>;
  580. };
  581. #include "ibm-power9-dual.dtsi"