aspeed-bmc-opp-romulus.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /dts-v1/;
  3. #include "aspeed-g5.dtsi"
  4. #include <dt-bindings/gpio/aspeed-gpio.h>
  5. / {
  6. model = "Romulus BMC";
  7. compatible = "ibm,romulus-bmc", "aspeed,ast2500";
  8. chosen {
  9. stdout-path = &uart5;
  10. bootargs = "console=ttyS4,115200 earlycon";
  11. };
  12. memory@80000000 {
  13. reg = <0x80000000 0x20000000>;
  14. };
  15. reserved-memory {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. ranges;
  19. vga_memory: framebuffer@9f000000 {
  20. no-map;
  21. reg = <0x9f000000 0x01000000>; /* 16M */
  22. };
  23. flash_memory: region@98000000 {
  24. no-map;
  25. reg = <0x98000000 0x04000000>; /* 64M */
  26. };
  27. coldfire_memory: codefire_memory@9ef00000 {
  28. reg = <0x9ef00000 0x00100000>;
  29. no-map;
  30. };
  31. gfx_memory: framebuffer {
  32. size = <0x01000000>;
  33. alignment = <0x01000000>;
  34. compatible = "shared-dma-pool";
  35. reusable;
  36. };
  37. video_engine_memory: jpegbuffer {
  38. size = <0x02000000>; /* 32M */
  39. alignment = <0x01000000>;
  40. compatible = "shared-dma-pool";
  41. reusable;
  42. };
  43. };
  44. leds {
  45. compatible = "gpio-leds";
  46. fault {
  47. gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
  48. };
  49. identify {
  50. gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
  51. };
  52. power {
  53. gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
  54. };
  55. };
  56. fsi: gpio-fsi {
  57. compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
  58. #address-cells = <2>;
  59. #size-cells = <0>;
  60. no-gpio-delays;
  61. memory-region = <&coldfire_memory>;
  62. aspeed,sram = <&sram>;
  63. aspeed,cvic = <&cvic>;
  64. clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
  65. data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
  66. mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
  67. enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
  68. trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
  69. };
  70. gpio-keys {
  71. compatible = "gpio-keys";
  72. event-checkstop {
  73. label = "checkstop";
  74. gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
  75. linux,code = <ASPEED_GPIO(J, 2)>;
  76. };
  77. id-button {
  78. label = "id-button";
  79. gpios = <&gpio ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>;
  80. linux,code = <ASPEED_GPIO(Q, 7)>;
  81. };
  82. };
  83. iio-hwmon-battery {
  84. compatible = "iio-hwmon";
  85. io-channels = <&adc 12>;
  86. };
  87. };
  88. &fmc {
  89. status = "okay";
  90. flash@0 {
  91. status = "okay";
  92. m25p,fast-read;
  93. label = "bmc";
  94. spi-max-frequency = <50000000>;
  95. #include "openbmc-flash-layout.dtsi"
  96. };
  97. };
  98. &spi1 {
  99. status = "okay";
  100. pinctrl-names = "default";
  101. pinctrl-0 = <&pinctrl_spi1_default>;
  102. flash@0 {
  103. status = "okay";
  104. m25p,fast-read;
  105. label = "pnor";
  106. spi-max-frequency = <100000000>;
  107. };
  108. };
  109. &lpc_ctrl {
  110. status = "okay";
  111. memory-region = <&flash_memory>;
  112. flash = <&spi1>;
  113. };
  114. &uart1 {
  115. /* Rear RS-232 connector */
  116. status = "okay";
  117. pinctrl-names = "default";
  118. pinctrl-0 = <&pinctrl_txd1_default
  119. &pinctrl_rxd1_default
  120. &pinctrl_nrts1_default
  121. &pinctrl_ndtr1_default
  122. &pinctrl_ndsr1_default
  123. &pinctrl_ncts1_default
  124. &pinctrl_ndcd1_default
  125. &pinctrl_nri1_default>;
  126. };
  127. &uart5 {
  128. status = "okay";
  129. };
  130. &mac0 {
  131. status = "okay";
  132. use-ncsi;
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&pinctrl_rmii1_default>;
  135. clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
  136. <&syscon ASPEED_CLK_MAC1RCLK>;
  137. clock-names = "MACCLK", "RCLK";
  138. };
  139. &i2c1 {
  140. status = "okay";
  141. };
  142. &i2c2 {
  143. status = "okay";
  144. };
  145. &i2c3 {
  146. status = "okay";
  147. };
  148. &i2c4 {
  149. status = "okay";
  150. };
  151. &i2c5 {
  152. status = "okay";
  153. };
  154. &i2c6 {
  155. /* PCIe slot 1 (x8) */
  156. status = "okay";
  157. };
  158. &i2c7 {
  159. /* PCIe slot 2 (x16) */
  160. status = "okay";
  161. };
  162. &i2c8 {
  163. /* PCIe slot 3 (x16) */
  164. status = "okay";
  165. };
  166. &i2c9 {
  167. /* PCIe slot 4 (x16) */
  168. status = "okay";
  169. };
  170. &i2c10 {
  171. /* PCIe slot 5 (x8) */
  172. status = "okay";
  173. };
  174. &i2c11 {
  175. status = "okay";
  176. rtc@32 {
  177. compatible = "epson,rx8900";
  178. reg = <0x32>;
  179. };
  180. };
  181. &i2c12 {
  182. status = "okay";
  183. w83773g@4c {
  184. compatible = "nuvoton,w83773g";
  185. reg = <0x4c>;
  186. };
  187. };
  188. &gpio {
  189. gpio-line-names =
  190. /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","",
  191. /*B0-B7*/ "","","","","","","","",
  192. /*C0-C7*/ "","","","","","","","",
  193. /*D0-D7*/ "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","",
  194. /*E0-E7*/ "","","","","","","","",
  195. /*F0-F7*/ "","","","","","","","",
  196. /*G0-G7*/ "","","","","","","","",
  197. /*H0-H7*/ "","","","","","","","",
  198. /*I0-I7*/ "","","","power-button","","","","",
  199. /*J0-J7*/ "","","checkstop","","","","","",
  200. /*K0-K7*/ "","","","","","","","",
  201. /*L0-L7*/ "","","","","","","","",
  202. /*M0-M7*/ "","","","","","","","",
  203. /*N0-N7*/ "","","led-fault","",
  204. "led-identify","","","",
  205. /*O0-O7*/ "","","","","","","","",
  206. /*P0-P7*/ "","","","","","","","",
  207. /*Q0-Q7*/ "","","","","","","","id-button",
  208. /*R0-R7*/ "","","fsi-trans","","","led-power","","",
  209. /*S0-S7*/ "","","","","","","","seq_cont",
  210. /*T0-T7*/ "","","","","","","","",
  211. /*U0-U7*/ "","","","","","","","",
  212. /*V0-V7*/ "","","","","","","","",
  213. /*W0-W7*/ "","","","","","","","",
  214. /*X0-X7*/ "","","","","","","","",
  215. /*Y0-Y7*/ "","","","","","","","",
  216. /*Z0-Z7*/ "","","","","","","","",
  217. /*AA0-AA7*/ "fsi-clock","","fsi-data","","","","","",
  218. /*AB0-AB7*/ "","","","","","","","",
  219. /*AC0-AC7*/ "","","","","","","","";
  220. nic_func_mode0 {
  221. gpio-hog;
  222. gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
  223. output-low;
  224. };
  225. nic_func_mode1 {
  226. gpio-hog;
  227. gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
  228. output-low;
  229. };
  230. seq_cont {
  231. gpio-hog;
  232. gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
  233. output-low;
  234. };
  235. };
  236. &vuart {
  237. status = "okay";
  238. };
  239. &gfx {
  240. status = "okay";
  241. memory-region = <&gfx_memory>;
  242. };
  243. &pinctrl {
  244. aspeed,external-nodes = <&gfx &lhc>;
  245. };
  246. &pwm_tacho {
  247. status = "okay";
  248. pinctrl-names = "default";
  249. pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
  250. fan@0 {
  251. reg = <0x00>;
  252. aspeed,fan-tach-ch = /bits/ 8 <0x08>;
  253. };
  254. fan@1 {
  255. reg = <0x00>;
  256. aspeed,fan-tach-ch = /bits/ 8 <0x09>;
  257. };
  258. fan@2 {
  259. reg = <0x01>;
  260. aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
  261. };
  262. fan@3 {
  263. reg = <0x01>;
  264. aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
  265. };
  266. fan@4 {
  267. reg = <0x00>;
  268. aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
  269. };
  270. fan@5 {
  271. reg = <0x00>;
  272. aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
  273. };
  274. fan@6 {
  275. reg = <0x01>;
  276. aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
  277. };
  278. };
  279. &ibt {
  280. status = "okay";
  281. };
  282. &vhub {
  283. status = "okay";
  284. };
  285. &adc {
  286. status = "okay";
  287. };
  288. &video {
  289. status = "okay";
  290. memory-region = <&video_engine_memory>;
  291. };
  292. #include "ibm-power9-dual.dtsi"