From b245012ca266570e69cc87d4aa8b84299db943b0 Mon Sep 17 00:00:00 2001 From: Florian Grandel Date: Thu, 15 Jun 2023 22:09:01 +0200 Subject: [PATCH] drivers: ieee802154: cc13/26xx_subg: R-to-P link workaround A known issue exists that does not allow a CC13/26x2R device to establish a link to a CC13/26x2P device unless the capacitor array is tuned to a non-default value in the P device. See SimpleLink(TM) cc13xx_cc26xx SDK 6.20+ Release Notes, Known Issues. Signed-off-by: Florian Grandel --- soc/arm/ti_simplelink/cc13x2_cc26x2/ccfg.c | 9 +++++++++ soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/ccfg.c | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/soc/arm/ti_simplelink/cc13x2_cc26x2/ccfg.c b/soc/arm/ti_simplelink/cc13x2_cc26x2/ccfg.c index d1d79d82b67..264b64101f9 100644 --- a/soc/arm/ti_simplelink/cc13x2_cc26x2/ccfg.c +++ b/soc/arm/ti_simplelink/cc13x2_cc26x2/ccfg.c @@ -22,5 +22,14 @@ #define SET_CCFG_BL_CONFIG_BL_ENABLE 0x00 #endif /* CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE */ +#if defined(CONFIG_SOC_CC1352P) || defined(CONFIG_SOC_CC2652P) +/* Workaround required to be able to establish links between P and R devices, + * see SimpleLink(TM) cc13xx_cc26xx SDK 6.20+ Release Notes, Known Issues: + * https://software-dl.ti.com/simplelink/esd/simplelink_cc13xx_cc26xx_sdk/6.20.00.29/exports/release_notes_simplelink_cc13xx_cc26xx_sdk_6_20_00_29.html#known-issues + */ +#define SET_CCFG_MODE_CONF_XOSC_CAP_MOD 0x0 +#define SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA 0xD5 +#endif + /* TI recommends setting CCFG values and then including the TI provided ccfg.c */ #include diff --git a/soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/ccfg.c b/soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/ccfg.c index 148a128d620..74f34acac0d 100644 --- a/soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/ccfg.c +++ b/soc/arm/ti_simplelink/cc13x2x7_cc26x2x7/ccfg.c @@ -22,5 +22,14 @@ #define SET_CCFG_BL_CONFIG_BL_ENABLE 0x00 #endif /* CONFIG_CC13X2_CC26X2_BOOTLOADER_BACKDOOR_ENABLE */ +#if defined(CONFIG_SOC_CC1352P7) || defined(CONFIG_SOC_CC2652P7) +/* Workaround required to be able to establish links between P and R devices, + * see SimpleLink(TM) cc13xx_cc26xx SDK 6.20+ Release Notes, Known Issues: + * https://software-dl.ti.com/simplelink/esd/simplelink_cc13xx_cc26xx_sdk/6.20.00.29/exports/release_notes_simplelink_cc13xx_cc26xx_sdk_6_20_00_29.html#known-issues + */ +#define SET_CCFG_MODE_CONF_XOSC_CAP_MOD 0x0 +#define SET_CCFG_MODE_CONF_XOSC_CAPARRAY_DELTA 0xD5 +#endif + /* TI recommends setting CCFG values and then including the TI provided ccfg.c */ #include