X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/0a1baad121057e284f5a807e6088927d8cc9c220..b151a78a91dde451f11b898bf97b99e991f98867:/src/adafruit_blinka/microcontroller/rockchip/rk3566/pin.py diff --git a/src/adafruit_blinka/microcontroller/rockchip/rk3566/pin.py b/src/adafruit_blinka/microcontroller/rockchip/rk3566/pin.py index ff812ac..88141d5 100644 --- a/src/adafruit_blinka/microcontroller/rockchip/rk3566/pin.py +++ b/src/adafruit_blinka/microcontroller/rockchip/rk3566/pin.py @@ -64,9 +64,13 @@ GPIO2_C4 = Pin((2, 20)) GPIO2_C5 = Pin((2, 21)) GPIO2_C6 = Pin((2, 22)) GPIO3_A1 = Pin((3, 1)) +GPIO3_A2 = Pin((3, 2)) +GPIO3_A3 = Pin((3, 3)) +GPIO3_A4 = Pin((3, 4)) GPIO3_A5 = Pin((3, 5)) GPIO3_A6 = Pin((3, 6)) GPIO3_A7 = Pin((3, 7)) +GPIO3_B0 = Pin((3, 8)) GPIO3_B1 = Pin((3, 9)) GPIO3_B2 = Pin((3, 10)) GPIO3_B3 = Pin((3, 11)) @@ -175,10 +179,13 @@ pwmOuts = [ uartPorts = [] # SysFS analog inputs, Ordered as analog analogInId, device, and channel -analogIns = ((ADC_AIN3, 0, 3),) +analogIns = [ + (ADC_AIN3, 0, 3), +] board = detector.board.id if board in ("ODROID_M1S"): + analogIns.append((40, 0, 2)) alias = get_dts_alias("fe5c0000.i2c") if alias is not None: globals()[alias + "_SCL"] = GPIO3_B5 @@ -213,6 +220,7 @@ if board in ("ODROID_M1S"): globals()[alias + "_RX"] = GPIO2_A3 uartPorts.append((int(alias[-1]), GPIO2_A4, GPIO2_A3)) +analogIns = tuple(analogIns) i2cPorts = tuple(i2cPorts) pwmOuts = tuple(pwmOuts) spiPorts = tuple(spiPorts)