summaryrefslogtreecommitdiff
path: root/overlays/verdin-imx8mp_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/verdin-imx8mp_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts')
-rw-r--r--overlays/verdin-imx8mp_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts96
1 files changed, 65 insertions, 31 deletions
diff --git a/overlays/verdin-imx8mp_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts b/overlays/verdin-imx8mp_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts
index 80703c5..c0bf87e 100644
--- a/overlays/verdin-imx8mp_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts
+++ b/overlays/verdin-imx8mp_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts
@@ -9,36 +9,30 @@
/dts-v1/;
/plugin/;
+/ {
+ compatible = "toradex,verdin-imx8mp";
+};
+
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pwm/pwm.h>
-/ {
- compatible = "toradex,verdin-imx8mp";
-};
+#include "verdin-imx8mp_backlight-dsi_overlay.dtsi"
+#include "display-lt170410-dsi-lvds_overlay.dtsi"
&{/} {
- backlight {
- compatible = "pwm-backlight";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2s_2_d_out_dsi_1_bkl_en>;
- brightness-levels = <0 45 63 88 119 158 203 255>;
- default-brightness-level = <4>;
- /* Verdin I2S_2_D_OUT (DSI_1_BKL_EN/DSI_1_BKL_EN_LVDS, SODIMM 46) */
- enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
- power-supply = <&reg_3p3v>;
- /* Verdin PWM_3_DSI/PWM_3_DSI_LVDS (SODIMM 19) */
- pwms = <&pwm3 0 6666667 PWM_POLARITY_INVERTED>;
- status = "okay";
+ reg_dsi_lvds: regulator-dsi-lvds {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */
+ gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
+ regulator-boot-on;
+ regulator-name = "DSI_1_PWR_EN";
};
+};
- panel_lvds: panel-lvds {
- compatible = "panel-lvds";
- backlight = <&backlight>;
- data-mapping = "vesa-24";
- height-mm = <136>;
- width-mm = <217>;
- };
+&backlight_verdin_dsi {
+ pwms = <&pwm3 0 6666667 PWM_POLARITY_INVERTED>;
};
/* Verdin I2C_1 */
@@ -47,7 +41,7 @@
#size-cells = <0>;
status = "okay";
- lvds_ti_sn65dsi84: bridge@2c {
+ bridge@2c {
compatible = "ti,sn65dsi84";
reg = <0x2c>;
pinctrl-names = "default";
@@ -55,6 +49,30 @@
/* Verdin GPIO_9_DSI (SN65DSI84 IRQ, SODIMM 17, unused) */
/* Verdin GPIO_10_DSI (SODIMM 21) */
enable-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
+ vcc-supply = <&reg_dsi_lvds>;
+ status = "okay";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ dsi_lvds_bridge_in: endpoint {
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&mipi_dsi_bridge1_out>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ dsi_lvds_bridge_out: endpoint {
+ remote-endpoint = <&panel_in_lt170410>;
+ };
+ };
+ };
};
touch@4a {
@@ -80,16 +98,32 @@
status = "okay";
};
-/* Verdin PWM_3_DSI */
-&pwm3 {
+&mipi_dsi {
+ samsung,esc-clock-frequency = <16000000>;
status = "okay";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@1 {
+ reg = <1>;
+
+ mipi_dsi_bridge1_out: endpoint {
+ attach-bridge;
+ remote-endpoint = <&dsi_lvds_bridge_in>;
+ };
+ };
+ };
};
-&reg_dsi_lvds {
- /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */
- gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
+&panel_lt170410 {
+ backlight = <&backlight_verdin_dsi>;
+
+ port {
+ panel_in_lt170410: endpoint {
+ remote-endpoint = <&dsi_lvds_bridge_out>;
+ };
+ };
};
-/* As the following make use of labels only just created above */
-#include "display-lt170410_sn65dsi84_overlay.dtsi"
-#include "verdin-imx8_mipi-dsi-to-sn65dsi84.dtsi"