1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: RaspberryPi 5" and 7" display V2 MCU-based regulator/backlight controller
8
9maintainers:
10  - Marek Vasut <marek.vasut+renesas@mailbox.org>
11
12description: |
13  The RaspberryPi 5" and 7" display 2 has an MCU-based regulator, PWM
14  backlight and GPIO controller on the PCB, which is used to turn the
15  display unit on/off and control the backlight.
16
17allOf:
18  - $ref: regulator.yaml#
19
20properties:
21  compatible:
22    const: raspberrypi,touchscreen-panel-regulator-v2
23
24  reg:
25    maxItems: 1
26
27  gpio-controller: true
28  "#gpio-cells":
29    const: 2
30    description:
31      The first cell is the pin number, and the second cell is used to
32      specify the gpio polarity (GPIO_ACTIVE_HIGH or GPIO_ACTIVE_LOW).
33
34  "#pwm-cells":
35    const: 3
36    description: See ../../pwm/pwm.yaml for description of the cell formats.
37
38additionalProperties: false
39
40required:
41  - compatible
42  - reg
43  - gpio-controller
44  - "#gpio-cells"
45  - "#pwm-cells"
46
47examples:
48  - |
49    i2c {
50      #address-cells = <1>;
51      #size-cells = <0>;
52      regulator@45 {
53        compatible = "raspberrypi,touchscreen-panel-regulator-v2";
54        reg = <0x45>;
55        gpio-controller;
56        #gpio-cells = <2>;
57        #pwm-cells = <3>;
58      };
59    };
60
61...
62