aspeed-bmc-opp-lanyang.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // Copyright (c) 2018 Inventec Corporation
  3. /dts-v1/;
  4. #include "aspeed-g5.dtsi"
  5. #include <dt-bindings/gpio/aspeed-gpio.h>
  6. / {
  7. model = "Lanyang BMC";
  8. compatible = "inventec,lanyang-bmc", "aspeed,ast2500";
  9. chosen {
  10. stdout-path = &uart5;
  11. bootargs = "console=ttyS4,115200 earlycon";
  12. };
  13. memory@80000000 {
  14. reg = <0x80000000 0x40000000>;
  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. };
  25. leds {
  26. compatible = "gpio-leds";
  27. sys_boot_status {
  28. label = "System_boot_status";
  29. gpios = <&gpio ASPEED_GPIO(B, 6) GPIO_ACTIVE_LOW>;
  30. };
  31. attention {
  32. label = "Attention_locator";
  33. gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
  34. };
  35. plt_fault {
  36. label = "Platform_fault";
  37. gpios = <&gpio ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
  38. };
  39. hdd_fault {
  40. label = "Onboard_drive_fault";
  41. gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_HIGH>;
  42. };
  43. bmc_err {
  44. lable = "BMC_fault";
  45. gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>;
  46. };
  47. sys_err {
  48. lable = "Sys_fault";
  49. gpios = <&gpio ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
  50. };
  51. };
  52. fsi: gpio-fsi {
  53. compatible = "fsi-master-gpio", "fsi-master";
  54. #address-cells = <2>;
  55. #size-cells = <0>;
  56. clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>;
  57. data-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>;
  58. trans-gpios = <&gpio ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>;
  59. enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
  60. mux-gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
  61. };
  62. iio-hwmon {
  63. compatible = "iio-hwmon";
  64. io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
  65. <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>,
  66. <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>,
  67. <&adc 13>, <&adc 14>, <&adc 15>;
  68. };
  69. iio-hwmon-battery {
  70. compatible = "iio-hwmon";
  71. io-channels = <&adc 12>;
  72. };
  73. };
  74. &pwm_tacho {
  75. status = "okay";
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
  78. &pinctrl_pwm2_default &pinctrl_pwm3_default>;
  79. fan@0 {
  80. reg = <0x00>;
  81. aspeed,fan-tach-ch = /bits/ 8 <0x00>;
  82. };
  83. fan@1 {
  84. reg = <0x01>;
  85. aspeed,fan-tach-ch = /bits/ 8 <0x01>;
  86. };
  87. fan@2 {
  88. reg = <0x02>;
  89. aspeed,fan-tach-ch = /bits/ 8 <0x02>;
  90. };
  91. fan@3 {
  92. reg = <0x03>;
  93. aspeed,fan-tach-ch = /bits/ 8 <0x03>;
  94. };
  95. };
  96. &fmc {
  97. status = "okay";
  98. flash@0 {
  99. status = "okay";
  100. m25p,fast-read;
  101. label = "bmc";
  102. #include "openbmc-flash-layout.dtsi"
  103. };
  104. };
  105. &spi1 {
  106. status = "okay";
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&pinctrl_spi1_default>;
  109. flash@0 {
  110. status = "okay";
  111. label = "pnor";
  112. m25p,fast-read;
  113. };
  114. };
  115. &spi2 {
  116. status = "okay";
  117. pinctrl-names = "default";
  118. pinctrl-0 = <&pinctrl_spi2ck_default
  119. &pinctrl_spi2cs0_default
  120. &pinctrl_spi2cs1_default
  121. &pinctrl_spi2miso_default
  122. &pinctrl_spi2mosi_default>;
  123. flash@0 {
  124. status = "okay";
  125. };
  126. };
  127. &uart1 {
  128. status = "okay";
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&pinctrl_txd1_default
  131. &pinctrl_rxd1_default>;
  132. };
  133. &lpc_ctrl {
  134. status = "okay";
  135. memory-region = <&flash_memory>;
  136. flash = <&spi1>;
  137. };
  138. &lpc_snoop {
  139. status = "okay";
  140. snoop-ports = <0x80>;
  141. };
  142. &uart5 {
  143. status = "okay";
  144. };
  145. &mac0 {
  146. status = "okay";
  147. pinctrl-names = "default";
  148. pinctrl-0 = <&pinctrl_rmii1_default>;
  149. clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
  150. <&syscon ASPEED_CLK_MAC1RCLK>;
  151. clock-names = "MACCLK", "RCLK";
  152. use-ncsi;
  153. };
  154. &mac1 {
  155. status = "okay";
  156. pinctrl-names = "default";
  157. pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
  158. };
  159. &i2c0 {
  160. status = "okay";
  161. eeprom@55 {
  162. compatible = "atmel,24c64";
  163. reg = <0x55>;
  164. pagesize = <32>;
  165. };
  166. rtc@68 {
  167. compatible = "nxp,pcf8523";
  168. reg = <0x68>;
  169. };
  170. tmp75@48 {
  171. compatible = "ti,tmp75";
  172. reg = <0x48>;
  173. };
  174. };
  175. &i2c1 {
  176. status = "okay";
  177. };
  178. &i2c2 {
  179. status = "okay";
  180. };
  181. &i2c3 {
  182. status = "okay";
  183. };
  184. &i2c4 {
  185. status = "okay";
  186. };
  187. &i2c5 {
  188. status = "okay";
  189. };
  190. &i2c6 {
  191. status = "okay";
  192. };
  193. &i2c7 {
  194. status = "okay";
  195. };
  196. &i2c8 {
  197. status = "okay";
  198. };
  199. &i2c9 {
  200. status = "okay";
  201. };
  202. &i2c10 {
  203. status = "okay";
  204. };
  205. &i2c11 {
  206. status = "okay";
  207. };
  208. &vuart {
  209. status = "okay";
  210. };
  211. &gfx {
  212. status = "okay";
  213. };
  214. &pinctrl {
  215. aspeed,external-nodes = <&gfx &lhc>;
  216. };
  217. &gpio {
  218. pin_gpio_b0 {
  219. gpio-hog;
  220. gpios = <ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>;
  221. output-high;
  222. line-name = "BMC_HDD1_PWR_EN";
  223. };
  224. pin_gpio_b5 {
  225. gpio-hog;
  226. gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>;
  227. input;
  228. line-name = "BMC_USB1_OCI2";
  229. };
  230. pin_gpio_h5 {
  231. gpio-hog;
  232. gpios = <ASPEED_GPIO(H, 5) GPIO_ACTIVE_HIGH>;
  233. output-high;
  234. line-name = "BMC_CP0_PERST_ENABLE_R";
  235. };
  236. pin_gpio_z2 {
  237. gpio-hog;
  238. gpios = <ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
  239. output-high;
  240. line-name = "RST_PCA9546_U177_N";
  241. };
  242. pin_gpio_aa6 {
  243. gpio-hog;
  244. gpios = <ASPEED_GPIO(AA, 6) GPIO_ACTIVE_HIGH>;
  245. output-high;
  246. line-name = "BMC_CP0_RESET_N";
  247. };
  248. pin_gpio_aa7 {
  249. gpio-hog;
  250. gpios = <ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>;
  251. output-high;
  252. line-name = "BMC_TPM_RESET_N";
  253. };
  254. pin_gpio_ab0 {
  255. gpio-hog;
  256. gpios = <ASPEED_GPIO(AB, 0) GPIO_ACTIVE_LOW>;
  257. output-high;
  258. line-name = "BMC_USB_PWRON_N";
  259. };
  260. };
  261. &ibt {
  262. status = "okay";
  263. };
  264. &adc {
  265. status = "okay";
  266. };
  267. #include "ibm-power9-dual.dtsi"