Files
charge-controller-firmware/zephyr/dts/bindings/switch.yaml
T
Martin Jaeger d5ea6b5653 Zephyr: Custom DTS binding for GPIO switch
Previously, the LED binding was abused. DTS is now much cleaner.
2020-01-18 15:56:57 +01:00

20 lines
496 B
YAML

# Copyright (c) 2020 Martin Jäger / Libre Solar
# SPDX-License-Identifier: Apache-2.0
title: GPIO switch parent node
description: GPIO pins to switch something on or off
compatible: "switch"
child-binding:
title: GPIO switch child node
description: GPIO switch child node
properties:
gpios:
type: phandle-array
required: true
label:
type: string
required: true
description: Human readable string describing the device (used by Zephyr for API name)