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

arm64:dts: Add 7-inch Fannal display for MV with D18

parent 966d08e0
No related branches found
No related tags found
1 merge request!580arm64:dts: Add 7-inch Fannal display for MV with D18
Pipeline #212644 passed
Pipeline: linux-imx-kuk

#212645

    ...@@ -11,6 +11,7 @@ dtb-$(CONFIG_ARCH_MXC) += \ ...@@ -11,6 +11,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
    seco-imx8mp-d18-mv-g156han02.dtb \ seco-imx8mp-d18-mv-g156han02.dtb \
    seco-imx8mp-d18-mv-fg0700w0dsswagl1.dtb \ seco-imx8mp-d18-mv-fg0700w0dsswagl1.dtb \
    seco-imx8mp-d18-mv-fld-070fml72pi004.dtb \ seco-imx8mp-d18-mv-fld-070fml72pi004.dtb \
    seco-imx8mp-d18-mv-fn0700d101a.dtb \
    dts-dirs += overlays dts-dirs += overlays
    subdir-y := $(dts-dirs) subdir-y := $(dts-dirs)
    ......
    /*
    * Copyright 2024 SECO
    */
    / {
    /* Only valid for SMARC D18 */
    reg_lcd1_bkl_en: regulator-lcd1-bkl-en {
    compatible = "regulator-fixed";
    regulator-name = "lcd1_bkl_en";
    regulator-min-microvolt = <3300000>;
    regulator-max-microvolt = <3300000>;
    gpio = <&pca6416 6 0>;
    enable-active-high;
    regulator-always-on;
    regulator-boot-on;
    status = "okay";
    };
    };
    &panel_lvds {
    status = "okay";
    compatible = "panel-lvds";
    data-mapping = "vesa-24";
    width-mm = <154>;
    height-mm = <86>;
    #ifdef DISPLAY_ENABLE
    pinctrl-0 = <&pinctrl_display_enable>;
    pinctrl-names = "default";
    enable-gpios = <display_enable GPIO_ACTIVE_HIGH>;
    #endif
    #ifdef BACKLIGHT_PWM
    backlight = <&backlight1>;
    #endif
    panel-timing {
    clock-frequency = <51206400>;
    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>;
    };
    };
    };
    #ifdef BACKLIGHT_PWM
    &backlight1 {
    status = "okay";
    pwms = <backlight_pwm 0 100000 0>;
    pinctrl-0 = <&pinctrl_backlight_enable>;
    pinctrl-names = "default";
    enable-gpios = <backlight_enable GPIO_ACTIVE_HIGH>;
    };
    #endif
    &lcdif2 {
    status = "okay";
    };
    &ldb {
    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>;
    };
    };
    };
    };
    &ldb_phy {
    status = "okay";
    };
    &iomuxc {
    #ifdef DISPLAY_ENABLE
    pinctrl_display_enable: display-enable {
    fsl,pins = <
    DISPLAY_ENABLE PAD_GPIO
    >;
    };
    #endif
    #ifdef BACKLIGHT_ENABLE
    pinctrl_backlight_enable: backlight-enable {
    fsl,pins = <
    BACKLIGHT_ENABLE PAD_GPIO
    >;
    };
    #endif
    };
    /*
    * Copyright 2024 SECO Northern Europe GmbH
    */
    /dts-v1/;
    #include "../seconorth/imx8mp-pinfunc.h"
    #define DISPLAY_ENABLE MX8MP_IOMUXC_SAI2_RXFS__GPIO4_IO21
    #define display_enable &gpio4 21
    #define BACKLIGHT_PWM
    #define backlight_pwm &pwm1
    #define BACKLIGHT_ENABLE MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06
    #define backlight_enable &gpio1 6
    #define ENABLE_TOUCH
    #define touch_int_parent &pca6416
    #define touch_int_pin 4
    #define touch_int &pca6416 4
    #define touch_reset_pin 2
    #define touch_reset &pca6416 2
    #include "include/imx8mp-d18.dtsi"
    #include "include/mv.dtsi"
    #include "include/fn0700d101a.dtsi"
    / {
    model = "SECO Group SMARC i.MX8MP FN0700D101A (D18 / LEVY)";
    compatible = "fsl,imx8mp";
    };
    #ifdef ENABLE_TOUCH
    &i2c2 {
    maxtouch@4a {
    compatible = "atmel,maxtouch";
    status = "okay";
    reg = <0x4a>;
    /*
    * The touch_int is connected to the GPIO-Expander
    * and needs no pinmuxing.
    */
    interrupt-parent = <touch_int_parent>;
    interrupts = <touch_int_pin IRQ_TYPE_LEVEL_LOW>;
    /*
    * The atmel-mxt driver doesn't support the irq-gpio
    * or the irq-low-active properties.
    */
    #ifdef touch_reset
    reset-gpio = <touch_reset GPIO_ACTIVE_LOW>;
    reset-low-active = <1>;
    #endif
    };
    };
    #endif
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please to comment