Skip to content

Commit

Permalink
schemas: i2c-controller: Add 'no-detect' property
Browse files Browse the repository at this point in the history
In some cases, operating systems may attempt to detect the presence of
devices on an I2C bus by, for example, attempting to read specific
registers from a list of addresses which some common peripherals is
known to use.

Add a property which can be used to indicate that there are no devices
on the bus except the ones listed in the devicetree, thus allowing
operating systems to choose to avoid spending time on attempting this
kind of detection of devices which do not exist.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
  • Loading branch information
vwax authored and robherring committed Apr 14, 2022
1 parent 80ebd7a commit ba55f96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dtschema/schemas/i2c/i2c-controller.yaml
Expand Up @@ -28,6 +28,12 @@ properties:
minimum: 1000
maximum: 3000000

no-detect:
type: boolean
description:
States that no other devices are present on this bus other than the ones
listed in the devicetree.

patternProperties:
'@[0-9a-f]+$':
type: object
Expand Down

0 comments on commit ba55f96

Please sign in to comment.