>From 5a202ed7c7aa3433e348c5fed176defab1af1fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Pava=C4=8Di=C4=87?= <paulo.pavacic@xxxxxxxxxxx> Date: Tue, 16 May 2023 12:17:38 +0200 Subject: [PATCH] dt-bindings: add panel-mipi-dsi-bringup DT schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add dt-bindings documentation for panel-mipi-dsi-bringup which currently supports fannal,C3004 panel. Also added fannal to vendor-prefixes. Signed-off-by: Paulo Pavačić <pavacic.p@xxxxxxxxx> --- .../display/panel/panel-mipi-dsi-bringup.yaml | 65 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + 2 files changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-bringup.yaml diff --git a/Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-bringup.yaml b/Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-bringup.yaml new file mode 100644 index 000000000000..a867f86fa984 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-mipi-dsi-bringup.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-mipi-dsi-bringup.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MIPI DSI Bringup driver + +description: | + This document defines device tree for the MIPI DSI Bringup driver. And all + the required parameters to get your panel to work. Driver was made to help + enabling MIPI DSI panels, to get those first pixels drawn on to the screen. + Since already you have to patch the driver with initialization sequences all + the settings such as DSI lanes, video mode, dsi formats are set in the + driver directly. SInce adding new panel can be overwhelming and to make + porting easier, you can search for word `INTERACTION` in the driver + to check sections that you have to modify . + + +maintainers: + - | + Paulo Pavačić + <paulo.pavacic@xxxxxxxxxxx> <pavacic.p@xxxxxxxxx> <@ppavacic:matrix.org> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: fannal,C3004 + + reg: true + reset-gpios: true + +required: + - compatible + - reg + - reset-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + //example on IMX8MM where GPIO pin 9 is used as a reset pin + &mipi_dsi { + status = "okay"; + panel@0 { + status = "okay"; + reg = <0>; + compatible = "fannal,C3004"; + pinctrl-0 = <&pinctrl_mipi_dsi_rst>; + pinctrl-names = "default"; + reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + }; + }; + &iomuxc { + pinctrl_mipi_dsi_rst: pinctrl_mipi_dsi_rst { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO09 0x16 + >; + }; + } + +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 82d39ab0231b..f962750f630a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -462,6 +462,8 @@ patternProperties: description: Facebook "^fairphone,.*": description: Fairphone B.V. + "^fannal,.*": + description: Fannal Electronics Co., Ltd "^faraday,.*": description: Faraday Technology Corporation "^fastrax,.*": -- 2.40.1