brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · 3289548 Raw
56 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: GPIO based LED segment display8 9maintainers:10  - Chris Packham <chris.packham@alliedtelesis.co.nz>11 12properties:13  compatible:14    const: gpio-7-segment15 16  segment-gpios:17    description: |18      An array of GPIOs one per segment. The first GPIO corresponds to the A19      segment, the seventh GPIO corresponds to the G segment. Some LED blocks20      also have a decimal point which can be specified as an optional eighth21      segment.22 23               -a-24              |   |25              f   b26              |   |27               -g-28              |   |29              e   c30              |   |31               -d-  dp32 33    minItems: 734    maxItems: 835 36required:37  - segment-gpios38 39additionalProperties: false40 41examples:42  - |43 44    #include <dt-bindings/gpio/gpio.h>45 46    led-7seg {47        compatible = "gpio-7-segment";48        segment-gpios = <&gpio 0 GPIO_ACTIVE_LOW>,49                        <&gpio 1 GPIO_ACTIVE_LOW>,50                        <&gpio 2 GPIO_ACTIVE_LOW>,51                        <&gpio 3 GPIO_ACTIVE_LOW>,52                        <&gpio 4 GPIO_ACTIVE_LOW>,53                        <&gpio 5 GPIO_ACTIVE_LOW>,54                        <&gpio 6 GPIO_ACTIVE_LOW>;55    };56