X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/de082d32a6a103f50b65b072250b127a94113a6d..HEAD:/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 0196982..bc8cd5d 100755 --- a/src/adafruit_blinka/microcontroller/stm32/stm32mp157/pin.py +++ b/src/adafruit_blinka/microcontroller/stm32/stm32mp157/pin.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT """STM32MP157 pins""" from adafruit_blinka.microcontroller.generic_linux.periphery_pin import Pin @@ -94,6 +97,7 @@ PF12 = Pin((5, 12)) PF13 = Pin((5, 13)) PF14 = Pin((5, 14)) PF15 = Pin((5, 15)) +PG0 = Pin((6, 0)) PG1 = Pin((6, 1)) PG2 = Pin((6, 2)) PG3 = Pin((6, 3)) @@ -152,3 +156,18 @@ 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),)