Commit 2fb9bf9a authored by Rob Herring's avatar Rob Herring
Browse files

dt-bindings: display: Convert mitsubishi,aa121td01 panel to DT schema



Convert the mitsubishi,aa121td01 LVDS panel binding to DT schema.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190705164221.4462-13-robh@kernel.org
parent ea8e4568
Loading
Loading
Loading
Loading
+0 −47
Original line number Diff line number Diff line
Mitsubishi AA121TD01 LVDS Display Panel
=======================================

The AA121TD01 is a 12.1" WXGA TFT-LCD display panel.

These DT bindings follow the LVDS panel bindings defined in panel-lvds.txt
with the following device-specific properties.


Required properties:

- compatible: Shall contain "mitsubishi,aa121td01" and "panel-lvds", in that
  order.
- vcc-supply: Reference to the regulator powering the panel VCC pins.


Example
-------

panel {
	compatible = "mitsubishi,aa121td01", "panel-lvds";
	vcc-supply = <&vcc_3v3>;

	width-mm = <261>;
	height-mm = <163>;

	data-mapping = "jeida-24";

	panel-timing {
		/* 1280x800 @60Hz */
		clock-frequency = <71000000>;
		hactive = <1280>;
		vactive = <800>;
		hsync-len = <70>;
		hfront-porch = <20>;
		hback-porch = <70>;
		vsync-len = <5>;
		vfront-porch = <3>;
		vback-porch = <15>;
	};

	port {
		panel_in: endpoint {
			remote-endpoint = <&lvds_encoder>;
		};
	};
};
+74 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/panel/mitsubishi,aa121td01.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Mitsubishi AA121TD01 12.1" WXGA LVDS Display Panel

maintainers:
  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
  - Thierry Reding <thierry.reding@gmail.com>

allOf:
  - $ref: lvds.yaml#

properties:
  compatible:
    items:
      - const: mitsubishi,aa121td01
      - {} # panel-lvds, but not listed here to avoid false select

  vcc-supply:
    description: Reference to the regulator powering the panel VCC pins.

  data-mapping:
    const: jeida-24

  width-mm:
    const: 261

  height-mm:
    const: 163

  panel-timing: true
  port: true

additionalProperties: false

required:
  - compatible
  - vcc-supply

examples:
  - |+
    panel {
      compatible = "mitsubishi,aa121td01", "panel-lvds";
      vcc-supply = <&vcc_3v3>;

      width-mm = <261>;
      height-mm = <163>;

      data-mapping = "jeida-24";

      panel-timing {
        /* 1280x800 @60Hz */
        clock-frequency = <71000000>;
        hactive = <1280>;
        vactive = <800>;
        hsync-len = <70>;
        hfront-porch = <20>;
        hback-porch = <70>;
        vsync-len = <5>;
        vfront-porch = <3>;
        vback-porch = <15>;
      };

      port {
        panel_in: endpoint {
          remote-endpoint = <&lvds_encoder>;
        };
      };
    };

...