0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2019 Bootlin
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/gpio/xylon,logicvc-gpio.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007
0008 title: Xylon LogiCVC GPIO controller
0009
0010 maintainers:
0011 - Paul Kocialkowski <paul.kocialkowski@bootlin.com>
0012
0013 description: |
0014 The LogiCVC GPIO describes the GPIO block included in the LogiCVC display
0015 controller. These are meant to be used for controlling display-related
0016 signals.
0017
0018 The controller exposes GPIOs from the display and power control registers,
0019 which are mapped by the driver as follows:
0020 - GPIO[4:0] (display control) mapped to index 0-4
0021 - EN_BLIGHT (power control) mapped to index 5
0022 - EN_VDD (power control) mapped to index 6
0023 - EN_VEE (power control) mapped to index 7
0024 - V_EN (power control) mapped to index 8
0025
0026 properties:
0027 $nodename:
0028 pattern: "^gpio@[0-9a-f]+$"
0029
0030 compatible:
0031 enum:
0032 - xylon,logicvc-3.02.a-gpio
0033
0034 reg:
0035 maxItems: 1
0036
0037 "#gpio-cells":
0038 const: 2
0039
0040 gpio-controller: true
0041
0042 gpio-line-names:
0043 minItems: 1
0044 maxItems: 9
0045
0046 required:
0047 - compatible
0048 - reg
0049 - "#gpio-cells"
0050 - gpio-controller
0051
0052 additionalProperties: false
0053
0054 examples:
0055 - |
0056 logicvc: logicvc@43c00000 {
0057 compatible = "xylon,logicvc-3.02.a", "syscon", "simple-mfd";
0058 reg = <0x43c00000 0x6000>;
0059
0060 #address-cells = <1>;
0061 #size-cells = <1>;
0062
0063 logicvc_gpio: gpio@40 {
0064 compatible = "xylon,logicvc-3.02.a-gpio";
0065 reg = <0x40 0x40>;
0066 gpio-controller;
0067 #gpio-cells = <2>;
0068 gpio-line-names = "GPIO0", "GPIO1", "GPIO2", "GPIO3", "GPIO4",
0069 "EN_BLIGHT", "EN_VDD", "EN_VEE", "V_EN";
0070 };
0071 };