bcm2837-rpi-zero-2-w.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2022 Stefan Wahren <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "bcm2837.dtsi"
  7. #include "bcm2836-rpi.dtsi"
  8. #include "bcm283x-rpi-usb-otg.dtsi"
  9. #include "bcm283x-rpi-wifi-bt.dtsi"
  10. / {
  11. compatible = "raspberrypi,model-zero-2-w", "brcm,bcm2837";
  12. model = "Raspberry Pi Zero 2 W";
  13. memory@0 {
  14. device_type = "memory";
  15. reg = <0 0x20000000>;
  16. };
  17. chosen {
  18. /* 8250 auxiliary UART instead of pl011 */
  19. stdout-path = "serial1:115200n8";
  20. };
  21. leds {
  22. led-act {
  23. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  24. };
  25. };
  26. };
  27. &bt {
  28. shutdown-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
  29. };
  30. &gpio {
  31. /*
  32. * This is based on the official GPU firmware DT blob.
  33. *
  34. * Legend:
  35. * "NC" = not connected (no rail from the SoC)
  36. * "FOO" = GPIO line named "FOO" on the schematic
  37. * "FOO_N" = GPIO line named "FOO" on schematic, active low
  38. */
  39. gpio-line-names = "ID_SDA",
  40. "ID_SCL",
  41. "SDA1",
  42. "SCL1",
  43. "GPIO_GCLK",
  44. "GPIO5",
  45. "GPIO6",
  46. "SPI_CE1_N",
  47. "SPI_CE0_N",
  48. "SPI_MISO",
  49. "SPI_MOSI",
  50. "SPI_SCLK",
  51. "GPIO12",
  52. "GPIO13",
  53. /* Serial port */
  54. "TXD0",
  55. "RXD0",
  56. "GPIO16",
  57. "GPIO17",
  58. "GPIO18",
  59. "GPIO19",
  60. "GPIO20",
  61. "GPIO21",
  62. "GPIO22",
  63. "GPIO23",
  64. "GPIO24",
  65. "GPIO25",
  66. "GPIO26",
  67. "GPIO27",
  68. "HDMI_HPD_N",
  69. "STATUS_LED_N",
  70. "NC", /* GPIO30 */
  71. "NC", /* GPIO31 */
  72. "NC", /* GPIO32 */
  73. "NC", /* GPIO33 */
  74. "NC", /* GPIO34 */
  75. "NC", /* GPIO35 */
  76. "NC", /* GPIO36 */
  77. "NC", /* GPIO37 */
  78. "NC", /* GPIO38 */
  79. "NC", /* GPIO39 */
  80. "CAM_GPIO0", /* GPIO40 */
  81. "WL_ON", /* GPIO41 */
  82. "BT_ON", /* GPIO42 */
  83. "WIFI_CLK", /* GPIO43 */
  84. "SDA0", /* GPIO44 */
  85. "SCL0", /* GPIO45 */
  86. "SMPS_SCL",
  87. "SMPS_SDA",
  88. /* Used by SD Card */
  89. "SD_CLK_R",
  90. "SD_CMD_R",
  91. "SD_DATA0_R",
  92. "SD_DATA1_R",
  93. "SD_DATA2_R",
  94. "SD_DATA3_R";
  95. pinctrl-0 = <&gpioout &alt0>;
  96. };
  97. &hdmi {
  98. hpd-gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  99. power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  100. status = "okay";
  101. };
  102. &sdhci {
  103. pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
  104. };
  105. &sdhost {
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&sdhost_gpio48>;
  108. bus-width = <4>;
  109. status = "okay";
  110. };
  111. &uart0 {
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
  114. };
  115. &uart1 {
  116. pinctrl-names = "default";
  117. pinctrl-0 = <&uart1_gpio14>;
  118. status = "okay";
  119. };
  120. &wifi_pwrseq {
  121. reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
  122. };