fix(dts): avoid upstream LLCC68 binding collision

Rename the application-owned LLCC68 devicetree compatible to semtech,llcc68-weihua so Zephyr releases with a native semtech,llcc68 binding can coexist with this custom driver module.

Use the registered semtech vendor prefix and a project-specific device suffix; DT_DRV_COMPAT maps to semtech_llcc68_weihua.
This commit is contained in:
2026-05-19 15:52:00 +08:00
parent 532b28654e
commit 2ab5617cf0
2 changed files with 7 additions and 5 deletions
+1 -2
View File
@@ -3,7 +3,7 @@
#include <errno.h> #include <errno.h>
#include <zephyr/sys/util.h> #include <zephyr/sys/util.h>
#define DT_DRV_COMPAT semtech_llcc68 #define DT_DRV_COMPAT semtech_llcc68_weihua
static void dio1_irq_trampoline(const struct device *port, struct gpio_callback *cb, uint32_t pins) { static void dio1_irq_trampoline(const struct device *port, struct gpio_callback *cb, uint32_t pins) {
ARG_UNUSED(port); ARG_UNUSED(port);
@@ -66,4 +66,3 @@ BUILD_ASSERT(DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT),
"No status=okay nodes for DT_DRV_COMPAT; check compatible/status"); "No status=okay nodes for DT_DRV_COMPAT; check compatible/status");
DT_INST_FOREACH_STATUS_OKAY(LLCC68_DEFINE) DT_INST_FOREACH_STATUS_OKAY(LLCC68_DEFINE)
@@ -2,11 +2,14 @@
# Copyright (c) 2020 Andreas Sandberg # Copyright (c) 2020 Andreas Sandberg
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
description: | description: |
Semtech LLCC68 LoRa transceiver Semtech LLCC68 radio transceiver used with the Weihua application driver.
compatible: "semtech,llcc68" This compatible intentionally differs from Zephyr's upstream
semtech,llcc68 binding so the application-owned driver can coexist
with Zephyr releases that ship a native LLCC68 binding and driver.
compatible: "semtech,llcc68-weihua"
include: spi-device.yaml include: spi-device.yaml