+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
"""A Pin class for use with Rockchip RK3308."""
from adafruit_blinka.microcontroller.generic_linux.sysfs_pin import Pin
# I2C
+I2C0_SDA = GPIO1_D0
+I2C0_SCL = GPIO1_D1
I2C1_SDA = GPIO0_B3
I2C1_SCL = GPIO0_B4
-I2C2_SDA = GPIO1_D0
-I2C2_SCL = GPIO1_D1
+I2C2_SDA = GPIO2_A2
+I2C2_SCL = GPIO2_A3
I2C3_SDA = GPIO0_B7
I2C3_SCL = GPIO0_C0
# ordered as i2cId, SCL, SDA
i2cPorts = (
+ (0, I2C0_SCL, I2C0_SDA),
(1, I2C1_SCL, I2C1_SDA),
(2, I2C2_SCL, I2C2_SDA),
(3, I2C3_SCL, I2C3_SDA),