From 7d54990e57f08af4eb8c67f1c320cf590e540ffb Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Fri, 18 Oct 2019 09:29:10 +0200 Subject: [PATCH] modemmanager: add support to ConnectCore 8M Nano DVK platform https://jira.digi.com/browse/DEL-6806 Signed-off-by: Arturo Buzarra --- .../ccimx8mn/78-mm-digi-xbee-cellular.rules | 10 ++++++++++ .../ccimx8mn/80-mm-net-device-blacklist.rules | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/78-mm-digi-xbee-cellular.rules create mode 100644 meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/80-mm-net-device-blacklist.rules diff --git a/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/78-mm-digi-xbee-cellular.rules b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/78-mm-digi-xbee-cellular.rules new file mode 100644 index 000000000..f4b484c18 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/78-mm-digi-xbee-cellular.rules @@ -0,0 +1,10 @@ +ACTION!="add|change|move", GOTO="mm_digi_xbee_cellular_modem_end" + +# By default, ModemManager expects a default baudrate of 57600bps. Different +# baudrates may be used by setting the ID_MM_TTY_BAUDRATE udev tag. + +# ModemManager documentation states that the best practice is to use the DEVPATH +# this way rather than other rules such as KERNEL, so be careful when modifying +DEVPATH=="/devices/platform/30a60000.serial/tty/ttymxc3", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1", ENV{ID_MM_PHYSDEV_UID}="Digi XBee Cellular" + +LABEL="mm_digi_xbee_cellular_modem_end" diff --git a/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/80-mm-net-device-blacklist.rules b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/80-mm-net-device-blacklist.rules new file mode 100644 index 000000000..113069765 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/modemmanager/modemmanager/ccimx8mn/80-mm-net-device-blacklist.rules @@ -0,0 +1,12 @@ +ACTION!="add|change|move|bind", GOTO="mm_net_device_blacklist_end" + +# ModemManager documentation states that the best practice is to use the DEVPATH +# this way rather than other rules such as KERNEL, so be careful when modifying + +# Remove Ethernet interfaces from ModemManager probing +SUBSYSTEM=="net", DEVPATH=="/devices/platform/30be0000.ethernet*", ENV{ID_MM_CANDIDATE}="0", ENV{ID_MM_DEVICE_IGNORE}="1" + +# Remove MMC interfaces from ModemManager probing +SUBSYSTEM=="net", DEVPATH=="/devices/platform/30b40000.mmc*", ENV{ID_MM_CANDIDATE}="0", ENV{ID_MM_DEVICE_IGNORE}="1" + +LABEL="mm_net_device_blacklist_end"