bcm2837-rpi-3-b.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "bcm2837.dtsi"
  4. #include "bcm2836-rpi.dtsi"
  5. #include "bcm283x-rpi-smsc9514.dtsi"
  6. #include "bcm283x-rpi-usb-host.dtsi"
  7. #include "bcm283x-rpi-wifi-bt.dtsi"
  8. / {
  9. compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
  10. model = "Raspberry Pi 3 Model B";
  11. chosen {
  12. /* 8250 auxiliary UART instead of pl011 */
  13. stdout-path = "serial1:115200n8";
  14. };
  15. memory@0 {
  16. device_type = "memory";
  17. reg = <0 0x40000000>;
  18. };
  19. leds {
  20. led-act {
  21. gpios = <&expgpio 2 GPIO_ACTIVE_HIGH>;
  22. };
  23. };
  24. };
  25. &bt {
  26. shutdown-gpios = <&expgpio 0 GPIO_ACTIVE_HIGH>;
  27. };
  28. &firmware {
  29. expgpio: gpio {
  30. compatible = "raspberrypi,firmware-gpio";
  31. gpio-controller;
  32. #gpio-cells = <2>;
  33. gpio-line-names = "BT_ON",
  34. "WL_ON",
  35. "STATUS_LED",
  36. "LAN_RUN",
  37. "HDMI_HPD_N",
  38. "CAM_GPIO0",
  39. "CAM_GPIO1",
  40. "PWR_LOW_N";
  41. status = "okay";
  42. };
  43. };
  44. &gpio {
  45. /*
  46. * Taken from rpi_SCH_3b_1p2_reduced.pdf and
  47. * the official GPU firmware DT blob.
  48. *
  49. * Legend:
  50. * "FOO" = GPIO line named "FOO" on the schematic
  51. * "FOO_N" = GPIO line named "FOO" on schematic, active low
  52. */
  53. gpio-line-names = "ID_SDA",
  54. "ID_SCL",
  55. "SDA1",
  56. "SCL1",
  57. "GPIO_GCLK",
  58. "GPIO5",
  59. "GPIO6",
  60. "SPI_CE1_N",
  61. "SPI_CE0_N",
  62. "SPI_MISO",
  63. "SPI_MOSI",
  64. "SPI_SCLK",
  65. "GPIO12",
  66. "GPIO13",
  67. /* Serial port */
  68. "TXD1",
  69. "RXD1",
  70. "GPIO16",
  71. "GPIO17",
  72. "GPIO18",
  73. "GPIO19",
  74. "GPIO20",
  75. "GPIO21",
  76. "GPIO22",
  77. "GPIO23",
  78. "GPIO24",
  79. "GPIO25",
  80. "GPIO26",
  81. "GPIO27",
  82. "", /* GPIO 28 */
  83. "LAN_RUN_BOOT",
  84. /* Used by BT module */
  85. "CTS0",
  86. "RTS0",
  87. "TXD0",
  88. "RXD0",
  89. /* Used by Wifi */
  90. "SD1_CLK",
  91. "SD1_CMD",
  92. "SD1_DATA0",
  93. "SD1_DATA1",
  94. "SD1_DATA2",
  95. "SD1_DATA3",
  96. "PWM0_OUT",
  97. "PWM1_OUT",
  98. "ETH_CLK",
  99. "WIFI_CLK",
  100. "SDA0",
  101. "SCL0",
  102. "SMPS_SCL",
  103. "SMPS_SDA",
  104. /* Used by SD Card */
  105. "SD_CLK_R",
  106. "SD_CMD_R",
  107. "SD_DATA0_R",
  108. "SD_DATA1_R",
  109. "SD_DATA2_R",
  110. "SD_DATA3_R";
  111. };
  112. &pwm {
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>;
  115. status = "okay";
  116. };
  117. &hdmi {
  118. hpd-gpios = <&expgpio 4 GPIO_ACTIVE_LOW>;
  119. power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  120. status = "okay";
  121. };
  122. /* uart0 communicates with the BT module */
  123. &uart0 {
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&uart0_gpio32 &gpclk2_gpio43>;
  126. };
  127. /* uart1 is mapped to the pin header */
  128. &uart1 {
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&uart1_gpio14>;
  131. status = "okay";
  132. };
  133. /* SDHOST is used to drive the SD card */
  134. &sdhost {
  135. pinctrl-names = "default";
  136. pinctrl-0 = <&sdhost_gpio48>;
  137. status = "okay";
  138. bus-width = <4>;
  139. };
  140. &wifi_pwrseq {
  141. reset-gpios = <&expgpio 1 GPIO_ACTIVE_LOW>;
  142. };