18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci# Copyright 2019 Bootlin 38c2ecf20Sopenharmony_ci%YAML 1.2 48c2ecf20Sopenharmony_ci--- 58c2ecf20Sopenharmony_ci$id: "http://devicetree.org/schemas/gpio/xylon,logicvc-gpio.yaml#" 68c2ecf20Sopenharmony_ci$schema: "http://devicetree.org/meta-schemas/core.yaml#" 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cititle: Xylon LogiCVC GPIO controller 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cimaintainers: 118c2ecf20Sopenharmony_ci - Paul Kocialkowski <paul.kocialkowski@bootlin.com> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_cidescription: | 148c2ecf20Sopenharmony_ci The LogiCVC GPIO describes the GPIO block included in the LogiCVC display 158c2ecf20Sopenharmony_ci controller. These are meant to be used for controlling display-related 168c2ecf20Sopenharmony_ci signals. 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci The controller exposes GPIOs from the display and power control registers, 198c2ecf20Sopenharmony_ci which are mapped by the driver as follows: 208c2ecf20Sopenharmony_ci - GPIO[4:0] (display control) mapped to index 0-4 218c2ecf20Sopenharmony_ci - EN_BLIGHT (power control) mapped to index 5 228c2ecf20Sopenharmony_ci - EN_VDD (power control) mapped to index 6 238c2ecf20Sopenharmony_ci - EN_VEE (power control) mapped to index 7 248c2ecf20Sopenharmony_ci - V_EN (power control) mapped to index 8 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciproperties: 278c2ecf20Sopenharmony_ci $nodename: 288c2ecf20Sopenharmony_ci pattern: "^gpio@[0-9a-f]+$" 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci compatible: 318c2ecf20Sopenharmony_ci enum: 328c2ecf20Sopenharmony_ci - xylon,logicvc-3.02.a-gpio 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci reg: 358c2ecf20Sopenharmony_ci maxItems: 1 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci "#gpio-cells": 388c2ecf20Sopenharmony_ci const: 2 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci gpio-controller: true 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci gpio-line-names: 438c2ecf20Sopenharmony_ci minItems: 1 448c2ecf20Sopenharmony_ci maxItems: 9 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_cirequired: 478c2ecf20Sopenharmony_ci - compatible 488c2ecf20Sopenharmony_ci - reg 498c2ecf20Sopenharmony_ci - "#gpio-cells" 508c2ecf20Sopenharmony_ci - gpio-controller 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciadditionalProperties: false 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ciexamples: 558c2ecf20Sopenharmony_ci - | 568c2ecf20Sopenharmony_ci logicvc: logicvc@43c00000 { 578c2ecf20Sopenharmony_ci compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd"; 588c2ecf20Sopenharmony_ci reg = <0x43c00000 0x6000>; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci #address-cells = <1>; 618c2ecf20Sopenharmony_ci #size-cells = <1>; 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci logicvc_gpio: gpio@40 { 648c2ecf20Sopenharmony_ci compatible = "xylon,logicvc-3.02.a-gpio"; 658c2ecf20Sopenharmony_ci reg = <0x40 0x40>; 668c2ecf20Sopenharmony_ci gpio-controller; 678c2ecf20Sopenharmony_ci #gpio-cells = <2>; 688c2ecf20Sopenharmony_ci gpio-line-names = "GPIO0", "GPIO1", "GPIO2", "GPIO3", "GPIO4", 698c2ecf20Sopenharmony_ci "EN_BLIGHT", "EN_VDD", "EN_VEE", "V_EN"; 708c2ecf20Sopenharmony_ci }; 718c2ecf20Sopenharmony_ci }; 72