mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-20 17:05:06 +00:00
20 lines
754 B
YAML
20 lines
754 B
YAML
description: >
|
|
Claims a GPIO pin and drives it to a fixed level for as long as the module is running, with
|
|
no further runtime behavior. Useful for board-level power-enable pins that must be asserted
|
|
before other devicetree devices try to use hardware gated by that pin - all devicetree
|
|
devices are constructed and started during kernel_init(), which runs before the deprecated
|
|
HAL's initBoot() hook. Declare a gpio-hog node before the dependent device(s) in the .dts
|
|
source so it runs first.
|
|
|
|
compatible: "tactility,gpio-hog"
|
|
|
|
properties:
|
|
pin:
|
|
type: phandles
|
|
required: true
|
|
description: The GPIO pin to hog
|
|
output-high:
|
|
type: boolean
|
|
default: true
|
|
description: Level to drive the pin to (true = high, false = low)
|