Skip to content

Commit

Permalink
usb: Add support for Intel LJCA device
Browse files Browse the repository at this point in the history
This patch implements the USB part of Intel USB-I2C/GPIO/SPI adapter
device named "La Jolla Cove Adapter" (LJCA).

The communication between the various LJCA module drivers and the
hardware will be muxed/demuxed by this driver. Three modules (
I2C, GPIO, and SPI) are supported currently.

Each sub-module of LJCA device is identified by type field within
the LJCA message header.

The minimum code in ASL that covers this board is
Scope (\_SB.PCI0.DWC3.RHUB.HS01)
    {
        Device (GPIO)
        {
            Name (_ADR, Zero)
            Name (_STA, 0x0F)
        }

        Device (I2C)
        {
            Name (_ADR, One)
            Name (_STA, 0x0F)
        }

        Device (SPI)
        {
            Name (_ADR, 0x02)
            Name (_STA, 0x0F)
        }
    }

Signed-off-by: Ye Xiang <xiang.ye@intel.com>
  • Loading branch information
yeapa authored and intel-lab-lkp committed Mar 23, 2023
1 parent a33113f commit 606c371
Show file tree
Hide file tree
Showing 4 changed files with 1,008 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/usb/misc/Kconfig
Expand Up @@ -251,6 +251,19 @@ config USB_LINK_LAYER_TEST
Layer Test Device. Say Y only when you want to conduct USB Super Speed
Link Layer Test for host controllers.

config USB_LJCA
tristate "Intel La Jolla Cove Adapter support"
select AUXILIARY_BUS
depends on USB
help
This adds support for Intel La Jolla Cove USB-I2C/SPI/GPIO
Master Adapter (LJCA). Additional drivers such as I2C_LJCA,
GPIO_LJCA and SPI_LJCA must be enabled in order to use the
functionality of the device.

This driver can also be built as a module. If so, the module
will be called ljca.

config USB_CHAOSKEY
tristate "ChaosKey random number generator driver support"
depends on HW_RANDOM
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/misc/Makefile
Expand Up @@ -28,6 +28,7 @@ obj-$(CONFIG_USB_HUB_USB251XB) += usb251xb.o
obj-$(CONFIG_USB_HSIC_USB3503) += usb3503.o
obj-$(CONFIG_USB_HSIC_USB4604) += usb4604.o
obj-$(CONFIG_USB_CHAOSKEY) += chaoskey.o
obj-$(CONFIG_USB_LJCA) += ljca.o

obj-$(CONFIG_USB_SISUSBVGA) += sisusbvga/
obj-$(CONFIG_USB_LINK_LAYER_TEST) += lvstest.o
Expand Down

0 comments on commit 606c371

Please sign in to comment.