Skip to content

Commit

Permalink
schemas: core: Introduce "fail-needs-probe" status
Browse files Browse the repository at this point in the history
Some components can not be absolutely determined to exist on a given
device when the device tree is written or compiled. However such
components can either be probed using I2C transfers, or determined to
exist based on runtime information, such as GPIO or ADC strappings, or
extra information passed over from boot firmware or read from some
flash chip.

Such an arrangement of components are commonly seen in the
consumer electronics world, where the manufacturer will swap out
electrically compatible components due to inventory or price
constraints. These components are commonly attached to the baseboard
with a standardized ribbon cable, and the ribbon cable may contain
strapping resistors if necessary.

Introduce a new "fail-needs-probe" status string that corresponds to
devices or components that "might" exist. (The term "component" shall
be used to avoid confusion with the actual "complete device".) This
status signals that the implementation needs to do extra probing to
determine the exact state of the component.

Signed-off-by: Chen-Yu Tsai <[email protected]>
  • Loading branch information
wens authored and robherring committed Sep 11, 2024
1 parent c51125d commit 52c380e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtschema/schemas/dt-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ properties:
oneOf:
- type: object
- $ref: types.yaml#/definitions/string
enum: [ okay, disabled, reserved, fail ]
enum: [ okay, disabled, reserved, fail, fail-needs-probe ]
phandle:
$ref: types.yaml#/definitions/uint32

Expand Down

0 comments on commit 52c380e

Please sign in to comment.