Files
charge-controller-firmware/zephyr/dts/bindings/outputs.yaml
T
Martin Jäger 8dd576e40e Configure PWM switch driver via DTS
Driver now moved to separate .c file to allow ISR handling in Zephyr.
2020-05-06 12:53:26 +02:00

30 lines
866 B
YAML

# Copyright (c) 2020 Martin Jäger / Libre Solar
# SPDX-License-Identifier: Apache-2.0
description: GPIOs used for digital output (either on/off type or PWM signal)
compatible: "outputs"
child-binding:
description: GPIO digital outputs child node
properties:
gpios:
type: phandle-array
description: GPIO handle for on/off type output
pwms:
type: phandle-array
description: PWM handle for PWM type output
current-max:
type: int
description: Maximum current of driven power switch (A)
label:
type: string
required: true
description: Human readable string describing the device (used by Zephyr for API name)
present:
type: int
default: 1
kconfig-flag:
type: boolean
description: This value can be checked by Kconfig parser using dt_node_has_bool_prop function