raspberrypi,7inch-touchscreen-panel-regulator-v2.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. title: RaspberryPi 5" and 7" display V2 MCU-based regulator/backlight controller
  7. maintainers:
  8. - Marek Vasut <marek.vasut+renesas@mailbox.org>
  9. description: |
  10. The RaspberryPi 5" and 7" display 2 has an MCU-based regulator, PWM
  11. backlight and GPIO controller on the PCB, which is used to turn the
  12. display unit on/off and control the backlight.
  13. allOf:
  14. - $ref: regulator.yaml#
  15. properties:
  16. compatible:
  17. const: raspberrypi,touchscreen-panel-regulator-v2
  18. reg:
  19. maxItems: 1
  20. gpio-controller: true
  21. "#gpio-cells":
  22. const: 2
  23. description:
  24. The first cell is the pin number, and the second cell is used to
  25. specify the gpio polarity (GPIO_ACTIVE_HIGH or GPIO_ACTIVE_LOW).
  26. "#pwm-cells":
  27. const: 3
  28. description: See ../../pwm/pwm.yaml for description of the cell formats.
  29. additionalProperties: false
  30. required:
  31. - compatible
  32. - reg
  33. - gpio-controller
  34. - "#gpio-cells"
  35. - "#pwm-cells"
  36. examples:
  37. - |
  38. i2c {
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. regulator@45 {
  42. compatible = "raspberrypi,touchscreen-panel-regulator-v2";
  43. reg = <0x45>;
  44. gpio-controller;
  45. #gpio-cells = <2>;
  46. #pwm-cells = <3>;
  47. };
  48. };
  49. ...