aspeed-bmc-opp-nicole.dts 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // Copyright 2019 YADRO
  3. /dts-v1/;
  4. #include "aspeed-g5.dtsi"
  5. #include <dt-bindings/gpio/aspeed-gpio.h>
  6. / {
  7. model = "Nicole BMC";
  8. compatible = "yadro,nicole-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. vga_memory: framebuffer@9f000000 {
  21. no-map;
  22. reg = <0x9f000000 0x01000000>; /* 16M */
  23. };
  24. flash_memory: region@98000000 {
  25. no-map;
  26. reg = <0x98000000 0x04000000>; /* 64M */
  27. };
  28. coldfire_memory: codefire_memory@9ef00000 {
  29. reg = <0x9ef00000 0x00100000>;
  30. no-map;
  31. };
  32. gfx_memory: framebuffer {
  33. size = <0x01000000>;
  34. alignment = <0x01000000>;
  35. compatible = "shared-dma-pool";
  36. reusable;
  37. };
  38. video_engine_memory: jpegbuffer {
  39. size = <0x02000000>; /* 32M */
  40. alignment = <0x01000000>;
  41. compatible = "shared-dma-pool";
  42. reusable;
  43. };
  44. };
  45. leds {
  46. compatible = "gpio-leds";
  47. power {
  48. label = "platform:green:power";
  49. gpios = <&gpio ASPEED_GPIO(AA, 4) GPIO_ACTIVE_HIGH>;
  50. };
  51. identify {
  52. label = "platform:blue:indicator";
  53. gpios = <&gpio ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>;
  54. };
  55. fault {
  56. label = "platform:red:fault";
  57. gpios = <&gpio ASPEED_GPIO(AA, 3) GPIO_ACTIVE_HIGH>;
  58. };
  59. attention {
  60. label = "platform:yellow:alarm";
  61. gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_HIGH>;
  62. };
  63. };
  64. fsi: gpio-fsi {
  65. compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
  66. #address-cells = <2>;
  67. #size-cells = <0>;
  68. no-gpio-delays;
  69. memory-region = <&coldfire_memory>;
  70. aspeed,sram = <&sram>;
  71. aspeed,cvic = <&cvic>;
  72. clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
  73. data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
  74. mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
  75. enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
  76. trans-gpios = <&gpio ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>;
  77. };
  78. gpio-keys {
  79. compatible = "gpio-keys";
  80. event-checkstop {
  81. label = "checkstop";
  82. gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
  83. linux,code = <ASPEED_GPIO(J, 2)>;
  84. };
  85. };
  86. iio-hwmon-battery {
  87. compatible = "iio-hwmon";
  88. io-channels = <&adc 12>;
  89. };
  90. };
  91. &fmc {
  92. status = "okay";
  93. flash@0 {
  94. status = "okay";
  95. m25p,fast-read;
  96. label = "bmc";
  97. spi-max-frequency = <50000000>;
  98. #include "openbmc-flash-layout.dtsi"
  99. };
  100. };
  101. &spi1 {
  102. status = "okay";
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&pinctrl_spi1_default>;
  105. flash@0 {
  106. status = "okay";
  107. m25p,fast-read;
  108. label = "pnor";
  109. spi-max-frequency = <100000000>;
  110. };
  111. };
  112. &lpc_ctrl {
  113. status = "okay";
  114. memory-region = <&flash_memory>;
  115. flash = <&spi1>;
  116. };
  117. &uart1 {
  118. /* Rear RS-232 connector */
  119. status = "okay";
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&pinctrl_txd1_default
  122. &pinctrl_rxd1_default
  123. &pinctrl_nrts1_default
  124. &pinctrl_ndtr1_default
  125. &pinctrl_ndsr1_default
  126. &pinctrl_ncts1_default
  127. &pinctrl_ndcd1_default
  128. &pinctrl_nri1_default>;
  129. };
  130. &uart5 {
  131. status = "okay";
  132. };
  133. &mac0 {
  134. status = "okay";
  135. use-ncsi;
  136. pinctrl-names = "default";
  137. pinctrl-0 = <&pinctrl_rmii1_default>;
  138. clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
  139. <&syscon ASPEED_CLK_MAC1RCLK>;
  140. clock-names = "MACCLK", "RCLK";
  141. };
  142. &i2c0 {
  143. status = "okay";
  144. eeprom@50 {
  145. compatible = "atmel,24c256";
  146. reg = <0x50>;
  147. pagesize = <64>;
  148. };
  149. };
  150. &i2c2 {
  151. status = "okay";
  152. /* CPU0 characterization connector */
  153. };
  154. &i2c3 {
  155. status = "okay";
  156. /* CLK GEN SI5338 */
  157. };
  158. &i2c4 {
  159. status = "okay";
  160. /* Voltage regulators for CPU0 */
  161. };
  162. &i2c5 {
  163. status = "okay";
  164. /* Voltage regulators for CPU1 */
  165. };
  166. &i2c6 {
  167. status = "okay";
  168. rtc@32 {
  169. compatible = "epson,rx8900";
  170. reg = <0x32>;
  171. };
  172. };
  173. &i2c7 {
  174. status = "okay";
  175. /* CPLD */
  176. };
  177. &gpio {
  178. gpio-line-names =
  179. /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","",
  180. /*B0-B7*/ "","","","","","","","",
  181. /*C0-C7*/ "","","","","","","","",
  182. /*D0-D7*/ "fsi-enable","bmc_power_up","sys_pwrok_buf",
  183. "func_mode0","func_mode1","func_mode2","","",
  184. /*E0-E7*/ "","ncsi_cfg","","","","","","",
  185. /*F0-F7*/ "","","","","","","","",
  186. /*G0-G7*/ "","","","","","","","",
  187. /*H0-H7*/ "","","","","","","","",
  188. /*I0-I7*/ "","","","","","","","",
  189. /*J0-J7*/ "","","checkstop","","","","","",
  190. /*K0-K7*/ "","","","","","","","",
  191. /*L0-L7*/ "","","","","","","","",
  192. /*M0-M7*/ "","","","","","","","",
  193. /*N0-N7*/ "","","","","","","","",
  194. /*O0-O7*/ "","","power-button","","","","","",
  195. /*P0-P7*/ "","fsi-trans","pm_rtc_adc_en","","","","","",
  196. /*Q0-Q7*/ "","","","","","","","id-button",
  197. /*R0-R7*/ "","software_pwrgood","","","","","","",
  198. /*S0-S7*/ "","","","","","","","seq_cont",
  199. /*T0-T7*/ "","","","","","","","",
  200. /*U0-U7*/ "","","","","","","","",
  201. /*V0-V7*/ "","","","","","","","",
  202. /*W0-W7*/ "","","","","","","","",
  203. /*X0-X7*/ "","","","","","","","",
  204. /*Y0-Y7*/ "","","","","","","","",
  205. /*Z0-Z7*/ "","","","","","","","",
  206. /*AA0-AA7*/ "fsi-clock","led-attention","fsi-data","led-fault",
  207. "led-power","","","led-identify",
  208. /*AB0-AB7*/ "","","","","","","","",
  209. /*AC0-AC7*/ "","","","","","","","";
  210. func_mode0 {
  211. gpio-hog;
  212. gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
  213. output-low;
  214. };
  215. func_mode1 {
  216. gpio-hog;
  217. gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
  218. output-low;
  219. };
  220. func_mode2 {
  221. gpio-hog;
  222. gpios = <ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>;
  223. output-low;
  224. };
  225. seq_cont {
  226. gpio-hog;
  227. gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
  228. output-low;
  229. };
  230. ncsi_cfg {
  231. gpio-hog;
  232. input;
  233. gpios = <ASPEED_GPIO(E, 1) GPIO_ACTIVE_HIGH>;
  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. &ibt {
  247. status = "okay";
  248. };
  249. &vhub {
  250. status = "okay";
  251. };
  252. &adc {
  253. status = "okay";
  254. pinctrl-names = "default";
  255. pinctrl-0 = <&pinctrl_adc0_default
  256. &pinctrl_adc1_default
  257. &pinctrl_adc2_default
  258. &pinctrl_adc3_default
  259. &pinctrl_adc4_default
  260. &pinctrl_adc5_default
  261. &pinctrl_adc6_default
  262. &pinctrl_adc7_default
  263. &pinctrl_adc8_default
  264. &pinctrl_adc9_default
  265. &pinctrl_adc10_default
  266. &pinctrl_adc11_default
  267. &pinctrl_adc12_default
  268. &pinctrl_adc13_default
  269. &pinctrl_adc14_default
  270. &pinctrl_adc15_default>;
  271. };
  272. &video {
  273. status = "okay";
  274. memory-region = <&video_engine_memory>;
  275. };
  276. #include "ibm-power9-dual.dtsi"