apple,dwi-bl.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/backlight/apple,dwi-bl.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Apple DWI 2-Wire Interface Backlight Controller
  7. maintainers:
  8. - Nick Chan <towinchenmi@gmail.com>
  9. description:
  10. Apple SoCs contain a 2-wire interface called DWI. On some Apple iPhones,
  11. iPads and iPod touches with a LCD display, 1-2 backlight controllers
  12. are connected via DWI. Interfacing with DWI controls all backlight
  13. controllers at the same time. As such, the backlight controllers are
  14. treated as a single controller regardless of the underlying
  15. configuration.
  16. allOf:
  17. - $ref: common.yaml#
  18. properties:
  19. compatible:
  20. items:
  21. - enum:
  22. - apple,s5l8960x-dwi-bl
  23. - apple,t7000-dwi-bl
  24. - apple,s8000-dwi-bl
  25. - apple,t8010-dwi-bl
  26. - apple,t8015-dwi-bl
  27. - const: apple,dwi-bl
  28. reg:
  29. maxItems: 1
  30. power-domains:
  31. maxItems: 1
  32. required:
  33. - compatible
  34. - reg
  35. unevaluatedProperties: false
  36. examples:
  37. - |
  38. soc {
  39. #address-cells = <2>;
  40. #size-cells = <2>;
  41. dwi_bl: backlight@20e200010 {
  42. compatible = "apple,s5l8960x-dwi-bl", "apple,dwi-bl";
  43. reg = <0x2 0x0e200010 0x0 0x8>;
  44. power-domains = <&ps_dwi>;
  45. };
  46. };