1 # SPDX-FileCopyrightText: 2023 Wouter Groeneveld
2 # See https://wiki.radxa.com/Rock4/hardware/gpio
4 # SPDX-License-Identifier: MIT
5 """A Pin class for use with Rockchip RK3399_T."""
7 from adafruit_blinka.microcontroller.generic_linux.sysfs_pin import Pin
66 # ordered as i2cId, SCL, SDA
68 (2, I2C2_SCL, I2C2_SDA),
69 (6, I2C6_SCL, I2C6_SDA),
70 (7, I2C7_SCL, I2C7_SDA),
73 # ordered as spiId, sckId, mosiId, misoId
75 (1, SPI1_SCLK, SPI1_MOSI, SPI1_MISO),
76 (2, SPI2_SCLK, SPI2_MOSI, SPI2_MISO),
79 # SysFS pwm outputs, pwm channel and pin in first tuple
85 # SysFS analog inputs, Ordered as analog analogInId, device, and channel
86 analogIns = ((ADC_IN0, 0, 0),)