From: core-i99 <62154074+Core-i99@users.noreply.github.com> Date: Mon, 10 Mar 2025 11:02:21 +0000 (+0100) Subject: Add orangepi 3 LTS support X-Git-Tag: 8.57.0~9^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/9e6a4f0815a7a0154ae270a3804ff7a3cf6be3d7?hp=58a8e1716d6f424c11f10d8d967dcfb02e71d9ea Add orangepi 3 LTS support --- diff --git a/src/adafruit_blinka/board/orangepi/orangepi3lts.py b/src/adafruit_blinka/board/orangepi/orangepi3lts.py new file mode 100644 index 0000000..25ef624 --- /dev/null +++ b/src/adafruit_blinka/board/orangepi/orangepi3lts.py @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT +"""Pin definitions for the Orange Pi 3 LTS.""" + +from adafruit_blinka.microcontroller.allwinner.h6 import pin + +PD26 = pin.PD26 +SDA = pin.PD26 +PD25 = pin.PD25 +SCL = pin.PD25 +PD22 = pin.PD22 +PL2 = pin.PL2 +PL3 = pin.PL3 +PD24 = pin.PD24 +UART3_RX = pin.PD24 +PD18 = pin.PD18 +PD23 = pin.PD23 +UART3_TX = pin.PD23 +PL10 = pin.PL10 +PD15 = pin.PD15 +PD16 = pin.PD16 +PH5 = pin.PH5 +PH6 = pin.PH6 +PD21 = pin.PD21 +PH4 = pin.PH4 +SPI1_CLK = pin.PH4 +PH3 = pin.PH3 +SPI1_CS = pin.PH3 +PL8 = pin.PL8 + +SCLK = pin.PH4 +MOSI = pin.PH5 +MISO = pin.PH6 diff --git a/src/board.py b/src/board.py index 5a85cc7..e0f4b18 100644 --- a/src/board.py +++ b/src/board.py @@ -128,6 +128,9 @@ elif board_id == ap_board.ORANGE_PI_ZERO_2: elif board_id == ap_board.ORANGE_PI_3: from adafruit_blinka.board.orangepi.orangepi3 import * +elif board_id == ap_board.ORANGE_PI_3_LTS: + from adafruit_blinka.board.orangepi.orangepi3lts import * + elif board_id == ap_board.ORANGE_PI_3B: from adafruit_blinka.board.orangepi.orangepi3b import *