diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-03-26 14:24:56 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-05-18 11:21:51 +0300 |
commit | be61bb42f9a29786004928c948eb0a66c2676a6c (patch) | |
tree | bdb1291ad34edfe046cd69a46a7011120b114923 | |
parent | 2dc408f126ee45615579a8dbf23c7313ffda138b (diff) | |
download | linux-dt-be61bb42f9a29786004928c948eb0a66c2676a6c.tar.gz |
Add DT overlays for AM5 IDK LCDs
Add DT overlays for AM57[124]x IDKs to add LCD and touchscreen support.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | arch/arm/boot/dts/ti/am571x-idk-touchscreen.dtso | 14 | ||||
-rw-r--r-- | arch/arm/boot/dts/ti/am572x-idk-touchscreen.dtso | 13 | ||||
-rw-r--r-- | arch/arm/boot/dts/ti/am57xx-idk-osd-lcd-common.dtso | 61 |
4 files changed, 95 insertions, 0 deletions
@@ -103,6 +103,13 @@ dtb-tests-arm += \ am57xx-beagle-x15.dtb,ti/am57xx-evm-common.dtbo,ti/am57xx-evm.dtbo \ am57xx-beagle-x15-revc.dtb,ti/am57xx-evm-common.dtbo,ti/am57xx-evm-reva3.dtbo +dtb-tests-arm += \ + am571x-idk.dtb,ti/am57xx-idk-osd-lcd-common.dtbo,ti/am571x-idk-touchscreen.dtbo,ti/lcd-osd101t2045.dtbo \ + am571x-idk.dtb,ti/am57xx-idk-osd-lcd-common.dtbo,ti/am571x-idk-touchscreen.dtbo,ti/lcd-osd101t2587.dtbo \ + am572x-idk.dtb,ti/am57xx-idk-osd-lcd-common.dtbo,ti/am572x-idk-touchscreen.dtbo,ti/lcd-osd101t2045.dtbo \ + am572x-idk.dtb,ti/am57xx-idk-osd-lcd-common.dtbo,ti/am572x-idk-touchscreen.dtbo,ti/lcd-osd101t2587.dtbo \ + am574x-idk.dtb,ti/am57xx-idk-osd-lcd-common.dtbo,ti/am572x-idk-touchscreen.dtbo,ti/lcd-osd101t2587.dtbo + dtb-tests-arm64 := \ ti/k3-am654-base-board.dtb,ti/k3-am654-gp.dtbo \ ti/k3-am654-base-board.dtb,ti/k3-am654-evm-hdmi.dtbo \ diff --git a/arch/arm/boot/dts/ti/am571x-idk-touchscreen.dtso b/arch/arm/boot/dts/ti/am571x-idk-touchscreen.dtso new file mode 100644 index 0000000..415de57 --- /dev/null +++ b/arch/arm/boot/dts/ti/am571x-idk-touchscreen.dtso @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include <dt-bindings/interrupt-controller/irq.h> + +&touchscreen { + interrupt-parent = <&gpio5>; + interrupts = <6 IRQ_TYPE_EDGE_FALLING>; +}; diff --git a/arch/arm/boot/dts/ti/am572x-idk-touchscreen.dtso b/arch/arm/boot/dts/ti/am572x-idk-touchscreen.dtso new file mode 100644 index 0000000..c373294 --- /dev/null +++ b/arch/arm/boot/dts/ti/am572x-idk-touchscreen.dtso @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; +#include <dt-bindings/interrupt-controller/irq.h> + +&touchscreen { + interrupt-parent = <&gpio3>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; +}; diff --git a/arch/arm/boot/dts/ti/am57xx-idk-osd-lcd-common.dtso b/arch/arm/boot/dts/ti/am57xx-idk-osd-lcd-common.dtso new file mode 100644 index 0000000..69a899a --- /dev/null +++ b/arch/arm/boot/dts/ti/am57xx-idk-osd-lcd-common.dtso @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> + +/ { + fragment@101 { + target-path = "/"; + + __overlay__ { + aliases { + display0 = "/display"; + display1 = "/connector"; + }; + + lcd_bl: backlight { + compatible = "pwm-backlight"; + pwms = <&ecap0 0 50000 1>; + brightness-levels = <0 51 53 56 62 75 101 152 255>; + default-brightness-level = <8>; + }; + }; + }; +}; + +&dsi_bridge { + status = "okay"; +}; + +&i2c1 { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen: edt-ft5506@38 { + status = "okay"; + compatible = "edt,edt-ft5506", "edt,edt-ft5x06"; + + reg = <0x38>; + + /* GPIO line is inverted before going to touch panel */ + reset-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>; + + touchscreen-size-x = <1920>; + touchscreen-size-y = <1200>; + + wakeup-source; + }; +}; + +&epwmss0 { + status = "okay"; +}; + +&ecap0 { + status = "okay"; +}; |