1 # SPDX-FileCopyrightText: 2023 Wouter Groeneveld
2 # See https://wiki.radxa.com/Rock4/hardware/gpio (click EXPAND for the Pi 4C, chip RK3399_T)
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
64 # ordered as i2cId, SCL, SDA
66 (0, I2C2_SCL, I2C2_SDA),
67 (1, I2C6_SCL, I2C6_SDA),
68 (7, I2C7_SCL, I2C7_SDA),
71 # ordered as spiId, sckId, mosiId, misoId
72 spiPorts = ((1, SPI1_SCLK, SPI1_MOSI, SPI1_MISO),)
74 # SysFS pwm outputs, pwm channel and pin in first tuple
79 # SysFS analog inputs, Ordered as analog analogInId, device, and channel
80 analogIns = ((ADC_IN0, 0, 0),)