summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/leds/backlight/apple,dwi-bl.yaml
blob: 29caeb356e6f02d8945ab1b1f5f7572ff8592ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/leds/backlight/apple,dwi-bl.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple DWI 2-Wire Interface Backlight Controller

maintainers:
  - Nick Chan <towinchenmi@gmail.com>

description:
  Apple SoCs contain a 2-wire interface called DWI. On some Apple iPhones,
  iPads and iPod touches with a LCD display, 1-2 backlight controllers
  are connected via DWI. Interfacing with DWI controls all backlight
  controllers at the same time. As such, the backlight controllers are
  treated as a single controller regardless of the underlying
  configuration.

allOf:
  - $ref: common.yaml#

properties:
  compatible:
    items:
      - enum:
          - apple,s5l8960x-dwi-bl
          - apple,t7000-dwi-bl
          - apple,s8000-dwi-bl
          - apple,t8010-dwi-bl
          - apple,t8015-dwi-bl
      - const: apple,dwi-bl

  reg:
    maxItems: 1

  power-domains:
    maxItems: 1

required:
  - compatible
  - reg

unevaluatedProperties: false

examples:
  - |
    soc {
      #address-cells = <2>;
      #size-cells = <2>;

      dwi_bl: backlight@20e200010 {
        compatible = "apple,s5l8960x-dwi-bl", "apple,dwi-bl";
        reg = <0x2 0x0e200010 0x0 0x8>;
        power-domains = <&ps_dwi>;
      };
    };