From d2cbcd4071dad66014591ff64493447c58ecbe1b Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Mon, 21 Oct 2024 20:17:56 +0000 Subject: [PATCH] app: use newly granted USB VID:PID 1209:ca02 for DFU by default Use USB VID:PID 1209:ca02 generously granted by pid.codes by for USB DFU mode by default (see https://pid.codes/1209/CA02/). Signed-off-by: Henrik Brix Andersen --- 99-cannectivity.rules | 3 +++ app/Kconfig.sysbuild | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/99-cannectivity.rules b/99-cannectivity.rules index 742a6c2..af6f91a 100644 --- a/99-cannectivity.rules +++ b/99-cannectivity.rules @@ -13,6 +13,9 @@ ACTION!="add", SUBSYSTEM!="usb_device", GOTO="cannectivity_rules_end" ATTR{idVendor}=="1209", ATTR{idProduct}=="ca01", RUN+="/sbin/modprobe -b gs_usb" MODE="660", GROUP="plugdev", TAG+="uaccess" SUBSYSTEM=="drivers", ENV{DEVPATH}=="/bus/usb/drivers/gs_usb", ATTR{new_id}="1209 ca01" +# Replace VID and PID with SB_CONFIG_CANNECTIVITY_USB_DFU_VID and SB_CONFIG_CANNECTIVITY_USB_DFU_PID values +ATTR{idVendor}=="1209", ATTR{idProduct}=="ca02", MODE="660", GROUP="plugdev", TAG+="uaccess" + # Used for pytest suites ATTR{idVendor}=="1209", ATTR{idProduct}=="0001", MODE="660", GROUP="plugdev", TAG+="uaccess" diff --git a/app/Kconfig.sysbuild b/app/Kconfig.sysbuild index b000c73..4ba17c0 100644 --- a/app/Kconfig.sysbuild +++ b/app/Kconfig.sysbuild @@ -29,7 +29,7 @@ config CANNECTIVITY_USB_DFU_VID config CANNECTIVITY_USB_DFU_PID hex "USB DFU mode Product ID (PID)" - default 0x0001 + default 0xca02 help CANnectivity USB DFU mode Product ID (PID).