bcm2835-rpi-a-plus.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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-plus", "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 47 GPIO_ACTIVE_HIGH>;
  16. };
  17. led-pwr {
  18. label = "PWR";
  19. gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
  20. default-state = "keep";
  21. linux,default-trigger = "default-on";
  22. };
  23. };
  24. };
  25. &gpio {
  26. /*
  27. * This is based on the unreleased schematic for the Model A+.
  28. *
  29. * Legend:
  30. * "FOO" = GPIO line named "FOO" on the schematic
  31. * "FOO_N" = GPIO line named "FOO" on schematic, active low
  32. */
  33. gpio-line-names = "ID_SDA",
  34. "ID_SCL",
  35. "SDA1",
  36. "SCL1",
  37. "GPIO_GCLK",
  38. "GPIO5",
  39. "GPIO6",
  40. "SPI_CE1_N",
  41. "SPI_CE0_N",
  42. "SPI_MISO",
  43. "SPI_MOSI",
  44. "SPI_SCLK",
  45. "GPIO12",
  46. "GPIO13",
  47. /* Serial port */
  48. "TXD0",
  49. "RXD0",
  50. "GPIO16",
  51. "GPIO17",
  52. "GPIO18",
  53. "GPIO19",
  54. "GPIO20",
  55. "GPIO21",
  56. "GPIO22",
  57. "GPIO23",
  58. "GPIO24",
  59. "GPIO25",
  60. "GPIO26",
  61. "GPIO27",
  62. "SDA0",
  63. "SCL0",
  64. "", /* GPIO30 */
  65. "", /* GPIO31 */
  66. "CAM_GPIO1", /* GPIO32 */
  67. "", /* GPIO33 */
  68. "", /* GPIO34 */
  69. "PWR_LOW_N", /* GPIO35 */
  70. "", /* GPIO36 */
  71. "", /* GPIO37 */
  72. "USB_LIMIT", /* GPIO38 */
  73. "", /* GPIO39 */
  74. "PWM0_OUT", /* GPIO40 */
  75. "CAM_GPIO0", /* GPIO41 */
  76. "", /* GPIO42 */
  77. "", /* GPIO43 */
  78. "", /* GPIO44 */
  79. "PWM1_OUT", /* GPIO45 */
  80. "HDMI_HPD_N",
  81. "STATUS_LED",
  82. /* Used by SD Card */
  83. "SD_CLK_R",
  84. "SD_CMD_R",
  85. "SD_DATA0_R",
  86. "SD_DATA1_R",
  87. "SD_DATA2_R",
  88. "SD_DATA3_R";
  89. pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
  90. /* I2S interface */
  91. i2s_alt0: i2s_alt0 {
  92. brcm,pins = <18 19 20 21>;
  93. brcm,function = <BCM2835_FSEL_ALT0>;
  94. };
  95. };
  96. &hdmi {
  97. hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
  98. power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  99. status = "okay";
  100. };
  101. &pwm {
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
  104. status = "okay";
  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_gpio14>;
  115. status = "okay";
  116. };