Advertisement
Guest User

rpi i2cdetect issues

a guest
Jun 26th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. # For more options and information see
  2. # http://rptl.io/configtxt
  3. # Some settings may impact device functionality. See link above for details
  4.  
  5. # Uncomment some or all of these to enable the optional hardware interfaces
  6. dtparam=i2c_arm=on
  7. #,i2c_arm_baudrate=10000
  8. #dtparam=i2s=on
  9. dtparam=spi=off
  10.  
  11. # Enable audio (loads snd_bcm2835)
  12. dtparam=audio=on
  13.  
  14. # Additional overlays and parameters are documented
  15. # /boot/firmware/overlays/README
  16.  
  17. # Automatically load overlays for detected cameras
  18. camera_auto_detect=1
  19.  
  20. # Automatically load overlays for detected DSI displays
  21. display_auto_detect=1
  22.  
  23. # Automatically load initramfs files, if found
  24. auto_initramfs=1
  25.  
  26. # Enable DRM VC4 V3D driver
  27. dtoverlay=vc4-kms-v3d
  28. max_framebuffers=2
  29.  
  30. # Don't have the firmware create an initial video= setting in cmdline.txt.
  31. # Use the kernel's default instead.
  32. disable_fw_kms_setup=1
  33.  
  34. # Run in 64-bit mode
  35. arm_64bit=1
  36.  
  37. # Disable compensation for displays with overscan
  38. disable_overscan=1
  39.  
  40. # Run as fast as firmware / board allows
  41. arm_boost=1
  42.  
  43. [cm4]
  44. # Enable host mode on the 2711 built-in XHCI USB controller.
  45. # This line should be removed if the legacy DWC2 controller is required
  46. # (e.g. for USB device mode) or if USB support is not required.
  47. otg_mode=1
  48.  
  49. [all]
  50. enable_uart=0
  51.  
  52. +-----+-----+---------+------+---+---Pi ?---+---+------+---------+-----+-----+
  53. | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
  54. +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
  55. | | | 3.3v | | | 1 || 2 | | | 5v | | |
  56. | 2 | 8 | SDA.1 | ALT0 | 1 | 3 || 4 | | | 5v | | |
  57. | 3 | 9 | SCL.1 | ALT0 | 1 | 5 || 6 | | | 0v | | |
  58. | 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 1 | IN | TxD | 15 | 14 |
  59. | | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 |
  60. | 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |
  61. | 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | |
  62. | 22 | 3 | GPIO. 3 | IN | 0 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 |
  63. | | | 3.3v | | | 17 || 18 | 0 | IN | GPIO. 5 | 5 | 24 |
  64. | 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | | |
  65. | 9 | 13 | MISO | IN | 0 | 21 || 22 | 0 | IN | GPIO. 6 | 6 | 25 |
  66. | 11 | 14 | SCLK | IN | 0 | 23 || 24 | 1 | IN | CE0 | 10 | 8 |
  67. | | | 0v | | | 25 || 26 | 1 | IN | CE1 | 11 | 7 |
  68. | 0 | 30 | SDA.0 | IN | 1 | 27 || 28 | 1 | IN | SCL.0 | 31 | 1 |
  69. | 5 | 21 | GPIO.21 | IN | 1 | 29 || 30 | | | 0v | | |
  70. | 6 | 22 | GPIO.22 | IN | 1 | 31 || 32 | 0 | IN | GPIO.26 | 26 | 12 |
  71. | 13 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | 0v | | |
  72. | 19 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 0 | IN | GPIO.27 | 27 | 16 |
  73. | 26 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | IN | GPIO.28 | 28 | 20 |
  74. | | | 0v | | | 39 || 40 | 0 | IN | GPIO.29 | 29 | 21 |
  75. +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
  76. | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
  77.  
  78. 0: ip pu | hi // ID_SDA/GPIO0 = input
  79. 1: ip pu | hi // ID_SCL/GPIO1 = input
  80. 2: a0 pu | hi // GPIO2 = SDA1
  81. 3: a0 pu | hi // GPIO3 = SCL1
  82. 4: ip pu | hi // GPIO4 = input
  83. 5: ip pu | hi // GPIO5 = input
  84. 6: ip pu | hi // GPIO6 = input
  85. 7: ip pu | hi // GPIO7 = input
  86. 8: ip pu | hi // GPIO8 = input
  87. 9: ip pd | lo // GPIO9 = input
  88. 10: ip pd | lo // GPIO10 = input
  89. 11: ip pd | lo // GPIO11 = input
  90. 12: ip pd | lo // GPIO12 = input
  91. 13: ip pd | lo // GPIO13 = input
  92. 14: ip pn | hi // GPIO14 = input
  93. 15: ip pu | hi // GPIO15 = input
  94. 16: ip pd | lo // GPIO16 = input
  95. 17: ip pd | lo // GPIO17 = input
  96. 18: ip pd | lo // GPIO18 = input
  97. 19: ip pd | lo // GPIO19 = input
  98. 20: ip pd | lo // GPIO20 = input
  99. 21: ip pd | lo // GPIO21 = input
  100. 22: ip pd | lo // GPIO22 = input
  101. 23: ip pd | lo // GPIO23 = input
  102. 24: ip pd | lo // GPIO24 = input
  103. 25: ip pd | lo // GPIO25 = input
  104. 26: ip pd | lo // GPIO26 = input
  105. 27: ip pd | lo // GPIO27 = input
  106. 28: a5 pu | hi // RGMII_MDIO/GPIO28 = RGMII_MDIO
  107. 29: a5 pd | lo // RGMIO_MDC/GPIO29 = RGMII_MDC
  108. 30: a3 pu | hi // CTS0/GPIO30 = CTS0
  109. 31: a3 pn | lo // RTS0/GPIO31 = RTS0
  110. 32: a3 pn | hi // TXD0/GPIO32 = TXD0
  111. 33: a3 pu | hi // RXD0/GPIO33 = RXD0
  112. 34: a3 pn | lo // SD1_CLK/GPIO34 = SD1_CLK
  113. 35: a3 pu | hi // SD1_CMD/GPIO35 = SD1_CMD
  114. 36: a3 pu | hi // SD1_DATA0/GPIO36 = SD1_DAT0
  115. 37: a3 pu | hi // SD1_DATA1/GPIO37 = SD1_DAT1
  116. 38: a3 pu | hi // SD1_DATA2/GPIO38 = SD1_DAT2
  117. 39: a3 pu | hi // SD1_DATA3/GPIO39 = SD1_DAT3
  118. 40: ip pd | hi // PWM0_MISO/GPIO40 = input
  119. 41: ip pd | lo // PWM1_MOSI/GPIO41 = input
  120. 42: op -- pd | lo // STATUS_LED_G_CLK/GPIO42 = output
  121. 43: ip pd | hi // SPIFLASH_CE_N/GPIO43 = input
  122. 44: ip pn | hi // SDA0/GPIO44 = input
  123. 45: ip pn | hi // SCL0/GPIO45 = input
  124. 46: ip pu | lo // RGMII_RXCLK/GPIO46 = input
  125. 47: ip pu | lo // RGMII_RXCTL/GPIO47 = input
  126. 48: a0 pd | lo // RGMII_RXD0/GPIO48 = SD0_CLK
  127. 49: a0 pd | lo // RGMII_RXD1/GPIO49 = SD0_CMD
  128. 50: a0 pd | lo // RGMII_RXD2/GPIO50 = SD0_DAT0
  129. 51: a0 pd | lo // RGMII_RXD3/GPIO51 = SD0_DAT1
  130. 52: a0 pd | lo // RGMII_TXCLK/GPIO52 = SD0_DAT2
  131. 53: a0 pd | lo // RGMII_TXCTL/GPIO53 = SD0_DAT3
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement