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