16bdbe62cSPaul Kocialkowski# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 26bdbe62cSPaul Kocialkowski# Copyright 2019 Bootlin 36bdbe62cSPaul Kocialkowski%YAML 1.2 46bdbe62cSPaul Kocialkowski--- 5*45698208SRob Herring$id: http://devicetree.org/schemas/gpio/xylon,logicvc-gpio.yaml# 6*45698208SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml# 76bdbe62cSPaul Kocialkowski 86bdbe62cSPaul Kocialkowskititle: Xylon LogiCVC GPIO controller 96bdbe62cSPaul Kocialkowski 106bdbe62cSPaul Kocialkowskimaintainers: 116bdbe62cSPaul Kocialkowski - Paul Kocialkowski <paul.kocialkowski@bootlin.com> 126bdbe62cSPaul Kocialkowski 136bdbe62cSPaul Kocialkowskidescription: | 146bdbe62cSPaul Kocialkowski The LogiCVC GPIO describes the GPIO block included in the LogiCVC display 156bdbe62cSPaul Kocialkowski controller. These are meant to be used for controlling display-related 166bdbe62cSPaul Kocialkowski signals. 176bdbe62cSPaul Kocialkowski 186bdbe62cSPaul Kocialkowski The controller exposes GPIOs from the display and power control registers, 196bdbe62cSPaul Kocialkowski which are mapped by the driver as follows: 206bdbe62cSPaul Kocialkowski - GPIO[4:0] (display control) mapped to index 0-4 216bdbe62cSPaul Kocialkowski - EN_BLIGHT (power control) mapped to index 5 226bdbe62cSPaul Kocialkowski - EN_VDD (power control) mapped to index 6 236bdbe62cSPaul Kocialkowski - EN_VEE (power control) mapped to index 7 246bdbe62cSPaul Kocialkowski - V_EN (power control) mapped to index 8 256bdbe62cSPaul Kocialkowski 266bdbe62cSPaul Kocialkowskiproperties: 276bdbe62cSPaul Kocialkowski $nodename: 286bdbe62cSPaul Kocialkowski pattern: "^gpio@[0-9a-f]+$" 296bdbe62cSPaul Kocialkowski 306bdbe62cSPaul Kocialkowski compatible: 316bdbe62cSPaul Kocialkowski enum: 326bdbe62cSPaul Kocialkowski - xylon,logicvc-3.02.a-gpio 336bdbe62cSPaul Kocialkowski 346bdbe62cSPaul Kocialkowski reg: 356bdbe62cSPaul Kocialkowski maxItems: 1 366bdbe62cSPaul Kocialkowski 376bdbe62cSPaul Kocialkowski "#gpio-cells": 386bdbe62cSPaul Kocialkowski const: 2 396bdbe62cSPaul Kocialkowski 406bdbe62cSPaul Kocialkowski gpio-controller: true 416bdbe62cSPaul Kocialkowski 426bdbe62cSPaul Kocialkowski gpio-line-names: 436bdbe62cSPaul Kocialkowski minItems: 1 446bdbe62cSPaul Kocialkowski maxItems: 9 456bdbe62cSPaul Kocialkowski 466bdbe62cSPaul Kocialkowskirequired: 476bdbe62cSPaul Kocialkowski - compatible 486bdbe62cSPaul Kocialkowski - reg 496bdbe62cSPaul Kocialkowski - "#gpio-cells" 506bdbe62cSPaul Kocialkowski - gpio-controller 516bdbe62cSPaul Kocialkowski 527f464532SRob HerringadditionalProperties: false 537f464532SRob Herring 546bdbe62cSPaul Kocialkowskiexamples: 556bdbe62cSPaul Kocialkowski - | 566bdbe62cSPaul Kocialkowski logicvc: logicvc@43c00000 { 576bdbe62cSPaul Kocialkowski compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd"; 586bdbe62cSPaul Kocialkowski reg = <0x43c00000 0x6000>; 596bdbe62cSPaul Kocialkowski 606bdbe62cSPaul Kocialkowski #address-cells = <1>; 616bdbe62cSPaul Kocialkowski #size-cells = <1>; 626bdbe62cSPaul Kocialkowski 636bdbe62cSPaul Kocialkowski logicvc_gpio: gpio@40 { 646bdbe62cSPaul Kocialkowski compatible = "xylon,logicvc-3.02.a-gpio"; 656bdbe62cSPaul Kocialkowski reg = <0x40 0x40>; 666bdbe62cSPaul Kocialkowski gpio-controller; 676bdbe62cSPaul Kocialkowski #gpio-cells = <2>; 686bdbe62cSPaul Kocialkowski gpio-line-names = "GPIO0", "GPIO1", "GPIO2", "GPIO3", "GPIO4", 696bdbe62cSPaul Kocialkowski "EN_BLIGHT", "EN_VDD", "EN_VEE", "V_EN"; 706bdbe62cSPaul Kocialkowski }; 716bdbe62cSPaul Kocialkowski }; 72