#
# SPDX-License-Identifier: MIT
+"""
+Device Tree Alias Functions
+"""
+
from typing import Optional
import os
import re
+
def get_dts_alias(device: str) -> Optional[str]:
"""Get the Device Tree Alias"""
uevent_path = "/sys/bus/platform/devices/" + device + "/uevent"
spiPorts = ((0, SPI0_SCLK, SPI0_MOSI, SPI0_MISO),)
# ordered as uartId, txId, rxId
-uartPorts = [(1, UART1_TX, UART1_RX),]
+uartPorts = [
+ (1, UART1_TX, UART1_RX),
+]
board = detector.board.id
if board in ("ODROID_C4", "ODROID_N2"):