# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/panel/apple,summit.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple "Summit" display panel

maintainers:
  - Sasha Finkelstein <fnkl.kernel@gmail.com>

description:
  An OLED panel used as a touchbar on certain Apple laptops.
  Contains a backlight device, which controls brightness of the panel itself.
  The backlight common properties are included for this reason

allOf:
  - $ref: panel-common.yaml#
  - $ref: /schemas/leds/backlight/common.yaml#

properties:
  compatible:
    items:
      - enum:
          - apple,j293-summit
          - apple,j493-summit
      - const: apple,summit

  reg:
    maxItems: 1

required:
  - compatible
  - reg
  - max-brightness
  - port

unevaluatedProperties: false

examples:
  - |
    dsi {
        #address-cells = <1>;
        #size-cells = <0>;

        panel@0 {
            compatible = "apple,j293-summit", "apple,summit";
            reg = <0>;
            max-brightness = <255>;

            port {
                endpoint {
                    remote-endpoint = <&dfr_bridge_out>;
                };
            };
        };
    };
...