bcm2835-rpi-b-plus.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include "bcm2835.dtsi"
  4. #include "bcm2835-rpi.dtsi"
  5. #include "bcm283x-rpi-smsc9514.dtsi"
  6. #include "bcm283x-rpi-usb-host.dtsi"
  7. / {
  8. compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
  9. model = "Raspberry Pi Model B+";
  10. memory@0 {
  11. device_type = "memory";
  12. reg = <0 0x20000000>;
  13. };
  14. leds {
  15. led-act {
  16. gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
  17. };
  18. led-pwr {
  19. label = "PWR";
  20. gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
  21. default-state = "keep";
  22. linux,default-trigger = "default-on";
  23. };
  24. };
  25. };
  26. &gpio {
  27. /*
  28. * Taken from Raspberry-Pi-B-Plus-V1.2-Schematics.pdf
  29. * RPI-BPLUS sheet 1
  30. *
  31. * Legend:
  32. * "FOO" = GPIO line named "FOO" on the schematic
  33. * "FOO_N" = GPIO line named "FOO" on schematic, active low
  34. */
  35. gpio-line-names = "ID_SDA",
  36. "ID_SCL",
  37. "SDA1",
  38. "SCL1",
  39. "GPIO_GCLK",
  40. "GPIO5",
  41. "GPIO6",
  42. "SPI_CE1_N",
  43. "SPI_CE0_N",
  44. "SPI_MISO",
  45. "SPI_MOSI",
  46. "SPI_SCLK",
  47. "GPIO12",
  48. "GPIO13",
  49. /* Serial port */
  50. "TXD0",
  51. "RXD0",
  52. "GPIO16",
  53. "GPIO17",
  54. "GPIO18",
  55. "GPIO19",
  56. "GPIO20",
  57. "GPIO21",
  58. "GPIO22",
  59. "GPIO23",
  60. "GPIO24",
  61. "GPIO25",
  62. "GPIO26",
  63. "GPIO27",
  64. "SDA0",
  65. "SCL0",
  66. "", /* GPIO30 */
  67. "LAN_RUN", /* GPIO31 */
  68. "CAM_GPIO1", /* GPIO32 */
  69. "", /* GPIO33 */
  70. "", /* GPIO34 */
  71. "PWR_LOW_N", /* GPIO35 */
  72. "", /* GPIO36 */
  73. "", /* GPIO37 */
  74. "USB_LIMIT", /* GPIO38 */
  75. "", /* GPIO39 */
  76. "PWM0_OUT", /* GPIO40 */
  77. "CAM_GPIO0", /* GPIO41 */
  78. "", /* GPIO42 */
  79. "", /* GPIO43 */
  80. "ETH_CLK", /* GPIO44 */
  81. "PWM1_OUT", /* GPIO45 */
  82. "HDMI_HPD_N",
  83. "STATUS_LED",
  84. /* Used by SD Card */
  85. "SD_CLK_R",
  86. "SD_CMD_R",
  87. "SD_DATA0_R",
  88. "SD_DATA1_R",
  89. "SD_DATA2_R",
  90. "SD_DATA3_R";
  91. pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
  92. /* I2S interface */
  93. i2s_alt0: i2s_alt0 {
  94. brcm,pins = <18 19 20 21>;
  95. brcm,function = <BCM2835_FSEL_ALT0>;
  96. };
  97. };
  98. &hdmi {
  99. hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
  100. power-domains = <&power RPI_POWER_DOMAIN_HDMI>;
  101. status = "okay";
  102. };
  103. &pwm {
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
  106. status = "okay";
  107. };
  108. &sdhost {
  109. pinctrl-names = "default";
  110. pinctrl-0 = <&sdhost_gpio48>;
  111. bus-width = <4>;
  112. status = "okay";
  113. };
  114. &uart0 {
  115. pinctrl-names = "default";
  116. pinctrl-0 = <&uart0_gpio14>;
  117. status = "okay";
  118. };