1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2# Copyright 2019 Bootlin 3%YAML 1.2 4--- 5$id: http://devicetree.org/schemas/gpio/xylon,logicvc-gpio.yaml# 6$schema: http://devicetree.org/meta-schemas/core.yaml# 7 8title: Xylon LogiCVC GPIO controller 9 10maintainers: 11 - Paul Kocialkowski <paul.kocialkowski@bootlin.com> 12 13description: | 14 The LogiCVC GPIO describes the GPIO block included in the LogiCVC display 15 controller. These are meant to be used for controlling display-related 16 signals. 17 18 The controller exposes GPIOs from the display and power control registers, 19 which are mapped by the driver as follows: 20 - GPIO[4:0] (display control) mapped to index 0-4 21 - EN_BLIGHT (power control) mapped to index 5 22 - EN_VDD (power control) mapped to index 6 23 - EN_VEE (power control) mapped to index 7 24 - V_EN (power control) mapped to index 8 25 26properties: 27 $nodename: 28 pattern: "^gpio@[0-9a-f]+$" 29 30 compatible: 31 enum: 32 - xylon,logicvc-3.02.a-gpio 33 34 reg: 35 maxItems: 1 36 37 "#gpio-cells": 38 const: 2 39 40 gpio-controller: true 41 42 gpio-line-names: 43 minItems: 1 44 maxItems: 9 45 46required: 47 - compatible 48 - reg 49 - "#gpio-cells" 50 - gpio-controller 51 52additionalProperties: false 53 54examples: 55 - | 56 logicvc: logicvc@43c00000 { 57 compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd"; 58 reg = <0x43c00000 0x6000>; 59 60 #address-cells = <1>; 61 #size-cells = <1>; 62 63 logicvc_gpio: gpio@40 { 64 compatible = "xylon,logicvc-3.02.a-gpio"; 65 reg = <0x40 0x40>; 66 gpio-controller; 67 #gpio-cells = <2>; 68 gpio-line-names = "GPIO0", "GPIO1", "GPIO2", "GPIO3", "GPIO4", 69 "EN_BLIGHT", "EN_VDD", "EN_VEE", "V_EN"; 70 }; 71 }; 72