diff options
Diffstat (limited to 'overlays/verdin-imx8mm_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts')
| -rw-r--r-- | overlays/verdin-imx8mm_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts | 113 |
1 files changed, 97 insertions, 16 deletions
diff --git a/overlays/verdin-imx8mm_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts b/overlays/verdin-imx8mm_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts index e9c1929..5600159 100644 --- a/overlays/verdin-imx8mm_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts +++ b/overlays/verdin-imx8mm_dsi-to-lvds_panel-cap-touch-10inch-lvds_overlay.dts @@ -13,38 +13,119 @@ compatible = "toradex,verdin-imx8mm"; }; -#include "verdin-imx8_mipi-dsi-to-sn65dsi84.dtsi" -#include "display-lt170410_sn65dsi84_overlay.dtsi" +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/pwm/pwm.h> -&atmel_mxt_ts { - vdd-supply = <®_dsi_lvds>; - status = "okay"; -}; +#include "verdin-imx8mm_backlight-dsi_overlay.dtsi" +#include "display-lt170410-dsi-lvds_overlay.dtsi" -&backlight { - status = "okay"; +&{/} { + reg_dsi_lvds: regulator-dsi-lvds { + compatible = "regulator-fixed"; + enable-active-high; + /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ + gpio = <&gpio5 1 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + regulator-name = "DSI_1_PWR_EN"; + }; }; -/* Verdin I2C_2_DSI */ -&i2c2 { - status = "okay"; +&backlight_verdin_dsi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2s_2_d_out_dsi_1_bkl_en>; + /* Verdin I2S_2_D_OUT (DSI_1_BKL_EN/DSI_1_BKL_EN_LVDS, SODIMM 46) */ + enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; + pwms = <&pwm1 0 6666667 PWM_POLARITY_INVERTED>; }; /* Verdin I2C_1 */ &i2c4 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; + + bridge@2c { + compatible = "ti,sn65dsi84"; + reg = <0x2c>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_10_dsi>; + /* Verdin GPIO_9_DSI (SN65DSI84 IRQ, SODIMM 17, unused) */ + /* Verdin GPIO_10_DSI (SODIMM 21) */ + enable-gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>; + vcc-supply = <®_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 { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + /* + * Verdin GPIO_9_DSI + * (TOUCH_INT#, SODIMM 17, also routed to SN65DSI84 IRQ albeit currently unused) + */ + interrupt-parent = <&gpio3>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_9_dsi>, <&pinctrl_i2s_2_bclk_touch_reset>; + /* Verdin I2S_2_BCLK (TOUCH_RESET#, SODIMM 42) */ + reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; + vdd-supply = <®_dsi_lvds>; + status = "okay"; + }; }; &lcdif { status = "okay"; }; -/* Verdin PWM_3_DSI */ -&pwm1 { +&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>; + }; + }; + }; }; -®_dsi_lvds { - /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ - gpio = <&gpio5 1 GPIO_ACTIVE_HIGH>; +&panel_lt170410 { + backlight = <&backlight_verdin_dsi>; + + port { + panel_in_lt170410: endpoint { + remote-endpoint = <&dsi_lvds_bridge_out>; + }; + }; }; |
