bcm2835-rpi-zero.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2016 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. / {
  10. compatible = "raspberrypi,model-zero", "brcm,bcm2835";
  11. model = "Raspberry Pi Zero";
  12. memory@0 {
  13. device_type = "memory";
  14. reg = <0 0x20000000>;
  15. };
  16. leds {
  17. led-act {
  18. gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
  19. };
  20. };
  21. };
  22. &gpio {
  23. /*
  24. * This is based on the official GPU firmware DT blob.
  25. *
  26. * Legend:
  27. * "FOO" = GPIO line named "FOO" on the schematic
  28. * "FOO_N" = GPIO line named "FOO" on schematic, active low
  29. */
  30. gpio-line-names = "ID_SDA",
  31. "ID_SCL",
  32. "SDA1",
  33. "SCL1",
  34. "GPIO_GCLK",
  35. "GPIO5",
  36. "GPIO6",
  37. "SPI_CE1_N",
  38. "SPI_CE0_N",
  39. "SPI_MISO",
  40. "SPI_MOSI",
  41. "SPI_SCLK",
  42. "GPIO12",
  43. "GPIO13",
  44. /* Serial port */
  45. "TXD0",
  46. "RXD0",
  47. "GPIO16",
  48. "GPIO17",
  49. "GPIO18",
  50. "GPIO19",
  51. "GPIO20",
  52. "GPIO21",
  53. "GPIO22",
  54. "GPIO23",
  55. "GPIO24",
  56. "GPIO25",
  57. "GPIO26",
  58. "GPIO27",
  59. "SDA0",
  60. "SCL0",
  61. "", /* GPIO30 */
  62. "", /* GPIO31 */
  63. "CAM_GPIO1", /* GPIO32 */
  64. "", /* GPIO33 */
  65. "", /* GPIO34 */
  66. "", /* GPIO35 */
  67. "", /* GPIO36 */
  68. "", /* GPIO37 */
  69. "", /* GPIO38 */
  70. "", /* GPIO39 */
  71. "", /* GPIO40 */
  72. "CAM_GPIO0", /* GPIO41 */
  73. "", /* GPIO42 */
  74. "", /* GPIO43 */
  75. "", /* GPIO44 */
  76. "", /* GPIO45 */
  77. "HDMI_HPD_N",
  78. "STATUS_LED_N",
  79. /* Used by SD Card */
  80. "SD_CLK_R",
  81. "SD_CMD_R",
  82. "SD_DATA0_R",
  83. "SD_DATA1_R",
  84. "SD_DATA2_R",
  85. "SD_DATA3_R";
  86. pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
  87. /* I2S interface */
  88. i2s_alt0: i2s_alt0 {
  89. brcm,pins = <18 19 20 21>;
  90. brcm,function = <BCM2835_FSEL_ALT0>;
  91. };
  92. };
  93. &hdmi {
  94. hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
  95. power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  96. status = "okay";
  97. };
  98. &sdhost {
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&sdhost_gpio48>;
  101. bus-width = <4>;
  102. status = "okay";
  103. };
  104. &uart0 {
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&uart0_gpio14>;
  107. status = "okay";
  108. };