aspeed-bmc-facebook-bletchley.dts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // Copyright (c) 2021 Facebook Inc.
  3. /dts-v1/;
  4. #include "aspeed-g6.dtsi"
  5. #include <dt-bindings/gpio/aspeed-gpio.h>
  6. #include <dt-bindings/usb/pd.h>
  7. #include <dt-bindings/leds/leds-pca955x.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/i2c/i2c.h>
  10. / {
  11. model = "Facebook Bletchley BMC";
  12. compatible = "facebook,bletchley-bmc", "aspeed,ast2600";
  13. aliases {
  14. serial4 = &uart5;
  15. };
  16. chosen {
  17. bootargs = "console=ttyS4,57600n8";
  18. };
  19. memory@80000000 {
  20. device_type = "memory";
  21. reg = <0x80000000 0x80000000>;
  22. };
  23. iio-hwmon {
  24. compatible = "iio-hwmon";
  25. io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>,
  26. <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
  27. <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>,
  28. <&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>;
  29. };
  30. spi1_gpio: spi1-gpio {
  31. compatible = "spi-gpio";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. gpio-sck = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
  35. gpio-mosi = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
  36. gpio-miso = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
  37. num-chipselects = <1>;
  38. cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
  39. tpmdev@0 {
  40. compatible = "tcg,tpm_tis-spi";
  41. spi-max-frequency = <33000000>;
  42. reg = <0>;
  43. };
  44. };
  45. switchphy: ethernet-phy@0 {
  46. // Fixed link
  47. };
  48. front_gpio_leds {
  49. compatible = "gpio-leds";
  50. sys_log_id {
  51. default-state = "off";
  52. gpios = <&front_leds 0 GPIO_ACTIVE_HIGH>;
  53. };
  54. };
  55. fan_gpio_leds {
  56. compatible = "gpio-leds";
  57. fan0_blue {
  58. retain-state-shutdown;
  59. default-state = "on";
  60. gpios = <&fan_leds 8 GPIO_ACTIVE_HIGH>;
  61. };
  62. fan1_blue {
  63. retain-state-shutdown;
  64. default-state = "on";
  65. gpios = <&fan_leds 9 GPIO_ACTIVE_HIGH>;
  66. };
  67. fan2_blue {
  68. retain-state-shutdown;
  69. default-state = "on";
  70. gpios = <&fan_leds 10 GPIO_ACTIVE_HIGH>;
  71. };
  72. fan3_blue {
  73. retain-state-shutdown;
  74. default-state = "on";
  75. gpios = <&fan_leds 11 GPIO_ACTIVE_HIGH>;
  76. };
  77. fan0_amber {
  78. retain-state-shutdown;
  79. default-state = "off";
  80. gpios = <&fan_leds 12 GPIO_ACTIVE_HIGH>;
  81. };
  82. fan1_amber {
  83. retain-state-shutdown;
  84. default-state = "off";
  85. gpios = <&fan_leds 13 GPIO_ACTIVE_HIGH>;
  86. };
  87. fan2_amber {
  88. retain-state-shutdown;
  89. default-state = "off";
  90. gpios = <&fan_leds 14 GPIO_ACTIVE_HIGH>;
  91. };
  92. fan3_amber {
  93. retain-state-shutdown;
  94. default-state = "off";
  95. gpios = <&fan_leds 15 GPIO_ACTIVE_HIGH>;
  96. };
  97. };
  98. sled1_gpio_leds {
  99. compatible = "gpio-leds";
  100. sled1_amber {
  101. retain-state-shutdown;
  102. default-state = "keep";
  103. gpios = <&sled1_leds 0 GPIO_ACTIVE_LOW>;
  104. };
  105. sled1_blue {
  106. retain-state-shutdown;
  107. default-state = "keep";
  108. gpios = <&sled1_leds 1 GPIO_ACTIVE_LOW>;
  109. };
  110. };
  111. sled2_gpio_leds {
  112. compatible = "gpio-leds";
  113. sled2_amber {
  114. retain-state-shutdown;
  115. default-state = "keep";
  116. gpios = <&sled2_leds 0 GPIO_ACTIVE_LOW>;
  117. };
  118. sled2_blue {
  119. retain-state-shutdown;
  120. default-state = "keep";
  121. gpios = <&sled2_leds 1 GPIO_ACTIVE_LOW>;
  122. };
  123. };
  124. sled3_gpio_leds {
  125. compatible = "gpio-leds";
  126. sled3_amber {
  127. retain-state-shutdown;
  128. default-state = "keep";
  129. gpios = <&sled3_leds 0 GPIO_ACTIVE_LOW>;
  130. };
  131. sled3_blue {
  132. retain-state-shutdown;
  133. default-state = "keep";
  134. gpios = <&sled3_leds 1 GPIO_ACTIVE_LOW>;
  135. };
  136. };
  137. sled4_gpio_leds {
  138. compatible = "gpio-leds";
  139. sled4_amber {
  140. retain-state-shutdown;
  141. default-state = "keep";
  142. gpios = <&sled4_leds 0 GPIO_ACTIVE_LOW>;
  143. };
  144. sled4_blue {
  145. retain-state-shutdown;
  146. default-state = "keep";
  147. gpios = <&sled4_leds 1 GPIO_ACTIVE_LOW>;
  148. };
  149. };
  150. sled5_gpio_leds {
  151. compatible = "gpio-leds";
  152. sled5_amber {
  153. retain-state-shutdown;
  154. default-state = "keep";
  155. gpios = <&sled5_leds 0 GPIO_ACTIVE_LOW>;
  156. };
  157. sled5_blue {
  158. retain-state-shutdown;
  159. default-state = "keep";
  160. gpios = <&sled5_leds 1 GPIO_ACTIVE_LOW>;
  161. };
  162. };
  163. sled6_gpio_leds {
  164. compatible = "gpio-leds";
  165. sled6_amber {
  166. retain-state-shutdown;
  167. default-state = "keep";
  168. gpios = <&sled6_leds 0 GPIO_ACTIVE_LOW>;
  169. };
  170. sled6_blue {
  171. retain-state-shutdown;
  172. default-state = "keep";
  173. gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>;
  174. };
  175. };
  176. };
  177. &mac2 {
  178. status = "okay";
  179. phy-mode = "rgmii";
  180. phy-handle = <&switchphy>;
  181. pinctrl-names = "default";
  182. pinctrl-0 = <&pinctrl_rgmii3_default>;
  183. fixed-link {
  184. speed = <1000>;
  185. full-duplex;
  186. };
  187. };
  188. &fmc {
  189. status = "okay";
  190. flash@0 {
  191. status = "okay";
  192. m25p,fast-read;
  193. label = "bmc";
  194. spi-max-frequency = <50000000>;
  195. #include "openbmc-flash-layout-128.dtsi"
  196. };
  197. flash@1 {
  198. status = "okay";
  199. m25p,fast-read;
  200. label = "flash1";
  201. spi-max-frequency = <50000000>;
  202. };
  203. };
  204. &spi2 {
  205. status = "okay";
  206. pinctrl-names = "default";
  207. pinctrl-0 = <&pinctrl_spi2_default>;
  208. flash@0 {
  209. status = "okay";
  210. m25p,fast-read;
  211. label = "pnor";
  212. spi-max-frequency = <50000000>;
  213. };
  214. };
  215. &i2c0 {
  216. status = "okay";
  217. ina230@45 {
  218. compatible = "ti,ina230";
  219. reg = <0x45>;
  220. shunt-resistor = <2000>;
  221. };
  222. mp5023@40 {
  223. compatible = "mps,mp5023";
  224. reg = <0x40>;
  225. };
  226. tmp421@4f {
  227. compatible = "ti,tmp421";
  228. reg = <0x4f>;
  229. };
  230. sled1_ioexp41: pca9536@41 {
  231. compatible = "nxp,pca9536";
  232. reg = <0x41>;
  233. gpio-controller;
  234. #gpio-cells = <2>;
  235. gpio-line-names =
  236. "SLED1_SWD_MUX", "SLED1_XRES_SWD_N",
  237. "SLED1_CLKREQ_N", "SLED1_PCIE_PWR_EN";
  238. };
  239. sled1_ioexp: pca9539@76 {
  240. compatible = "nxp,pca9539";
  241. reg = <0x76>;
  242. #address-cells = <1>;
  243. #size-cells = <0>;
  244. gpio-controller;
  245. #gpio-cells = <2>;
  246. interrupt-parent = <&gpio0>;
  247. interrupts = <ASPEED_GPIO(M, 0) IRQ_TYPE_LEVEL_LOW>;
  248. gpio-line-names =
  249. "SLED1_MS_DETECT1","SLED1_VBUS_BMC_EN","SLED1_INA230_ALERT","SLED1_P12V_STBY_ALERT",
  250. "SLED1_SSD_ALERT","SLED1_MS_DETECT0","SLED1_RST_CCG5","SLED1_FUSB302_INT",
  251. "SLED1_MD_STBY_RESET","SLED1_MD_IOEXP_EN_FAULT","SLED1_MD_DIR","SLED1_MD_DECAY",
  252. "SLED1_MD_MODE1","SLED1_MD_MODE2","SLED1_MD_MODE3","power-host1";
  253. };
  254. sled1_leds: pca9552@67 {
  255. compatible = "nxp,pca9552";
  256. reg = <0x67>;
  257. #address-cells = <1>;
  258. #size-cells = <0>;
  259. gpio-controller;
  260. #gpio-cells = <2>;
  261. gpio-line-names =
  262. "led-sled1-amber","led-sled1-blue","SLED1_RST_IOEXP","SLED1_MD_REF_PWM",
  263. "","","","",
  264. "","","","",
  265. "","","","";
  266. };
  267. sled1_fusb302: typec-portc@22 {
  268. compatible = "fcs,fusb302";
  269. reg = <0x22>;
  270. connector {
  271. compatible = "usb-c-connector";
  272. label = "USB-C";
  273. power-role = "dual";
  274. try-power-role = "sink";
  275. data-role = "dual";
  276. source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
  277. sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
  278. PDO_VAR(3000, 12000, 3000)
  279. PDO_PPS_APDO(3000, 11000, 3000)>;
  280. op-sink-microwatt = <10000000>;
  281. };
  282. };
  283. eeprom@54 {
  284. compatible = "atmel,24c64";
  285. reg = <0x54>;
  286. };
  287. };
  288. &i2c1 {
  289. status = "okay";
  290. ina230@45 {
  291. compatible = "ti,ina230";
  292. reg = <0x45>;
  293. shunt-resistor = <2000>;
  294. };
  295. mp5023@40 {
  296. compatible = "mps,mp5023";
  297. reg = <0x40>;
  298. };
  299. tmp421@4f {
  300. compatible = "ti,tmp421";
  301. reg = <0x4f>;
  302. };
  303. sled2_ioexp41: pca9536@41 {
  304. compatible = "nxp,pca9536";
  305. reg = <0x41>;
  306. gpio-controller;
  307. #gpio-cells = <2>;
  308. gpio-line-names =
  309. "SLED2_SWD_MUX", "SLED2_XRES_SWD_N",
  310. "SLED2_CLKREQ_N", "SLED2_PCIE_PWR_EN";
  311. };
  312. sled2_ioexp: pca9539@76 {
  313. compatible = "nxp,pca9539";
  314. reg = <0x76>;
  315. #address-cells = <1>;
  316. #size-cells = <0>;
  317. gpio-controller;
  318. #gpio-cells = <2>;
  319. interrupt-parent = <&gpio0>;
  320. interrupts = <ASPEED_GPIO(M, 1) IRQ_TYPE_LEVEL_LOW>;
  321. gpio-line-names =
  322. "SLED2_MS_DETECT1","SLED2_VBUS_BMC_EN","SLED2_INA230_ALERT","SLED2_P12V_STBY_ALERT",
  323. "SLED2_SSD_ALERT","SLED2_MS_DETECT0","SLED2_RST_CCG5","SLED2_FUSB302_INT",
  324. "SLED2_MD_STBY_RESET","SLED2_MD_IOEXP_EN_FAULT","SLED2_MD_DIR","SLED2_MD_DECAY",
  325. "SLED2_MD_MODE1","SLED2_MD_MODE2","SLED2_MD_MODE3","power-host2";
  326. };
  327. sled2_leds: pca9552@67 {
  328. compatible = "nxp,pca9552";
  329. reg = <0x67>;
  330. #address-cells = <1>;
  331. #size-cells = <0>;
  332. gpio-controller;
  333. #gpio-cells = <2>;
  334. gpio-line-names =
  335. "led-sled2-amber","led-sled2-blue","SLED2_RST_IOEXP","SLED2_MD_REF_PWM",
  336. "","","","",
  337. "","","","",
  338. "","","","";
  339. };
  340. sled2_fusb302: typec-portc@22 {
  341. compatible = "fcs,fusb302";
  342. reg = <0x22>;
  343. connector {
  344. compatible = "usb-c-connector";
  345. label = "USB-C";
  346. power-role = "dual";
  347. try-power-role = "sink";
  348. data-role = "dual";
  349. source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
  350. sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
  351. PDO_VAR(3000, 12000, 3000)
  352. PDO_PPS_APDO(3000, 11000, 3000)>;
  353. op-sink-microwatt = <10000000>;
  354. };
  355. };
  356. eeprom@54 {
  357. compatible = "atmel,24c64";
  358. reg = <0x54>;
  359. };
  360. };
  361. &i2c2 {
  362. status = "okay";
  363. ina230@45 {
  364. compatible = "ti,ina230";
  365. reg = <0x45>;
  366. shunt-resistor = <2000>;
  367. };
  368. mp5023@40 {
  369. compatible = "mps,mp5023";
  370. reg = <0x40>;
  371. };
  372. tmp421@4f {
  373. compatible = "ti,tmp421";
  374. reg = <0x4f>;
  375. };
  376. sled3_ioexp41: pca9536@41 {
  377. compatible = "nxp,pca9536";
  378. reg = <0x41>;
  379. gpio-controller;
  380. #gpio-cells = <2>;
  381. gpio-line-names =
  382. "SLED3_SWD_MUX", "SLED3_XRES_SWD_N",
  383. "SLED3_CLKREQ_N", "SLED3_PCIE_PWR_EN";
  384. };
  385. sled3_ioexp: pca9539@76 {
  386. compatible = "nxp,pca9539";
  387. reg = <0x76>;
  388. #address-cells = <1>;
  389. #size-cells = <0>;
  390. gpio-controller;
  391. #gpio-cells = <2>;
  392. interrupt-parent = <&gpio0>;
  393. interrupts = <ASPEED_GPIO(M, 2) IRQ_TYPE_LEVEL_LOW>;
  394. gpio-line-names =
  395. "SLED3_MS_DETECT1","SLED3_VBUS_BMC_EN","SLED3_INA230_ALERT","SLED3_P12V_STBY_ALERT",
  396. "SLED3_SSD_ALERT","SLED3_MS_DETECT0","SLED3_RST_CCG5","SLED3_FUSB302_INT",
  397. "SLED3_MD_STBY_RESET","SLED3_MD_IOEXP_EN_FAULT","SLED3_MD_DIR","SLED3_MD_DECAY",
  398. "SLED3_MD_MODE1","SLED3_MD_MODE2","SLED3_MD_MODE3","power-host3";
  399. };
  400. sled3_leds: pca9552@67 {
  401. compatible = "nxp,pca9552";
  402. reg = <0x67>;
  403. #address-cells = <1>;
  404. #size-cells = <0>;
  405. gpio-controller;
  406. #gpio-cells = <2>;
  407. gpio-line-names =
  408. "led-sled3-amber","led-sled3-blue","SLED3_RST_IOEXP","SLED3_MD_REF_PWM",
  409. "","","","",
  410. "","","","",
  411. "","","","";
  412. };
  413. sled3_fusb302: typec-portc@22 {
  414. compatible = "fcs,fusb302";
  415. reg = <0x22>;
  416. connector {
  417. compatible = "usb-c-connector";
  418. label = "USB-C";
  419. power-role = "dual";
  420. try-power-role = "sink";
  421. data-role = "dual";
  422. source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
  423. sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
  424. PDO_VAR(3000, 12000, 3000)
  425. PDO_PPS_APDO(3000, 11000, 3000)>;
  426. op-sink-microwatt = <10000000>;
  427. };
  428. };
  429. eeprom@54 {
  430. compatible = "atmel,24c64";
  431. reg = <0x54>;
  432. };
  433. };
  434. &i2c3 {
  435. status = "okay";
  436. ina230@45 {
  437. compatible = "ti,ina230";
  438. reg = <0x45>;
  439. shunt-resistor = <2000>;
  440. };
  441. mp5023@40 {
  442. compatible = "mps,mp5023";
  443. reg = <0x40>;
  444. };
  445. tmp421@4f {
  446. compatible = "ti,tmp421";
  447. reg = <0x4f>;
  448. };
  449. sled4_ioexp41: pca9536@41 {
  450. compatible = "nxp,pca9536";
  451. reg = <0x41>;
  452. gpio-controller;
  453. #gpio-cells = <2>;
  454. gpio-line-names =
  455. "SLED4_SWD_MUX", "SLED4_XRES_SWD_N",
  456. "SLED4_CLKREQ_N", "SLED4_PCIE_PWR_EN";
  457. };
  458. sled4_ioexp: pca9539@76 {
  459. compatible = "nxp,pca9539";
  460. reg = <0x76>;
  461. #address-cells = <1>;
  462. #size-cells = <0>;
  463. gpio-controller;
  464. #gpio-cells = <2>;
  465. interrupt-parent = <&gpio0>;
  466. interrupts = <ASPEED_GPIO(M, 3) IRQ_TYPE_LEVEL_LOW>;
  467. gpio-line-names =
  468. "SLED4_MS_DETECT1","SLED4_VBUS_BMC_EN","SLED4_INA230_ALERT","SLED4_P12V_STBY_ALERT",
  469. "SLED4_SSD_ALERT","SLED4_MS_DETECT0","SLED4_RST_CCG5","SLED4_FUSB302_INT",
  470. "SLED4_MD_STBY_RESET","SLED4_MD_IOEXP_EN_FAULT","SLED4_MD_DIR","SLED4_MD_DECAY",
  471. "SLED4_MD_MODE1","SLED4_MD_MODE2","SLED4_MD_MODE3","power-host4";
  472. };
  473. sled4_leds: pca9552@67 {
  474. compatible = "nxp,pca9552";
  475. reg = <0x67>;
  476. #address-cells = <1>;
  477. #size-cells = <0>;
  478. gpio-controller;
  479. #gpio-cells = <2>;
  480. gpio-line-names =
  481. "led-sled4-amber","led-sled4-blue","SLED4_RST_IOEXP","SLED4_MD_REF_PWM",
  482. "","","","",
  483. "","","","",
  484. "","","","";
  485. };
  486. sled4_fusb302: typec-portc@22 {
  487. compatible = "fcs,fusb302";
  488. reg = <0x22>;
  489. connector {
  490. compatible = "usb-c-connector";
  491. label = "USB-C";
  492. power-role = "dual";
  493. try-power-role = "sink";
  494. data-role = "dual";
  495. source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
  496. sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
  497. PDO_VAR(3000, 12000, 3000)
  498. PDO_PPS_APDO(3000, 11000, 3000)>;
  499. op-sink-microwatt = <10000000>;
  500. };
  501. };
  502. eeprom@54 {
  503. compatible = "atmel,24c64";
  504. reg = <0x54>;
  505. };
  506. };
  507. &i2c4 {
  508. status = "okay";
  509. ina230@45 {
  510. compatible = "ti,ina230";
  511. reg = <0x45>;
  512. shunt-resistor = <2000>;
  513. };
  514. mp5023@40 {
  515. compatible = "mps,mp5023";
  516. reg = <0x40>;
  517. };
  518. tmp421@4f {
  519. compatible = "ti,tmp421";
  520. reg = <0x4f>;
  521. };
  522. sled5_ioexp41: pca9536@41 {
  523. compatible = "nxp,pca9536";
  524. reg = <0x41>;
  525. gpio-controller;
  526. #gpio-cells = <2>;
  527. gpio-line-names =
  528. "SLED5_SWD_MUX", "SLED5_XRES_SWD_N",
  529. "SLED5_CLKREQ_N", "SLED5_PCIE_PWR_EN";
  530. };
  531. sled5_ioexp: pca9539@76 {
  532. compatible = "nxp,pca9539";
  533. reg = <0x76>;
  534. #address-cells = <1>;
  535. #size-cells = <0>;
  536. gpio-controller;
  537. #gpio-cells = <2>;
  538. interrupt-parent = <&gpio0>;
  539. interrupts = <ASPEED_GPIO(M, 4) IRQ_TYPE_LEVEL_LOW>;
  540. gpio-line-names =
  541. "SLED5_MS_DETECT1","SLED5_VBUS_BMC_EN","SLED5_INA230_ALERT","SLED5_P12V_STBY_ALERT",
  542. "SLED5_SSD_ALERT","SLED5_MS_DETECT0","SLED5_RST_CCG5","SLED5_FUSB302_INT",
  543. "SLED5_MD_STBY_RESET","SLED5_MD_IOEXP_EN_FAULT","SLED5_MD_DIR","SLED5_MD_DECAY",
  544. "SLED5_MD_MODE1","SLED5_MD_MODE2","SLED5_MD_MODE3","power-host5";
  545. };
  546. sled5_leds: pca9552@67 {
  547. compatible = "nxp,pca9552";
  548. reg = <0x67>;
  549. #address-cells = <1>;
  550. #size-cells = <0>;
  551. gpio-controller;
  552. #gpio-cells = <2>;
  553. gpio-line-names =
  554. "led-sled5-amber","led-sled5-blue","SLED5_RST_IOEXP","SLED5_MD_REF_PWM",
  555. "","","","",
  556. "","","","",
  557. "","","","";
  558. };
  559. sled5_fusb302: typec-portc@22 {
  560. compatible = "fcs,fusb302";
  561. reg = <0x22>;
  562. connector {
  563. compatible = "usb-c-connector";
  564. label = "USB-C";
  565. power-role = "dual";
  566. try-power-role = "sink";
  567. data-role = "dual";
  568. source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
  569. sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
  570. PDO_VAR(3000, 12000, 3000)
  571. PDO_PPS_APDO(3000, 11000, 3000)>;
  572. op-sink-microwatt = <10000000>;
  573. };
  574. };
  575. eeprom@54 {
  576. compatible = "atmel,24c64";
  577. reg = <0x54>;
  578. };
  579. };
  580. &i2c5 {
  581. status = "okay";
  582. ina230@45 {
  583. compatible = "ti,ina230";
  584. reg = <0x45>;
  585. shunt-resistor = <2000>;
  586. };
  587. mp5023@40 {
  588. compatible = "mps,mp5023";
  589. reg = <0x40>;
  590. };
  591. tmp421@4f {
  592. compatible = "ti,tmp421";
  593. reg = <0x4f>;
  594. };
  595. sled6_ioexp41: pca9536@41 {
  596. compatible = "nxp,pca9536";
  597. reg = <0x41>;
  598. gpio-controller;
  599. #gpio-cells = <2>;
  600. gpio-line-names =
  601. "SLED6_SWD_MUX", "SLED6_XRES_SWD_N",
  602. "SLED6_CLKREQ_N", "SLED6_PCIE_PWR_EN";
  603. };
  604. sled6_ioexp: pca9539@76 {
  605. compatible = "nxp,pca9539";
  606. reg = <0x76>;
  607. #address-cells = <1>;
  608. #size-cells = <0>;
  609. gpio-controller;
  610. #gpio-cells = <2>;
  611. interrupt-parent = <&gpio0>;
  612. interrupts = <ASPEED_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>;
  613. gpio-line-names =
  614. "SLED6_MS_DETECT1","SLED6_VBUS_BMC_EN","SLED6_INA230_ALERT","SLED6_P12V_STBY_ALERT",
  615. "SLED6_SSD_ALERT","SLED6_MS_DETECT0","SLED6_RST_CCG5","SLED6_FUSB302_INT",
  616. "SLED6_MD_STBY_RESET","SLED6_MD_IOEXP_EN_FAULT","SLED6_MD_DIR","SLED6_MD_DECAY",
  617. "SLED6_MD_MODE1","SLED6_MD_MODE2","SLED6_MD_MODE3","power-host6";
  618. };
  619. sled6_leds: pca9552@67 {
  620. compatible = "nxp,pca9552";
  621. reg = <0x67>;
  622. #address-cells = <1>;
  623. #size-cells = <0>;
  624. gpio-controller;
  625. #gpio-cells = <2>;
  626. gpio-line-names =
  627. "led-sled6-amber","led-sled6-blue","SLED6_RST_IOEXP","SLED6_MD_REF_PWM",
  628. "","","","",
  629. "","","","",
  630. "","","","";
  631. };
  632. sled6_fusb302: typec-portc@22 {
  633. compatible = "fcs,fusb302";
  634. reg = <0x22>;
  635. connector {
  636. compatible = "usb-c-connector";
  637. label = "USB-C";
  638. power-role = "dual";
  639. try-power-role = "sink";
  640. data-role = "dual";
  641. source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
  642. sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
  643. PDO_VAR(3000, 12000, 3000)
  644. PDO_PPS_APDO(3000, 11000, 3000)>;
  645. op-sink-microwatt = <10000000>;
  646. };
  647. };
  648. eeprom@54 {
  649. compatible = "atmel,24c64";
  650. reg = <0x54>;
  651. };
  652. };
  653. &i2c6 {
  654. status = "okay";
  655. eeprom@56 {
  656. compatible = "atmel,24c64";
  657. reg = <0x56>;
  658. };
  659. rtc@51 {
  660. /* in-chip rtc disabled, use external rtc (battery-backed) */
  661. compatible = "nxp,pcf85263";
  662. reg = <0x51>;
  663. };
  664. };
  665. &i2c7 {
  666. status = "okay";
  667. eeprom@54 {
  668. compatible = "atmel,24c64";
  669. reg = <0x54>;
  670. };
  671. };
  672. &i2c9 {
  673. status = "okay";
  674. tmp421@4f {
  675. compatible = "ti,tmp421";
  676. reg = <0x4f>;
  677. };
  678. };
  679. &i2c10 {
  680. status = "okay";
  681. tmp421@4f {
  682. compatible = "ti,tmp421";
  683. reg = <0x4f>;
  684. };
  685. front_leds: pca9552@67 {
  686. compatible = "nxp,pca9552";
  687. reg = <0x67>;
  688. #address-cells = <1>;
  689. #size-cells = <0>;
  690. gpio-controller;
  691. #gpio-cells = <2>;
  692. gpio-line-names =
  693. "led-fault-identify","power-p5v-stby-good",
  694. "power-p1v0-dvdd-good","power-p1v0-avdd-good",
  695. "","","","",
  696. "","","","",
  697. "","","","";
  698. };
  699. };
  700. &i2c12 {
  701. status = "okay";
  702. adm1278@11 {
  703. compatible = "adi,adm1278";
  704. reg = <0x11>;
  705. shunt-resistor-micro-ohms = <300>;
  706. adi,volt-curr-sample-average = <128>;
  707. adi,power-sample-average = <128>;
  708. };
  709. tmp421@4c {
  710. compatible = "ti,tmp421";
  711. reg = <0x4c>;
  712. };
  713. tmp421@4d {
  714. compatible = "ti,tmp421";
  715. reg = <0x4d>;
  716. };
  717. fan_leds: pca9552@67 {
  718. compatible = "nxp,pca9552";
  719. reg = <0x67>;
  720. #address-cells = <1>;
  721. #size-cells = <0>;
  722. gpio-controller;
  723. #gpio-cells = <2>;
  724. gpio-line-names =
  725. "presence-fan0","presence-fan1",
  726. "presence-fan2","presence-fan3",
  727. "power-fan0-good","power-fan1-good",
  728. "power-fan2-good","power-fan3-good",
  729. "","","","",
  730. "","","","";
  731. };
  732. };
  733. &i2c13 {
  734. multi-master;
  735. aspeed,hw-timeout-ms = <1000>;
  736. status = "okay";
  737. //USB Debug Connector
  738. ipmb13@10 {
  739. compatible = "ipmb-dev";
  740. reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
  741. i2c-protocol;
  742. };
  743. };
  744. &gpio0 {
  745. gpio-line-names =
  746. /*A0-A7*/ "","","","","","","","",
  747. /*B0-B7*/ "FUSB302_SLED1_INT_N","FUSB302_SLED2_INT_N",
  748. "SEL_SPI2_MUX","SPI2_MUX1",
  749. "SPI2_MUX2","SPI2_MUX3",
  750. "","FUSB302_SLED3_INT_N",
  751. /*C0-C7*/ "","","","","","","","",
  752. /*D0-D7*/ "","","","","","","","",
  753. /*E0-E7*/ "","","","","","","","",
  754. /*F0-F7*/ "BMC_SLED1_STCK","BMC_SLED2_STCK",
  755. "BMC_SLED3_STCK","BMC_SLED4_STCK",
  756. "BMC_SLED5_STCK","BMC_SLED6_STCK",
  757. "","",
  758. /*G0-G7*/ "BSM_FRU_WP","SWITCH_FRU_MUX","","FM_SOL_UART_CH_SEL",
  759. "PWRGD_P1V05_VDDCORE","PWRGD_P1V5_VDD","","",
  760. /*H0-H7*/ "presence-riser1","presence-riser2",
  761. "presence-sled1","presence-sled2",
  762. "presence-sled3","presence-sled4",
  763. "presence-sled5","presence-sled6",
  764. /*I0-I7*/ "REV_ID0","",
  765. "REV_ID1","REV_ID2",
  766. "","BSM_FLASH_WP_STATUS",
  767. "BMC_TPM_PRES_N","FUSB302_SLED6_INT_N",
  768. /*J0-J7*/ "","","","","","","","",
  769. /*K0-K7*/ "","","","","","","","",
  770. /*L0-L7*/ "","","","","","BMC_RTC_INT","","",
  771. /*M0-M7*/ "ALERT_SLED1_N","ALERT_SLED2_N",
  772. "ALERT_SLED3_N","ALERT_SLED4_N",
  773. "ALERT_SLED5_N","ALERT_SLED6_N",
  774. "","",
  775. /*N0-N7*/ "LED_POSTCODE_0","LED_POSTCODE_1",
  776. "LED_POSTCODE_2","LED_POSTCODE_3",
  777. "LED_POSTCODE_4","LED_POSTCODE_5",
  778. "LED_POSTCODE_5","LED_POSTCODE_7",
  779. /*O0-O7*/ "","","","",
  780. "","BOARD_ID0","BOARD_ID1","BOARD_ID2",
  781. /*P0-P7*/ "","","","","","","","BMC_HEARTBEAT",
  782. /*Q0-Q7*/ "","","","","","","","",
  783. /*R0-R7*/ "","","","","","","","",
  784. /*S0-S7*/ "","","","BAT_DETECT",
  785. "BMC_BT_WP0_N","BMC_BT_WP1_N","","FUSB302_SLED4_INT_N",
  786. /*T0-T7*/ "","","","","","","","",
  787. /*U0-U7*/ "","","","","","","","",
  788. /*V0-V7*/ "PWRGD_CNS_PSU","RST_BMC_MVL_N",
  789. "P12V_AUX_ALERT1_N","PSU_PRSNT",
  790. "USB2_SEL0_A","USB2_SEL1_A",
  791. "USB2_SEL0_B","USB2_SEL1_B",
  792. /*W0-W7*/ "RST_FRONT_IOEXP_N","","","","","","","",
  793. /*X0-X7*/ "","","","","","","","",
  794. /*Y0-Y7*/ "BMC_SELF_HW_RST","BSM_PRSNT_N",
  795. "BSM_FLASH_LATCH_N","FUSB302_SLED5_INT_N",
  796. "","","","",
  797. /*Z0-Z7*/ "","","","","","","","";
  798. };
  799. &adc0 {
  800. vref = <1800>;
  801. status = "okay";
  802. pinctrl-names = "default";
  803. pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
  804. &pinctrl_adc2_default &pinctrl_adc3_default
  805. &pinctrl_adc4_default &pinctrl_adc5_default
  806. &pinctrl_adc6_default &pinctrl_adc7_default>;
  807. };
  808. &adc1 {
  809. vref = <2500>;
  810. status = "okay";
  811. pinctrl-names = "default";
  812. pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default
  813. &pinctrl_adc10_default &pinctrl_adc11_default
  814. &pinctrl_adc12_default &pinctrl_adc13_default
  815. &pinctrl_adc14_default &pinctrl_adc15_default>;
  816. };
  817. &mdio0 {
  818. status = "okay";
  819. /* TODO: Add Marvell 88E6191X */
  820. };
  821. &mdio3 {
  822. status = "okay";
  823. /* TODO: Add Marvell 88X3310 */
  824. };
  825. &ehci0 {
  826. status = "okay";
  827. };