1 # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
 
   2 # See https://wiki.radxa.com/Rock4/hardware/gpio
 
   4 # SPDX-License-Identifier: MIT
 
   5 """A Pin class for use with Rockchip RK3399 and RK3399_T."""
 
   7 from adafruit_blinka.microcontroller.generic_linux.sysfs_pin import Pin
 
  81 # ordered as i2cId, SCL, SDA
 
  83     (2, I2C2_SCL, I2C2_SDA),
 
  84     (6, I2C6_SCL, I2C6_SDA),
 
  85     (7, I2C7_SCL, I2C7_SDA),
 
  88 # ordered as spiId, sckId, mosiId, misoId
 
  90     (1, SPI1_SCLK, SPI1_MOSI, SPI1_MISO),
 
  91     (2, SPI2_SCLK, SPI2_MOSI, SPI2_MISO),
 
  94 # SysFS pwm outputs, pwm channel and pin in first tuple
 
 100 # SysFS analog inputs, Ordered as analog analogInId, device, and channel
 
 101 analogIns = ((ADC_IN0, 0, 0),)