From f73d8b1caf5b6b837ed39e2bdd60040163d43c56 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Tue, 26 May 2020 13:23:43 +0300 Subject: overlays: add initial overlays Naming format: __overlay.dts Signed-off-by: Igor Opaniuk --- overlays/apalis-imx6_atmel-mxt_overlay.dts | 22 ++++++++++ overlays/apalis-imx6_lvds_overlay.dts | 14 ++++++ overlays/apalis-imx6_parallel-rgb_overlay.dts | 14 ++++++ overlays/colibri-imx6-aster_atmel-mxt_overlay.dts | 40 +++++++++++++++++ overlays/colibri-imx6-eval_atmel-mxt_overlay.dts | 33 ++++++++++++++ overlays/colibri-imx7-aster_atmel-mxt_overlay.dts | 34 +++++++++++++++ overlays/colibri-imx7-eval_atmel-mxt_overlay.dts | 52 +++++++++++++++++++++++ overlays/display-edt5.7_overlay.dts | 27 ++++++++++++ overlays/display-edt7_overlay.dts | 27 ++++++++++++ overlays/display-lt161010_overlay.dts | 28 ++++++++++++ overlays/display-lt170410_overlay.dts | 34 +++++++++++++++ 11 files changed, 325 insertions(+) create mode 100644 overlays/apalis-imx6_atmel-mxt_overlay.dts create mode 100644 overlays/apalis-imx6_lvds_overlay.dts create mode 100644 overlays/apalis-imx6_parallel-rgb_overlay.dts create mode 100644 overlays/colibri-imx6-aster_atmel-mxt_overlay.dts create mode 100644 overlays/colibri-imx6-eval_atmel-mxt_overlay.dts create mode 100644 overlays/colibri-imx7-aster_atmel-mxt_overlay.dts create mode 100644 overlays/colibri-imx7-eval_atmel-mxt_overlay.dts create mode 100644 overlays/display-edt5.7_overlay.dts create mode 100644 overlays/display-edt7_overlay.dts create mode 100644 overlays/display-lt161010_overlay.dts create mode 100644 overlays/display-lt170410_overlay.dts diff --git a/overlays/apalis-imx6_atmel-mxt_overlay.dts b/overlays/apalis-imx6_atmel-mxt_overlay.dts new file mode 100644 index 0000000..6fae23b --- /dev/null +++ b/overlays/apalis-imx6_atmel-mxt_overlay.dts @@ -0,0 +1,22 @@ +// Atmel MXT touchscreen for the 7inch and 10inch display orderable at Toradex. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; + fragment@0 { + target-path="/soc/aips-bus@2100000/i2c@21a0000"; + __overlay__ { + status = "okay"; + atmel_mxt_ts: atmel_mxt_ts@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio6>; + interrupts = <10 2>; + reset-gpios = <&gpio6 9 0>; + status = "okay"; + }; + }; + }; +}; diff --git a/overlays/apalis-imx6_lvds_overlay.dts b/overlays/apalis-imx6_lvds_overlay.dts new file mode 100644 index 0000000..6adcf93 --- /dev/null +++ b/overlays/apalis-imx6_lvds_overlay.dts @@ -0,0 +1,14 @@ +// Enable the LVDS interface on the Apalis iMX6Q. Make sure to also select a valid display configuration. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; + fragment@0 { + target-path = "/ldb"; + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/overlays/apalis-imx6_parallel-rgb_overlay.dts b/overlays/apalis-imx6_parallel-rgb_overlay.dts new file mode 100644 index 0000000..b8eacde --- /dev/null +++ b/overlays/apalis-imx6_parallel-rgb_overlay.dts @@ -0,0 +1,14 @@ +// Enable the parallel RGB interface on the Apalis iMX6Q. Make sure to also select a valid display configuration. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; + fragment@0 { + target-path = "/disp0"; + __overlay__ { + status = "okay"; + }; + }; +}; diff --git a/overlays/colibri-imx6-aster_atmel-mxt_overlay.dts b/overlays/colibri-imx6-aster_atmel-mxt_overlay.dts new file mode 100644 index 0000000..11fd1ea --- /dev/null +++ b/overlays/colibri-imx6-aster_atmel-mxt_overlay.dts @@ -0,0 +1,40 @@ +// Atmel touchscreen for the 7inch capacitive display orderable at Toradex. Use this devicetree on the Aster board. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri_imx6dl"; + fragment@0 { + target = <&weim>; + __overlay__{ + status = "disabled"; + }; + }; + fragment@1 { + target = <&iomuxc>; + __overlay__ { + pinctrl_atmel_mxt_ts: atmelmxttsgrp { + fsl,pins = < + 0x300 0x6e8 0x000 0x5 0x0 0x1b0b1 + 0x140 0x510 0x000 0x5 0x0 0x1b0b1 + >; + }; + }; + }; + fragment@2 { + target = <&i2c3>; + __overlay__ { + atmel_mxt_ts: atmel_mxt_ts@4a { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_atmel_mxt_ts>; + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio2>; + interrupts = <24 2>; + reset-gpios = <&gpio1 14 0>; + status = "okay"; + }; + }; + }; +}; diff --git a/overlays/colibri-imx6-eval_atmel-mxt_overlay.dts b/overlays/colibri-imx6-eval_atmel-mxt_overlay.dts new file mode 100644 index 0000000..fac62f0 --- /dev/null +++ b/overlays/colibri-imx6-eval_atmel-mxt_overlay.dts @@ -0,0 +1,33 @@ +// Atmel touchscreen for the 7inch and 10inch display orderable at Toradex. Use this devicetree on the Evaluation or Iris board. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri_imx6dl"; + fragment@0 { + target = <&i2c3>; + __overlay__ { + atmel_mxt_ts: atmel_mxt_ts@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio1>; + interrupts = <9 2>; + reset-gpios = <&gpio2 10 0>; + status = "okay"; + }; + }; + }; + fragment@1 { + target = <&pwm1>; + __overlay__ { + status = "disabled"; + }; + }; + fragment@2 { + target = <&pwm4>; + __overlay__{ + status = "disabled"; + }; + }; +}; diff --git a/overlays/colibri-imx7-aster_atmel-mxt_overlay.dts b/overlays/colibri-imx7-aster_atmel-mxt_overlay.dts new file mode 100644 index 0000000..0fef20c --- /dev/null +++ b/overlays/colibri-imx7-aster_atmel-mxt_overlay.dts @@ -0,0 +1,34 @@ +// Atmel touchscreen for the 7inch capacitive display orderable at Toradex. Use this devicetree on the Aster board. + +/dts-v1/; +/plugin/; +/ { + compatible = "toradex,colibri-imx7d-emmc"; + fragment@0 { + target = <&i2c4>; + __overlay__ { + atmel_mxt_ts: atmel_mxt_ts@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio2>; + interrupts = <15 2>; + reset-gpios = <&gpio2 28 0>; + status = "okay"; + }; + }; + }; + + fragment@1 { + target = <&pwm2>; + __overlay__ { + status = "disabled"; + }; + }; + + fragment@2 { + target = <&pwm3>; + __overlay__ { + status = "disabled"; + }; + }; +}; diff --git a/overlays/colibri-imx7-eval_atmel-mxt_overlay.dts b/overlays/colibri-imx7-eval_atmel-mxt_overlay.dts new file mode 100644 index 0000000..2f29eff --- /dev/null +++ b/overlays/colibri-imx7-eval_atmel-mxt_overlay.dts @@ -0,0 +1,52 @@ +// Atmel touchscreen for the 7inch capacitive display orderable at Toradex. Use this devicetree on the Evaluation or Iris board. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri-imx7d-emmc"; + fragment@0 { + target = <&i2c4>; + __overlay__ { + atmel_mxt_ts: atmel_mxt_ts@4a { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_atmel_mxt_ts>; + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpio1>; + interrupts = <9 2>; + reset-gpios = <&gpio1 10 0>; + status = "okay"; + }; + }; + }; + fragment@1 { + target = <&pwm2>; + __overlay__ { + status = "disabled"; + }; + }; + fragment@2 { + target = <&pwm3>; + __overlay__{ + status = "disabled"; + }; + }; + fragment@3 { + target = <&iomuxc_lpsr>; + __overlay__ { + pinctrl_atmel_mxt_ts: atmelmxttsgrp { + fsl,pins = < + 0x0018 0x0270 0x0000 0x0 0x0 0x59 + 0x001C 0x0274 0x0000 0x0 0x0 0x59 + >; + }; + }; + }; + fragment@4 { + target = <&uart1>; + __overlay__ { + pinctrl-0 = <&pinctrl_uart1 &pinctrl_uart1_ctrl1>; + }; + }; +}; diff --git a/overlays/display-edt5.7_overlay.dts b/overlays/display-edt5.7_overlay.dts new file mode 100644 index 0000000..07aef51 --- /dev/null +++ b/overlays/display-edt5.7_overlay.dts @@ -0,0 +1,27 @@ +// EDT5.7 display with a resolution of 640x480 pixel + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri-imx7d-emmc","toradex,apalis_imx6q", "toradex,colibri_imx6dl"; + fragment@0 { + target-path = "/panel-dpi"; + __overlay__ { + status = "okay"; + width-mm = <116>; + height-mm = <86>; + panel-timing { + clock-frequency = <25175000>; + hactive = <640>; + vactive = <480>; + hsync-len = <30>; + hfront-porch = <16>; + hback-porch = <114>; + vsync-len = <3>; + vfront-porch = <10>; + vback-porch = <32>; + }; + }; + }; +}; diff --git a/overlays/display-edt7_overlay.dts b/overlays/display-edt7_overlay.dts new file mode 100644 index 0000000..a62cfea --- /dev/null +++ b/overlays/display-edt7_overlay.dts @@ -0,0 +1,27 @@ +// EDT7 display with a resolution of 800x480 pixel + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri-imx7d-emmc","toradex,apalis_imx6q", "toradex,colibri_imx6dl"; + fragment@0 { + target-path = "/panel-dpi"; + __overlay__ { + status = "okay"; + width-mm = <155>; + height-mm = <91>; + panel-timing { + clock-frequency = <33230769>; + hactive = <800>; + vactive = <480>; + hsync-len = <128>; + hfront-porch = <40>; + hback-porch = <88>; + vsync-len = <1>; + vfront-porch = <10>; + vback-porch = <33>; + }; + }; + }; +}; diff --git a/overlays/display-lt161010_overlay.dts b/overlays/display-lt161010_overlay.dts new file mode 100644 index 0000000..5fba8d9 --- /dev/null +++ b/overlays/display-lt161010_overlay.dts @@ -0,0 +1,28 @@ +// LT161010 display (7inch) with a resolution of 800x480 pixel. This display can be ordered at Toradex. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri-imx7d-emmc","toradex,apalis_imx6q", "toradex,colibri_imx6dl"; + fragment@0 { + target-path = "/panel-dpi"; + __overlay__ { + status = "okay"; + width-mm = <154>; + height-mm = <86>; + panel-timing { + clock-frequency = <33230769>; + hactive = <800>; + vactive = <480>; + hsync-len = <128>; + hfront-porch = <40>; + hback-porch = <88>; + vsync-len = <1>; + vfront-porch = <10>; + vback-porch = <33>; + pixelclk-active = <1>; + }; + }; + }; +}; diff --git a/overlays/display-lt170410_overlay.dts b/overlays/display-lt170410_overlay.dts new file mode 100644 index 0000000..5c9fc34 --- /dev/null +++ b/overlays/display-lt170410_overlay.dts @@ -0,0 +1,34 @@ +// LT170410 display (10inch) with a resolution of 1280x800 pixel. This display can be ordered at Toradex. + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,apalis_imx6q"; + + fragment@0 { + target-path="/panel-lvds"; + __overlay__ { + status = "okay"; + + data-mapping = "vesa-24"; + width-mm = <217>; + height-mm = <136>; + + panel-timing { + clock-frequency = <68930000>; + hactive = <1280>; + vactive = <800>; + hback-porch = <64>; + hfront-porch = <64>; + vback-porch = <5>; + vfront-porch = <5>; + hsync-len = <40>; + vsync-len = <6>; + hsync-active = <0>; + vsync-active = <0>; + pixelclk-active = <0>; + }; + }; + }; +}; -- cgit v1.2.3