bcm2711-rpi-cm4.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "bcm2711.dtsi"
  4. #include "bcm2711-rpi.dtsi"
  5. #include "bcm283x-rpi-wifi-bt.dtsi"
  6. / {
  7. compatible = "raspberrypi,4-compute-module", "brcm,bcm2711";
  8. chosen {
  9. /* 8250 auxiliary UART instead of pl011 */
  10. stdout-path = "serial1:115200n8";
  11. };
  12. sd_io_1v8_reg: sd_io_1v8_reg {
  13. compatible = "regulator-gpio";
  14. regulator-name = "vdd-sd-io";
  15. regulator-min-microvolt = <1800000>;
  16. regulator-max-microvolt = <3300000>;
  17. regulator-boot-on;
  18. regulator-always-on;
  19. regulator-settling-time-us = <5000>;
  20. gpios = <&expgpio 4 GPIO_ACTIVE_HIGH>;
  21. states = <1800000 0x1>,
  22. <3300000 0x0>;
  23. status = "okay";
  24. };
  25. sd_vcc_reg: sd_vcc_reg {
  26. compatible = "regulator-fixed";
  27. regulator-name = "vcc-sd";
  28. regulator-min-microvolt = <3300000>;
  29. regulator-max-microvolt = <3300000>;
  30. regulator-boot-on;
  31. enable-active-high;
  32. gpio = <&expgpio 6 GPIO_ACTIVE_HIGH>;
  33. };
  34. };
  35. &bt {
  36. shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
  37. };
  38. /* EMMC2 is used to drive the eMMC */
  39. &emmc2 {
  40. bus-width = <8>;
  41. vqmmc-supply = <&sd_io_1v8_reg>;
  42. vmmc-supply = <&sd_vcc_reg>;
  43. broken-cd;
  44. /* Even the IP block is limited to 100 MHz
  45. * this provides a throughput gain
  46. */
  47. mmc-hs200-1_8v;
  48. status = "okay";
  49. };
  50. &expgpio {
  51. gpio-line-names = "BT_ON",
  52. "WL_ON",
  53. "PWR_LED_OFF",
  54. "ANT1",
  55. "VDD_SD_IO_SEL",
  56. "CAM_GPIO",
  57. "SD_PWR_ON",
  58. "ANT2";
  59. ant1: ant1-hog {
  60. gpio-hog;
  61. gpios = <3 GPIO_ACTIVE_HIGH>;
  62. /* internal antenna enabled */
  63. output-high;
  64. line-name = "ant1";
  65. };
  66. ant2: ant2-hog {
  67. gpio-hog;
  68. gpios = <7 GPIO_ACTIVE_HIGH>;
  69. /* external antenna disabled */
  70. output-low;
  71. line-name = "ant2";
  72. };
  73. };
  74. &genet {
  75. phy-handle = <&phy1>;
  76. phy-mode = "rgmii-rxid";
  77. status = "okay";
  78. };
  79. &genet_mdio {
  80. phy1: ethernet-phy@0 {
  81. /* No PHY interrupt */
  82. reg = <0x0>;
  83. };
  84. };
  85. /* uart0 communicates with the BT module */
  86. &uart0 {
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&uart0_ctsrts_gpio30 &uart0_gpio32>;
  89. uart-has-rtscts;
  90. };
  91. /* uart1 is mapped to the pin header */
  92. &uart1 {
  93. pinctrl-names = "default";
  94. pinctrl-0 = <&uart1_gpio14>;
  95. status = "okay";
  96. };
  97. &wifi_pwrseq {
  98. reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
  99. };