X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/7f741786dea4992459e245f542186d84708934b6..06f3dea48645ab3963bb400c6057a1049bb2c75e:/src/adafruit_blinka/microcontroller/stm32/stm32mp157/pin.py diff --git a/src/adafruit_blinka/microcontroller/stm32/stm32mp157/pin.py b/src/adafruit_blinka/microcontroller/stm32/stm32mp157/pin.py index d5c8810..6aa6426 100755 --- a/src/adafruit_blinka/microcontroller/stm32/stm32mp157/pin.py +++ b/src/adafruit_blinka/microcontroller/stm32/stm32mp157/pin.py @@ -145,12 +145,25 @@ PZ6 = Pin((9, 6)) PZ7 = Pin((9, 7)) # ordered as uartId, txId, rxId -UART_PORTS = ( - (3, PB10, PB12), -) +UART_PORTS = ((3, PB10, PB12),) # ordered as i2cId, sclId, sdaId I2C_PORTS = ( (1, PD12, PF15), (5, PA11, PA12), ) + +# support busio port check +# 0 - linux system -> i2c-0 +# 1 - linux system -> i2c-1 +i2cPorts = ( + (0, PF14, PF15), + (1, PZ0, PZ1), +) + +# SysFS analog inputs, Ordered as analog analogInId, device, and channel +# Because stm32mp157 analog io used special port name,it doesn't like gpiod named form +# so support analog io in this way +PAN0 = 0 +PAN1 = 0 +analogIns = ((PAN0, 0, 0),)