diff --git a/arch/arm64/boot/dts/seco/overlays/Makefile b/arch/arm64/boot/dts/seco/overlays/Makefile index 13b76a76c81e2ce210f2bcec3657d26a273c62e1..8906bfdab41bfb81ed3774c2ede84d5de3402da9 100644 --- a/arch/arm64/boot/dts/seco/overlays/Makefile +++ b/arch/arm64/boot/dts/seco/overlays/Makefile @@ -51,6 +51,7 @@ dtbo-$(CONFIG_ARCH_MXC) += \ seco-imx8mn-c72-edp.dtbo\ seco-imx8mn-c72-lvds-dual-215.dtbo\ seco-imx8mn-c72-lvds-dual-156.dtbo \ + seco-imx8qxp-c57-lvds-800x480.dtbo \ seco-imx8qxp-c57-lvds-1024x600.dtbo \ seco-imx8qxp-c57-sn65dsi86-edp.dtbo diff --git a/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-800x480-overlay.dts b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-800x480-overlay.dts new file mode 100644 index 0000000000000000000000000000000000000000..e6185fe4cd3668c2b5c4db1493eb50e02eb8a64b --- /dev/null +++ b/arch/arm64/boot/dts/seco/overlays/seco-imx8qxp-c57-lvds-800x480-overlay.dts @@ -0,0 +1,136 @@ +/* + * Copyright 2017-2018 NXP + * + * 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/display/media-bus-format.h> +#include <dt-bindings/gpio/gpio.h> + +/dts-v1/; +/plugin/; + +/ { + compatible = "fsl,imx8qxp-mek","seco,imx8qxp-c57","fsl,imx8qxp"; + +/* __________________________________________________________________________ + * | | + * | LVDS 800x480 (SINGLE CHANNEL) | + * |__________________________________________________________________________| + */ + + fragment@0 { + target-path = "/"; + __overlay__ { + regulators { + mux_sel: mux_sel { + compatible = "regulator-fixed"; + regulator-name = "MUX_SEL"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; + regulator-always-on; + }; + }; + }; + }; + + fragment@1 { + target-path = "/"; + __overlay__ { + lvds_panel { + compatible = "seco-innolux,ne070nb-04f", "panel-dpi"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + no-hpd; + + bpc = <8>; + width-mm = <154>; + height-mm = <89>; + prepare-ms = <10>; + enable-ms = <100>; + disable-ms = <100>; + unprepare-ms = <800>; + bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA>; + + panel-timing { + clock-frequency = <50000000>; + hactive = <800>; + vactive = <480>; + hback-porch = <1>; + hsync-len = <45>; + hfront-porch = <200>; + vback-porch = <22>; + vsync-len = <2>; + vfront-porch = <9>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + port@0 { + panel_lvds_in: endpoint { + remote-endpoint = <&lvds_out>; + }; + }; + }; + }; + }; + + fragment@2 { + target = <&ldb1_phy>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&ldb1>; + __overlay__ { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + lvds-channel@0 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + /delete-node/ port@1; + + port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + lvds_out: endpoint { + remote-endpoint = <&panel_lvds_in>; + }; + }; + }; + }; + }; + + fragment@4 { + target = <&ldb2_phy>; + __overlay__ { + status = "disabled"; + }; + }; + + fragment@5 { + target = <&ldb2>; + __overlay__ { + status = "disabled"; + }; + }; +}; \ No newline at end of file