AM57x EVM Device Tree Overlays
v4 cover AM57x EVM Device Tree Overlays
Hello all,
These are a set of uncontroversial (hopefully) DT Overlays to support the TI AM57x EVM and displays for AM57x IDKs. More complex cases are staged and ready to follow, but wanted to test the water with these first.
For some reason dtbs_check does not get run on overlays, this will need further investigation to fix in kbuild. For now I ran it through manually but am not 100% sure it actually checked it, so double checks here very welcome.
Thanks,
Andrew
Changes from v3:
- Rebased on v6.3-rc1
Changes from v2:
- Rebased on v6.2-rc5
Changes from v1:
- Made touchscreen node name generic
- Used proper interrupt flags
Andrew Davis (3):
ARM: dts: ti: Add AM57xx GP EVM board support
ARM: dts: ti: Add AM57xx GP EVM Rev A3 board support
ARM: dts: am57xx-idk: Add IDK displays and touchscreens
arch/arm/boot/dts/Makefile | 8 ++ arch/arm/boot/dts/am571x-idk-touchscreen.dtso | 32 +++++ arch/arm/boot/dts/am572x-idk-touchscreen.dtso | 32 +++++ arch/arm/boot/dts/am57xx-evm.dtso | 127 ++++++++++++++++++ .../boot/dts/am57xx-idk-lcd-osd101t2045.dtso | 63 +++++++++ .../boot/dts/am57xx-idk-lcd-osd101t2587.dtso | 66 +++++++++ 6 files changed, 328 insertions(+) create mode 100644 arch/arm/boot/dts/am571x-idk-touchscreen.dtso create mode 100644 arch/arm/boot/dts/am572x-idk-touchscreen.dtso create mode 100644 arch/arm/boot/dts/am57xx-evm.dtso create mode 100644 arch/arm/boot/dts/am57xx-idk-lcd-osd101t2045.dtso create mode 100644 arch/arm/boot/dts/am57xx-idk-lcd-osd101t2587.dtso
Signature · 1 line
2.39.2
PATCH v4 1/3 ARM: dts: ti: Add AM57xx GP EVM board support
The AM57xx GP EVM boards are built on top the AM57xx BeagleBoard-X15. The EVM extends the BeagleBoard by adding a touchscreen, some buttons, and a handful of peripheral extension slots.
Being a plugin extension of an existing standalone board; we define the am57xx-evm as a composite-DTB of the base am57xx-beagle-x15 and a new am57xx-evm overlay.
--- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/am57xx-evm.dtso | 127 ++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 arch/arm/boot/dts/am57xx-evm.dtso
arch/arm/boot/dts/Makefile +2 -0
@@ -994,10 +994,12 @@ dtb-$(CONFIG_SOC_OMAP5) += \ omap5-igep0050.dtb \ omap5-sbc-t54.dtb \ omap5-uevm.dtb +am57xx-evm-dtbs := am57xx-beagle-x15.dtb am57xx-evm.dtbo dtb-$(CONFIG_SOC_DRA7XX) += \ am57xx-beagle-x15.dtb \ am57xx-beagle-x15-revb1.dtb \ am57xx-beagle-x15-revc.dtb \ + am57xx-evm.dtb \ am5729-beagleboneai.dtb \ am57xx-cl-som-am57x.dtb \ am57xx-sbc-am57x.dtb \
arch/arm/boot/dts/am57xx-evm.dtso new file +127 -0
127 lines not on this page · raw message
Signature · 1 line
2.39.2
PATCH v4 2/3 ARM: dts: ti: Add AM57xx GP EVM Rev A3 board support
In reply to Andrew DavisThe A3 revision of the AM57xx GP EVM has the same EVM feature set as the original but is paired with an updated revision C BeagleBoard X15.
DT Overlays allow us to model this in the same way, we simply apply the EVM overlay to the Rev C BeagleBoard to create the Rev A3 AM57xx GP EVM.
--- arch/arm/boot/dts/Makefile | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/boot/dts/Makefile +2 -0
@@ -995,11 +995,13 @@ dtb-$(CONFIG_SOC_OMAP5) += \ omap5-sbc-t54.dtb \ omap5-uevm.dtb am57xx-evm-dtbs := am57xx-beagle-x15.dtb am57xx-evm.dtbo +am57xx-evm-reva3-dtbs := am57xx-beagle-x15-revc.dtb am57xx-evm.dtbo dtb-$(CONFIG_SOC_DRA7XX) += \ am57xx-beagle-x15.dtb \ am57xx-beagle-x15-revb1.dtb \ am57xx-beagle-x15-revc.dtb \ am57xx-evm.dtb \ + am57xx-evm-reva3.dtb \ am5729-beagleboneai.dtb \ am57xx-cl-som-am57x.dtb \ am57xx-sbc-am57x.dtb \
Signature · 1 line
2.39.2
PATCH v4 3/3 ARM: dts: am57xx-idk: Add IDK displays and touchscreens
In reply to Andrew DavisThis is a more interesting use of DT Overlays than the previous patches. Here we have two touchscreen modules. Each is compatible with, and can be attached to, either of the two AM57xx IDK development board variants (AM571x or AM572x).
Due to the way the extension header was wired on the development boards, the touch sensor on the touchscreen modules will connect to different SoC pins when connected. For this the touch sensor is modeled as an additional overlay that is specific to the development board for which it is connected.
Basically the LCD overlay can be swapped, but the touchscreen overlay that attaches to the LCD must be used with the corresponding base DT and not to the LCD.
AM571x -\ /- osd101t2045.dtbo -\ /- am571x-idk-touchscreen.dtbo
X X
AM572x -/ \- osd101t2587.dtbo -/ \- am572x-idk-touchscreen.dtbo
--- arch/arm/boot/dts/Makefile | 4 ++ arch/arm/boot/dts/am571x-idk-touchscreen.dtso | 32 +++++++++ arch/arm/boot/dts/am572x-idk-touchscreen.dtso | 32 +++++++++ .../boot/dts/am57xx-idk-lcd-osd101t2045.dtso | 63 ++++++++++++++++++ .../boot/dts/am57xx-idk-lcd-osd101t2587.dtso | 66 +++++++++++++++++++ 5 files changed, 197 insertions(+) create mode 100644 arch/arm/boot/dts/am571x-idk-touchscreen.dtso create mode 100644 arch/arm/boot/dts/am572x-idk-touchscreen.dtso create mode 100644 arch/arm/boot/dts/am57xx-idk-lcd-osd101t2045.dtso create mode 100644 arch/arm/boot/dts/am57xx-idk-lcd-osd101t2587.dtso
arch/arm/boot/dts/Makefile +4 -0
@@ -1006,8 +1006,12 @@ dtb-$(CONFIG_SOC_DRA7XX) += \ am57xx-cl-som-am57x.dtb \ am57xx-sbc-am57x.dtb \ am572x-idk.dtb \ + am572x-idk-touchscreen.dtbo \ am571x-idk.dtb \ + am571x-idk-touchscreen.dtbo \ am574x-idk.dtb \ + am57xx-idk-lcd-osd101t2045.dtbo \ + am57xx-idk-lcd-osd101t2587.dtbo \ dra7-evm.dtb \ dra72-evm.dtb \ dra72-evm-revc.dtb \
arch/arm/boot/dts/am571x-idk-touchscreen.dtso new file +32 -0
@@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019-2022 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> + +&i2c1 { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen: edt-ft5506@38 { + compatible = "edt,edt-ft5506", "edt,edt-ft5x06"; + + reg = <0x38>; + + interrupt-parent = <&gpio5>; + interrupts = <6 IRQ_TYPE_EDGE_FALLING>; + + /* 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; + }; +};
arch/arm/boot/dts/am572x-idk-touchscreen.dtso new file +32 -0
@@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019-2022 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> + +&i2c1 { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen: edt-ft5506@38 { + compatible = "edt,edt-ft5506", "edt,edt-ft5x06"; + + reg = <0x38>; + + interrupt-parent = <&gpio3>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; + + /* 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; + }; +};
arch/arm/boot/dts/am57xx-idk-lcd-osd101t2045.dtso new file +63 -0
63 lines not on this page · raw message
arch/arm/boot/dts/am57xx-idk-lcd-osd101t2587.dtso new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
2.39.2
Quoted 5 lines · Andrew Davis
Hello all,
These are a set of uncontroversial (hopefully) DT Overlays to support the TI AM57x EVM and displays for AM57x IDKs. More complex cases are staged and ready to follow, but wanted to test the water with these first.
Applying these into omap-for-v6.4/dt-overlays thanks.
Quoted 4 lines
For some reason
dtbs_checkdoes not get run on overlays, this will need further investigation to fix in kbuild. For now I ran it through manually but am not 100% sure it actually checked it, so double checks here very welcome.
Seems like that's a separate patch from this series.
Regards,
Tony