]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Merge pull request #477 from twa127/master 6.10.0
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Mon, 24 May 2021 15:52:50 +0000 (08:52 -0700)
committerGitHub <noreply@github.com>
Mon, 24 May 2021 15:52:50 +0000 (08:52 -0700)
Bug Fix Rock Pi E pin.py

src/adafruit_blinka/board/radxa/rockpie.py
src/adafruit_blinka/microcontroller/rockchip/rk3328/__init__.py [new file with mode: 0644]
src/adafruit_blinka/microcontroller/rockchip/rk3328/pin.py

index edb79ed240ba1d355ecd49a2fd5ce40596785654..f5a5a747747ddfffd12666fa619bee713e76b5d2 100644 (file)
@@ -13,6 +13,7 @@ D13 = pin.GPIO2_A3  # /PIN 67/
 D15 = pin.GPIO0_D3  # /PIN 27/
 D19 = pin.GPIO3_A1  # /SPI0_TXD/PIN 97/
 D21 = pin.GPIO3_A2  # /SPI0_RXD/PIN 98/
+D22 = pin.GPIO2_B4
 D23 = pin.GPIO3_A0  # /SPI0_CLK/PIN 96/
 D24 = pin.GPIO3_B0  # /SPI0_CSN0/PIN 104/
 D26 = pin.GPIO2_B4  # /PIN 76/
diff --git a/src/adafruit_blinka/microcontroller/rockchip/rk3328/__init__.py b/src/adafruit_blinka/microcontroller/rockchip/rk3328/__init__.py
new file mode 100644 (file)
index 0000000..83fc22c
--- /dev/null
@@ -0,0 +1 @@
+"""Definition for the Rockchip RK3328 chip"""
index a0c8426aef77bcd0d1a558447713d926f29eb8a4..b9cc3d7c4991bcfb2f54ef860cea2085f1d6b652 100644 (file)
@@ -1,6 +1,6 @@
 """A Pin class for use with Rockchip RK3328."""
 
-from adafruit_blinka.microcontroller.generic_linux.sysfs_pin import Pin
+from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
 
 GPIO0_A0 = Pin((0, 0))
 GPIO0_A1 = Pin((0, 1))
@@ -9,7 +9,7 @@ GPIO0_A3 = Pin((0, 3))
 GPIO0_A4 = Pin((0, 4))
 GPIO0_A5 = Pin((0, 5))
 GPIO0_A6 = Pin((0, 6))
-GPIO0_B7 = Pin((0, 7))
+GPIO0_A7 = Pin((0, 7))
 GPIO0_B0 = Pin((0, 8))
 GPIO0_B1 = Pin((0, 9))
 GPIO0_B2 = Pin((0, 10))
@@ -42,7 +42,7 @@ GPIO1_A3 = Pin((1, 3))
 GPIO1_A4 = Pin((1, 4))
 GPIO1_A5 = Pin((1, 5))
 GPIO1_A6 = Pin((1, 6))
-GPIO1_B7 = Pin((1, 7))
+GPIO1_A7 = Pin((1, 7))
 GPIO1_B0 = Pin((1, 8))
 GPIO1_B1 = Pin((1, 9))
 GPIO1_B2 = Pin((1, 10))
@@ -75,7 +75,7 @@ GPIO2_A3 = Pin((2, 3))
 GPIO2_A4 = Pin((2, 4))
 GPIO2_A5 = Pin((2, 5))
 GPIO2_A6 = Pin((2, 6))
-GPIO2_B7 = Pin((2, 7))
+GPIO2_A7 = Pin((2, 7))
 GPIO2_B0 = Pin((2, 8))
 GPIO2_B1 = Pin((2, 9))
 GPIO2_B2 = Pin((2, 10))
@@ -108,7 +108,7 @@ GPIO3_A3 = Pin((3, 3))
 GPIO3_A4 = Pin((3, 4))
 GPIO3_A5 = Pin((3, 5))
 GPIO3_A6 = Pin((3, 6))
-GPIO3_B7 = Pin((3, 7))
+GPIO3_A7 = Pin((3, 7))
 GPIO3_B0 = Pin((3, 8))
 GPIO3_B1 = Pin((3, 9))
 GPIO3_B2 = Pin((3, 10))