Skip to content

BCM2835 LoSSI Clock Output #3348

@mmader87

Description

@mmader87

Describe the bug
I know the Linux Kernel does not natively support LoSSI (this is something I am working on).
However the BCM2835 SPI Driver in LoSSI Mode outputs 10 clock cycles instead of 9 clock cycles as indicated by the BCM2835 ARM Peripherals spec.

image

To reproduce
Add code to enable LoSSI in function bcm2835_spi_transfer_one() and send one byte of data.
cs |= BCM2835_SPI_CS_LEN;

Note: SPI Mode is set to SPI_MODE_3 and SPI_3WIRE

Expected behaviour
Expect 9 clock cycles

Actual behaviour
Measured 10 clock cycles

System
Raspberry Pi CM3+ w/ IO Board
Kernel Version: v5.3.7-yocto-standard
Firmware Date: Aug 22 2019 14:00:42
Firmware Version: 0e6daa5106dd4164474616408e0dc24f997ffcf3 (clean) (release) (start_x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions