1 # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
 
   3 # SPDX-License-Identifier: MIT
 
   4 """Broadcom BCM2712 pin names"""
 
   6 # Use lgpio pins for Raspberry Pi 5
 
   7 from adafruit_blinka.microcontroller.generic_linux.lgpio_pin import Pin
 
  30 SCLK = Pin(11)  # Raspberry Pi naming
 
  31 SCK = Pin(11)  # CircuitPython naming
 
  80 # ordered as spiId, sckId, mosiId, misoId
 
  82     (0, SCLK, MOSI, MISO),
 
  83     (1, SCLK_1, MOSI_1, MISO_1),
 
  84     (2, SCLK_2, MOSI_2, MISO_2),
 
  90 # ordered as uartId, txId, rxId
 
  91 uartPorts = ((1, TXD, RXD),)
 
  93 # These are the known hardware I2C ports / pins.
 
  94 # For software I2C ports created with the i2c-gpio overlay, see:
 
  95 #     https://github.com/adafruit/Adafruit_Python_Extended_Bus
 
  98     (0, D1, D0),  # both pi 1 and pi 2 i2c ports!
 
  99     (10, D45, D44),  # internal i2c bus for the CM4