bcm2835-rpi-zero-w.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2017 Stefan Wahren <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "bcm2835.dtsi"
  7. #include "bcm2835-rpi.dtsi"
  8. #include "bcm283x-rpi-usb-otg.dtsi"
  9. #include "bcm283x-rpi-wifi-bt.dtsi"
  10. / {
  11. compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
  12. model = "Raspberry Pi Zero 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 47 GPIO_ACTIVE_LOW>;
  24. };
  25. };
  26. };
  27. &bt {
  28. shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
  29. };
  30. &gpio {
  31. /*
  32. * This is based on the official GPU firmware DT blob.
  33. *
  34. * Legend:
  35. * "FOO" = GPIO line named "FOO" on the schematic
  36. * "FOO_N" = GPIO line named "FOO" on schematic, active low
  37. */
  38. gpio-line-names = "ID_SDA",
  39. "ID_SCL",
  40. "SDA1",
  41. "SCL1",
  42. "GPIO_GCLK",
  43. "GPIO5",
  44. "GPIO6",
  45. "SPI_CE1_N",
  46. "SPI_CE0_N",
  47. "SPI_MISO",
  48. "SPI_MOSI",
  49. "SPI_SCLK",
  50. "GPIO12",
  51. "GPIO13",
  52. /* Serial port */
  53. "TXD0",
  54. "RXD0",
  55. "GPIO16",
  56. "GPIO17",
  57. "GPIO18",
  58. "GPIO19",
  59. "GPIO20",
  60. "GPIO21",
  61. "GPIO22",
  62. "GPIO23",
  63. "GPIO24",
  64. "GPIO25",
  65. "GPIO26",
  66. "GPIO27",
  67. "SDA0",
  68. "SCL0",
  69. /* Used by BT module */
  70. "CTS0",
  71. "RTS0",
  72. "TXD0",
  73. "RXD0",
  74. /* Used by Wifi */
  75. "SD1_CLK",
  76. "SD1_CMD",
  77. "SD1_DATA0",
  78. "SD1_DATA1",
  79. "SD1_DATA2",
  80. "SD1_DATA3",
  81. "CAM_GPIO1", /* GPIO40 */
  82. "WL_ON", /* GPIO41 */
  83. "", /* GPIO42 */
  84. "WIFI_CLK", /* GPIO43 */
  85. "CAM_GPIO0", /* GPIO44 */
  86. "BT_ON", /* GPIO45 */
  87. "HDMI_HPD_N",
  88. "STATUS_LED_N",
  89. /* Used by SD Card */
  90. "SD_CLK_R",
  91. "SD_CMD_R",
  92. "SD_DATA0_R",
  93. "SD_DATA1_R",
  94. "SD_DATA2_R",
  95. "SD_DATA3_R";
  96. pinctrl-0 = <&gpioout &alt0>;
  97. };
  98. &hdmi {
  99. hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
  100. power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  101. status = "okay";
  102. };
  103. &sdhci {
  104. pinctrl-0 = <&emmc_gpio34 &gpclk2_gpio43>;
  105. };
  106. &sdhost {
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&sdhost_gpio48>;
  109. bus-width = <4>;
  110. status = "okay";
  111. };
  112. &uart0 {
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
  115. };
  116. &uart1 {
  117. pinctrl-names = "default";
  118. pinctrl-0 = <&uart1_gpio14>;
  119. status = "okay";
  120. };
  121. &wifi_pwrseq {
  122. reset-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
  123. };