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