Path: blob/master/Documentation/devicetree/bindings/auxdisplay/gpio-7-segment.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: GPIO based LED segment display78maintainers:9- Chris Packham <chris.packham@alliedtelesis.co.nz>1011properties:12compatible:13const: gpio-7-segment1415segment-gpios:16description: |17An array of GPIOs one per segment. The first GPIO corresponds to the A18segment, the seventh GPIO corresponds to the G segment. Some LED blocks19also have a decimal point which can be specified as an optional eighth20segment.2122-a-23| |24f b25| |26-g-27| |28e c29| |30-d- dp3132minItems: 733maxItems: 83435required:36- segment-gpios3738additionalProperties: false3940examples:41- |4243#include <dt-bindings/gpio/gpio.h>4445led-7seg {46compatible = "gpio-7-segment";47segment-gpios = <&gpio 0 GPIO_ACTIVE_LOW>,48<&gpio 1 GPIO_ACTIVE_LOW>,49<&gpio 2 GPIO_ACTIVE_LOW>,50<&gpio 3 GPIO_ACTIVE_LOW>,51<&gpio 4 GPIO_ACTIVE_LOW>,52<&gpio 5 GPIO_ACTIVE_LOW>,53<&gpio 6 GPIO_ACTIVE_LOW>;54};555657