Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i2c: stm32: init priority per device instance #19

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

fouge
Copy link

@fouge fouge commented Oct 10, 2023

allow redefinition of i2c device initialization priority per instance so that one bus can be initialized for a specific purpose before another

fouge and others added 12 commits June 19, 2023 10:50
Cyclic bit to be set when using DMA node from a peripheral.
Usage of the circular buffer can still be enforced by the user
of the DMA module using `source_reload_en`.

Signed-off-by: Cyril Fougeray <[email protected]>
Fix compilation when CONFIG_VL53L1X_INTERRUPT_MODE=n or
CONFIG_VL53L1X_XSHUT=n

Signed-off-by: Cyril Fougeray <[email protected]>
unused args

Signed-off-by: Cyril Fougeray <[email protected]>
unused args

Signed-off-by: Cyril Fougeray <[email protected]>
The sensor provides wrong measurements sometimes when no object
in front, even if the RangeStatus is known as valid (=0)
Computation is empirical.

Signed-off-by: Cyril Fougeray <[email protected]>
Signed-off-by: Cyril Fougeray <[email protected]>
set inter-measurement period through
SENSOR_ATTR_SAMPLING_FREQUENCY to enable
autonomous mode

Signed-off-by: Cyril Fougeray <[email protected]>
Added a new attribute SENSOR_ATTR_VREF_MV for setting the ADC reference
voltage after boot time. This was needed for using the driver on a
hardware where the reference voltage is not fixed.

If the new attribute is not set then the ADC reference voltage is used
from the ADC node in the device tree as in older versions of this
driver.

Signed-off-by: Moritz Diller <[email protected]>
make the workflow reusable from the outside
by adding workflow_call trigger

Signed-off-by: Cyril Fougeray <[email protected]>
The device passed to the DMA callback is the DMA device. Instead use
the ADC device available in the private data.

Signed-off-by: Brett Witherspoon <[email protected]>
Bugfix: ADC_CFGR_DMAEN bit was not set when using this driver
with an STM32G474.

Signed-off-by: Moritz Diller <[email protected]>
allow redefinition of i2c device initialization priority
per instance so that one bus can be initialized for a
specific purpose before another
@fouge fouge requested a review from moritz-diller October 10, 2023 13:29
Copy link

@moritz-diller moritz-diller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it and it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants