Pullrequest for Luckfox Pico Pi (#246)

* sysdrv/source/kernel/arch/arm/boot/dts : Add Luckfox Pico Pi device tree files

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

* sysdrv/source/kernel/arch/arm/configs : Add Add kernel configuration file support for SIM7600G

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

* sysdrv/source/kernel/drivers/usb/serial : Add USB serial driver support for SIM7600G

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

* project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-config/usr/bin/luckfox-config : Add support for Luckfox Pico Pi and comments

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

* project/cfg/BoardConfig_IPC : Add BoardConfig files and post script for Luckfox Pico Pi

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

* project/build.sh : Add the lunch menu item of Luckfox Pico Pi

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

* project/cfg/BoardConfig_IPC/overlay : Add SIM7600G overlay files

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

* sysdrv/source/kernel/drivers/media/i2c/sc3336.c : Set the SC3336 to use the 30fps mode by default

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>

---------

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
luckfox-eng29
2025-03-12 21:51:58 +08:00
committed by GitHub
parent 485f09ece6
commit a984090f06
20 changed files with 2417 additions and 272 deletions

View File

@@ -606,6 +606,10 @@ static void option_instat_callback(struct urb *urb);
static const struct usb_device_id option_ids[] = {
#if 1 /* Added by Simcom */
{ USB_DEVICE(0x05c6, 0x90DB) },
{ USB_DEVICE(0x1e0e, 0x9001) },
#endif
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) },
{ USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA_LIGHT) },
@@ -2229,6 +2233,9 @@ static struct usb_serial_driver option_1port_device = {
#ifdef CONFIG_PM
.suspend = usb_wwan_suspend,
.resume = usb_wwan_resume,
#if 1 /* Added by Simcom */
.reset_resume = usb_wwan_resume,
#endif
#endif
};
@@ -2253,6 +2260,16 @@ static int option_probe(struct usb_serial *serial,
&serial->interface->cur_altsetting->desc;
unsigned long device_flags = id->driver_info;
#if 1 /* Added by Simcom */
if (serial->dev->descriptor.idVendor == cpu_to_le16(0x05C6) && serial->dev->descriptor.idProduct == cpu_to_le16(0x90DB)
&& serial->interface->cur_altsetting->desc.bInterfaceNumber >= 2)
return -ENODEV;
if (serial->dev->descriptor.idVendor == cpu_to_le16(0x1E0E) && serial->dev->descriptor.idProduct == cpu_to_le16(0x9001)
&& serial->interface->cur_altsetting->desc.bInterfaceNumber >=5)
return -ENODEV;
#endif
/* Never bind to the CD-Rom emulation interface */
if (iface_desc->bInterfaceClass == USB_CLASS_MASS_STORAGE)
return -ENODEV;

View File

@@ -481,6 +481,13 @@ static struct urb *usb_wwan_setup_urb(struct usb_serial_port *port,
if (intfdata->use_zlp && dir == USB_DIR_OUT)
urb->transfer_flags |= URB_ZERO_PACKET;
#if 1 /* Added by Simcom for Zero Packet */
if (dir == USB_DIR_OUT) {
if (serial->dev->descriptor.idVendor == cpu_to_le16(0x1E0E))
urb->transfer_flags |= URB_ZERO_PACKET;
}
#endif
return urb;
}