1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*01950c46SEmmanuel Vadot%YAML 1.2 3*01950c46SEmmanuel Vadot--- 4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml# 5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*01950c46SEmmanuel Vadot 7*01950c46SEmmanuel Vadottitle: GPIO based LED segment display 8*01950c46SEmmanuel Vadot 9*01950c46SEmmanuel Vadotmaintainers: 10*01950c46SEmmanuel Vadot - Chris Packham <chris.packham@alliedtelesis.co.nz> 11*01950c46SEmmanuel Vadot 12*01950c46SEmmanuel Vadotproperties: 13*01950c46SEmmanuel Vadot compatible: 14*01950c46SEmmanuel Vadot const: gpio-7-segment 15*01950c46SEmmanuel Vadot 16*01950c46SEmmanuel Vadot segment-gpios: 17*01950c46SEmmanuel Vadot description: | 18*01950c46SEmmanuel Vadot An array of GPIOs one per segment. The first GPIO corresponds to the A 19*01950c46SEmmanuel Vadot segment, the seventh GPIO corresponds to the G segment. Some LED blocks 20*01950c46SEmmanuel Vadot also have a decimal point which can be specified as an optional eighth 21*01950c46SEmmanuel Vadot segment. 22*01950c46SEmmanuel Vadot 23*01950c46SEmmanuel Vadot -a- 24*01950c46SEmmanuel Vadot | | 25*01950c46SEmmanuel Vadot f b 26*01950c46SEmmanuel Vadot | | 27*01950c46SEmmanuel Vadot -g- 28*01950c46SEmmanuel Vadot | | 29*01950c46SEmmanuel Vadot e c 30*01950c46SEmmanuel Vadot | | 31*01950c46SEmmanuel Vadot -d- dp 32*01950c46SEmmanuel Vadot 33*01950c46SEmmanuel Vadot minItems: 7 34*01950c46SEmmanuel Vadot maxItems: 8 35*01950c46SEmmanuel Vadot 36*01950c46SEmmanuel Vadotrequired: 37*01950c46SEmmanuel Vadot - segment-gpios 38*01950c46SEmmanuel Vadot 39*01950c46SEmmanuel VadotadditionalProperties: false 40*01950c46SEmmanuel Vadot 41*01950c46SEmmanuel Vadotexamples: 42*01950c46SEmmanuel Vadot - | 43*01950c46SEmmanuel Vadot 44*01950c46SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 45*01950c46SEmmanuel Vadot 46*01950c46SEmmanuel Vadot led-7seg { 47*01950c46SEmmanuel Vadot compatible = "gpio-7-segment"; 48*01950c46SEmmanuel Vadot segment-gpios = <&gpio 0 GPIO_ACTIVE_LOW>, 49*01950c46SEmmanuel Vadot <&gpio 1 GPIO_ACTIVE_LOW>, 50*01950c46SEmmanuel Vadot <&gpio 2 GPIO_ACTIVE_LOW>, 51*01950c46SEmmanuel Vadot <&gpio 3 GPIO_ACTIVE_LOW>, 52*01950c46SEmmanuel Vadot <&gpio 4 GPIO_ACTIVE_LOW>, 53*01950c46SEmmanuel Vadot <&gpio 5 GPIO_ACTIVE_LOW>, 54*01950c46SEmmanuel Vadot <&gpio 6 GPIO_ACTIVE_LOW>; 55*01950c46SEmmanuel Vadot }; 56