aspeed-bmc-quanta-q71l.dts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "aspeed-g4.dtsi"
  4. #include <dt-bindings/gpio/aspeed-gpio.h>
  5. / {
  6. model = "Quanta Q71L BMC";
  7. compatible = "quanta,q71l-bmc", "aspeed,ast2400";
  8. aliases {
  9. i2c14 = &i2c_pcie2;
  10. i2c15 = &i2c_pcie3;
  11. i2c16 = &i2c_pcie6;
  12. i2c17 = &i2c_pcie7;
  13. i2c18 = &i2c_pcie1;
  14. i2c19 = &i2c_pcie4;
  15. i2c20 = &i2c_pcie5;
  16. i2c21 = &i2c_pcie8;
  17. i2c22 = &i2c_pcie9;
  18. i2c23 = &i2c_pcie10;
  19. i2c24 = &i2c_ssd1;
  20. i2c25 = &i2c_ssd2;
  21. i2c26 = &i2c_psu4;
  22. i2c27 = &i2c_psu1;
  23. i2c28 = &i2c_psu3;
  24. i2c29 = &i2c_psu2;
  25. };
  26. chosen {
  27. stdout-path = &uart5;
  28. bootargs = "console=ttyS4,115200 earlycon";
  29. };
  30. memory@40000000 {
  31. reg = <0x40000000 0x8000000>;
  32. };
  33. reserved-memory {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. ranges;
  37. vga_memory: framebuffer@47800000 {
  38. no-map;
  39. reg = <0x47800000 0x00800000>; /* 8MB */
  40. };
  41. };
  42. leds {
  43. compatible = "gpio-leds";
  44. heartbeat {
  45. gpios = <&gpio ASPEED_GPIO(B, 0) GPIO_ACTIVE_LOW>;
  46. };
  47. power {
  48. gpios = <&gpio ASPEED_GPIO(B, 2) GPIO_ACTIVE_LOW>;
  49. };
  50. identify {
  51. gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_LOW>;
  52. };
  53. };
  54. iio-hwmon {
  55. compatible = "iio-hwmon";
  56. io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
  57. <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
  58. <&adc 8>, <&adc 9>, <&adc 10>;
  59. };
  60. iio-hwmon-battery {
  61. compatible = "iio-hwmon";
  62. io-channels = <&adc 11>;
  63. };
  64. i2c1mux: i2cmux {
  65. compatible = "i2c-mux-gpio";
  66. #address-cells = <1>;
  67. #size-cells = <0>;
  68. /* mux-gpios = <&sgpio 10 GPIO_ACTIVE_HIGH> */
  69. i2c-parent = <&i2c1>;
  70. };
  71. };
  72. &fmc {
  73. status = "okay";
  74. flash@0 {
  75. status = "okay";
  76. label = "bmc";
  77. m25p,fast-read;
  78. #include "openbmc-flash-layout.dtsi"
  79. };
  80. };
  81. &spi {
  82. status = "okay";
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&pinctrl_spi1_default>;
  85. flash@0 {
  86. status = "okay";
  87. m25p,fast-read;
  88. label = "pnor";
  89. };
  90. };
  91. &pinctrl {
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&pinctrl_vgahs_default &pinctrl_vgavs_default
  94. &pinctrl_ddcclk_default &pinctrl_ddcdat_default>;
  95. };
  96. &p2a {
  97. status = "okay";
  98. memory-region = <&vga_memory>;
  99. };
  100. &ibt {
  101. status = "okay";
  102. };
  103. &lpc_ctrl {
  104. status = "okay";
  105. };
  106. &lpc_snoop {
  107. status = "okay";
  108. snoop-ports = <0x80>;
  109. };
  110. &mac0 {
  111. status = "okay";
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&pinctrl_rmii1_default>;
  114. use-ncsi;
  115. };
  116. &mac1 {
  117. status = "okay";
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
  120. };
  121. &uart1 {
  122. status = "okay";
  123. };
  124. &uart5 {
  125. status = "okay";
  126. };
  127. &i2c0 {
  128. status = "okay";
  129. };
  130. &i2c1 {
  131. status = "okay";
  132. /* temp2 inlet */
  133. tmp75@4c {
  134. compatible = "ti,tmp75";
  135. reg = <0x4c>;
  136. };
  137. /* temp3 */
  138. tmp75@4e {
  139. compatible = "ti,tmp75";
  140. reg = <0x4e>;
  141. };
  142. /* temp1 */
  143. tmp75@4f {
  144. compatible = "ti,tmp75";
  145. reg = <0x4f>;
  146. };
  147. /* Baseboard FRU */
  148. eeprom@54 {
  149. compatible = "atmel,24c64";
  150. reg = <0x54>;
  151. };
  152. /* FP FRU */
  153. eeprom@57 {
  154. compatible = "atmel,24c64";
  155. reg = <0x57>;
  156. };
  157. };
  158. &i2c2 {
  159. status = "okay";
  160. /* 0: PCIe Slot 2,
  161. * Slot 3,
  162. * Slot 6,
  163. * Slot 7
  164. */
  165. i2c-switch@74 {
  166. compatible = "nxp,pca9546";
  167. reg = <0x74>;
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. i2c-mux-idle-disconnect; /* may use mux@77 next. */
  171. i2c_pcie2: i2c@0 {
  172. #address-cells = <1>;
  173. #size-cells = <0>;
  174. reg = <0>;
  175. };
  176. i2c_pcie3: i2c@1 {
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. reg = <1>;
  180. };
  181. i2c_pcie6: i2c@2 {
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. reg = <2>;
  185. };
  186. i2c_pcie7: i2c@3 {
  187. #address-cells = <1>;
  188. #size-cells = <0>;
  189. reg = <3>;
  190. };
  191. };
  192. /* 0: PCIe Slot 1,
  193. * Slot 4,
  194. * Slot 5,
  195. * Slot 8,
  196. * Slot 9,
  197. * Slot 10,
  198. * SSD 1,
  199. * SSD 2
  200. */
  201. i2c-switch@77 {
  202. compatible = "nxp,pca9548";
  203. #address-cells = <1>;
  204. #size-cells = <0>;
  205. reg = <0x77>;
  206. i2c-mux-idle-disconnect; /* may use mux@74 next. */
  207. i2c_pcie1: i2c@0 {
  208. #address-cells = <1>;
  209. #size-cells = <0>;
  210. reg = <0>;
  211. };
  212. i2c_pcie4: i2c@1 {
  213. #address-cells = <1>;
  214. #size-cells = <0>;
  215. reg = <1>;
  216. };
  217. i2c_pcie5: i2c@2 {
  218. #address-cells = <1>;
  219. #size-cells = <0>;
  220. reg = <2>;
  221. };
  222. i2c_pcie8: i2c@3 {
  223. #address-cells = <1>;
  224. #size-cells = <0>;
  225. reg = <3>;
  226. };
  227. i2c_pcie9: i2c@4 {
  228. #address-cells = <1>;
  229. #size-cells = <0>;
  230. reg = <4>;
  231. };
  232. i2c_pcie10: i2c@5 {
  233. #address-cells = <1>;
  234. #size-cells = <0>;
  235. reg = <5>;
  236. };
  237. i2c_ssd1: i2c@6 {
  238. #address-cells = <1>;
  239. #size-cells = <0>;
  240. reg = <6>;
  241. };
  242. i2c_ssd2: i2c@7 {
  243. #address-cells = <1>;
  244. #size-cells = <0>;
  245. reg = <7>;
  246. };
  247. };
  248. };
  249. &i2c3 {
  250. status = "okay";
  251. /* BIOS FRU */
  252. eeprom@56 {
  253. compatible = "atmel,24c64";
  254. reg = <0x56>;
  255. };
  256. };
  257. &i2c4 {
  258. status = "okay";
  259. };
  260. &i2c5 {
  261. status = "okay";
  262. };
  263. &i2c6 {
  264. status = "okay";
  265. };
  266. &i2c7 {
  267. status = "okay";
  268. /* 0: PSU4
  269. * PSU1
  270. * PSU3
  271. * PSU2
  272. */
  273. i2c-switch@70 {
  274. compatible = "nxp,pca9546";
  275. reg = <0x70>;
  276. #address-cells = <1>;
  277. #size-cells = <0>;
  278. i2c_psu4: i2c@0 {
  279. #address-cells = <1>;
  280. #size-cells = <0>;
  281. reg = <0>;
  282. psu@59 {
  283. compatible = "pmbus";
  284. reg = <0x59>;
  285. };
  286. };
  287. i2c_psu1: i2c@1 {
  288. #address-cells = <1>;
  289. #size-cells = <0>;
  290. reg = <1>;
  291. psu@58 {
  292. compatible = "pmbus";
  293. reg = <0x58>;
  294. };
  295. };
  296. i2c_psu3: i2c@2 {
  297. #address-cells = <1>;
  298. #size-cells = <0>;
  299. reg = <2>;
  300. psu@58 {
  301. compatible = "pmbus";
  302. reg = <0x58>;
  303. };
  304. };
  305. i2c_psu2: i2c@3 {
  306. #address-cells = <1>;
  307. #size-cells = <0>;
  308. reg = <3>;
  309. psu@59 {
  310. compatible = "pmbus";
  311. reg = <0x59>;
  312. };
  313. };
  314. };
  315. /* PDB FRU */
  316. eeprom@52 {
  317. compatible = "atmel,24c64";
  318. reg = <0x52>;
  319. };
  320. };
  321. &i2c8 {
  322. status = "okay";
  323. /* BMC FRU */
  324. eeprom@50 {
  325. compatible = "atmel,24c64";
  326. reg = <0x50>;
  327. };
  328. };
  329. &vuart {
  330. status = "okay";
  331. };
  332. &wdt2 {
  333. status = "okay";
  334. };
  335. &adc {
  336. status = "okay";
  337. };
  338. &pwm_tacho {
  339. status = "okay";
  340. pinctrl-names = "default";
  341. pinctrl-0 = <&pinctrl_pwm0_default
  342. &pinctrl_pwm1_default
  343. &pinctrl_pwm2_default
  344. &pinctrl_pwm3_default>;
  345. fan@0 {
  346. reg = <0x00>;
  347. aspeed,fan-tach-ch = /bits/ 8 <0x00>;
  348. };
  349. fan@1 {
  350. reg = <0x01>;
  351. aspeed,fan-tach-ch = /bits/ 8 <0x01>;
  352. };
  353. fan@2 {
  354. reg = <0x02>;
  355. aspeed,fan-tach-ch = /bits/ 8 <0x02>;
  356. };
  357. fan@3 {
  358. reg = <0x03>;
  359. aspeed,fan-tach-ch = /bits/ 8 <0x03>;
  360. };
  361. fan@4 {
  362. reg = <0x00>;
  363. aspeed,fan-tach-ch = /bits/ 8 <0x04>;
  364. };
  365. fan@5 {
  366. reg = <0x01>;
  367. aspeed,fan-tach-ch = /bits/ 8 <0x05>;
  368. };
  369. fan@6 {
  370. reg = <0x02>;
  371. aspeed,fan-tach-ch = /bits/ 8 <0x06>;
  372. };
  373. fan@7 {
  374. reg = <0x03>;
  375. aspeed,fan-tach-ch = /bits/ 8 <0x07>;
  376. };
  377. };
  378. &i2c1mux {
  379. i2c@0 {
  380. reg = <0>;
  381. #address-cells = <1>;
  382. #size-cells = <0>;
  383. /* Memory Riser 1 FRU */
  384. eeprom@50 {
  385. compatible = "atmel,24c02";
  386. reg = <0x50>;
  387. };
  388. /* Memory Riser 2 FRU */
  389. eeprom@51 {
  390. compatible = "atmel,24c02";
  391. reg = <0x51>;
  392. };
  393. /* Memory Riser 3 FRU */
  394. eeprom@52 {
  395. compatible = "atmel,24c02";
  396. reg = <0x52>;
  397. };
  398. /* Memory Riser 4 FRU */
  399. eeprom@53 {
  400. compatible = "atmel,24c02";
  401. reg = <0x53>;
  402. };
  403. };
  404. i2c@1 {
  405. reg = <1>;
  406. #address-cells = <1>;
  407. #size-cells = <0>;
  408. /* Memory Riser 5 FRU */
  409. eeprom@50 {
  410. compatible = "atmel,24c02";
  411. reg = <0x50>;
  412. };
  413. /* Memory Riser 6 FRU */
  414. eeprom@51 {
  415. compatible = "atmel,24c02";
  416. reg = <0x51>;
  417. };
  418. /* Memory Riser 7 FRU */
  419. eeprom@52 {
  420. compatible = "atmel,24c02";
  421. reg = <0x52>;
  422. };
  423. /* Memory Riser 8 FRU */
  424. eeprom@53 {
  425. compatible = "atmel,24c02";
  426. reg = <0x53>;
  427. };
  428. };
  429. };