bcm2835-rpi-a.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "bcm2835.dtsi"
  4. #include "bcm2835-rpi.dtsi"
  5. #include "bcm283x-rpi-usb-host.dtsi"
  6. / {
  7. compatible = "raspberrypi,model-a", "brcm,bcm2835";
  8. model = "Raspberry Pi Model A";
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0 0x10000000>;
  12. };
  13. leds {
  14. led-act {
  15. gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
  16. };
  17. };
  18. };
  19. &gpio {
  20. /*
  21. * Taken from Raspberry-Pi-Rev-1.0-Model-AB-Schematics.pdf
  22. * RPI00021 sheet 02
  23. *
  24. * Legend:
  25. * "FOO" = GPIO line named "FOO" on the schematic
  26. * "FOO_N" = GPIO line named "FOO" on schematic, active low
  27. */
  28. gpio-line-names = "SDA0",
  29. "SCL0",
  30. "SDA1",
  31. "SCL1",
  32. "GPIO_GCLK",
  33. "CAM_GPIO1",
  34. "LAN_RUN",
  35. "SPI_CE1_N",
  36. "SPI_CE0_N",
  37. "SPI_MISO",
  38. "SPI_MOSI",
  39. "SPI_SCLK",
  40. "", /* GPIO12 */
  41. "", /* GPIO13 */
  42. /* Serial port */
  43. "TXD0",
  44. "RXD0",
  45. "STATUS_LED_N",
  46. "GPIO17",
  47. "GPIO18",
  48. "", /* GPIO19 */
  49. "", /* GPIO20 */
  50. "GPIO21",
  51. "GPIO22",
  52. "GPIO23",
  53. "GPIO24",
  54. "GPIO25",
  55. "", /* GPIO26 */
  56. "CAM_GPIO0",
  57. /* Binary number representing build/revision */
  58. "CONFIG0",
  59. "CONFIG1",
  60. "CONFIG2",
  61. "CONFIG3",
  62. "", /* GPIO32 */
  63. "", /* GPIO33 */
  64. "", /* GPIO34 */
  65. "", /* GPIO35 */
  66. "", /* GPIO36 */
  67. "", /* GPIO37 */
  68. "", /* GPIO38 */
  69. "", /* GPIO39 */
  70. "PWM0_OUT",
  71. "", /* GPIO41 */
  72. "", /* GPIO42 */
  73. "", /* GPIO43 */
  74. "", /* GPIO44 */
  75. "PWM1_OUT",
  76. "HDMI_HPD_P",
  77. "SD_CARD_DET",
  78. /* Used by SD Card */
  79. "SD_CLK_R",
  80. "SD_CMD_R",
  81. "SD_DATA0_R",
  82. "SD_DATA1_R",
  83. "SD_DATA2_R",
  84. "SD_DATA3_R";
  85. pinctrl-0 = <&gpioout &alt0 &i2s_alt2>;
  86. /* I2S interface */
  87. i2s_alt2: i2s_alt2 {
  88. brcm,pins = <28 29 30 31>;
  89. brcm,function = <BCM2835_FSEL_ALT2>;
  90. };
  91. };
  92. &hdmi {
  93. hpd-gpios = <&gpio 46 GPIO_ACTIVE_HIGH>;
  94. power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  95. status = "okay";
  96. };
  97. &pwm {
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
  100. status = "okay";
  101. };
  102. &sdhost {
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&sdhost_gpio48>;
  105. bus-width = <4>;
  106. status = "okay";
  107. };
  108. &uart0 {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&uart0_gpio14>;
  111. status = "okay";
  112. };