Skip to content
Snippets Groups Projects
Commit b47e4a22 authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

[D18][DTBO] Add overlay for FN0700D101A 7-inch display

This adds the official Fannal FN0700D101A 7-inch display for Modular
Vision with the SOM-SMARC-MX8M-Plus.

MODV-75
parent 53c1f997
No related merge requests found
......@@ -43,6 +43,7 @@ dtbo-$(CONFIG_ARCH_MXC) += \
seco-imx8mp-d18-hdmi.dtbo\
seco-imx8mp-d18-edp.dtbo\
seco-imx8mp-d18-lvds-fhd.dtbo\
seco-imx8mp-d18-lvds-wsvga-fn0700d101a.dtbo\
seco-imx8mp-d18-lvds-wsvga-qx_070wsvgamml01d.dtbo\
seco-imx8mp-d18-lvds-wvga-ne070nb04f.dtbo\
seco-imx8mp-d18-lvds-wvga-umsh8596md.dtbo\
......
/*
* Copyright 2024 SECO
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <dt-bindings/gpio/gpio.h>
#include "../include/imx8mp-pinfunc.h"
/dts-v1/;
/plugin/;
/ {
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
/* __________________________________________________________________________
* | |
* | FN0700D101A for D18 |
* |__________________________________________________________________________|
*/
fragment@0 {
target-path = "/";
__overlay__ {
panel_lvds: lvds_panel {
status = "okay";
compatible = "panel-lvds";
data-mapping = "vesa-24";
width-mm = <154>;
height-mm = <86>;
/* See hogging group in base DT for display_enable_pinctrl */
enable-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>;
backlight = <&pwm_backlight>;
panel-timing {
clock-frequency = <49500000>;
hactive = <1024>;
vactive = <600>;
hfront-porch = <158>;
hsync-len = <4>;
hback-porch = <158>;
vfront-porch = <15>;
vsync-len = <5>;
vback-porch = <15>;
};
port {
panel_lvds1_in: endpoint {
remote-endpoint = <&lvds1_out>;
};
};
};
pwm_backlight: pwm_backlight {
compatible = "pwm-backlight";
status = "okay";
/* See hogging group in base DT for backlight_enable_pinctrl */
enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
pwms = <&pwm1 0 100000 0>;
brightness-levels = < 0 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 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <75>;
};
};
};
fragment@1 {
target = <&ldb>;
__overlay__ {
status = "okay";
lvds-channel@0 {
status = "okay";
fsl,data-mapping = "spwg";
fsl,data-width = <24>;
port@1 {
reg = <1>;
lvds1_out: endpoint {
remote-endpoint = <&panel_lvds1_in>;
};
};
};
};
};
fragment@2 {
target = <&lcdif2>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&ldb_phy>;
__overlay__ {
status = "okay";
};
};
/*
* The display_enable_pinctrl and backlight_enable_pinctrl are configured
* in the hogging group of the base DT. Our preferred values are:
*
* MX8MP_IOMUXC_SAI2_RXFS__GPIO4_IO21 0x16 (display_enable)
* MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x16 (backlight_enable)
*/
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment