2022-11-01 23:57:40

by Andrew Davis

[permalink] [raw]
Subject: [PATCH v2 0/2] AM57x EVM Device Tree Overlays

Hello all,

These is an uncontroversial (hopefully) DT Overlay to support the
TI AM57x EVM. More complex cases are staged and ready to follow but
wanted to test the water with this one.

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.

Series depends on https://www.spinics.net/lists/kernel/msg4548509.html

Thanks,
Andrew

Changes from v1:
- Made touchscreen node name generic
- Used proper interrupt flags

Andrew Davis (2):
ARM: dts: ti: Add AM57xx GP EVM board support
ARM: dts: ti: Add AM57xx GP EVM Rev A3 board support

arch/arm/boot/dts/Makefile | 4 +
arch/arm/boot/dts/am57xx-evm.dtso | 127 ++++++++++++++++++++++++++++++
2 files changed, 131 insertions(+)
create mode 100644 arch/arm/boot/dts/am57xx-evm.dtso

--
2.37.3



2022-11-01 23:58:00

by Andrew Davis

[permalink] [raw]
Subject: [PATCH v2 1/2] 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.

Signed-off-by: Tero Kristo <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Signed-off-by: Suman Anna <[email protected]>
Signed-off-by: Andrew Davis <[email protected]>
---
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

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index e48cfbc4e8e4f..0a281b81cc42a 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -985,10 +985,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 \
diff --git a/arch/arm/boot/dts/am57xx-evm.dtso b/arch/arm/boot/dts/am57xx-evm.dtso
new file mode 100644
index 0000000000000..12385a31061e9
--- /dev/null
+++ b/arch/arm/boot/dts/am57xx-evm.dtso
@@ -0,0 +1,127 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * DT overlay for AM57xx GP EVM boards
+ *
+ * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+&{/} {
+ compatible = "ti,am5728-evm", "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
+ model = "TI AM5728 EVM";
+
+ aliases {
+ display0 = "/display";
+ display1 = "/connector"; // Fixme: &lcd0 and &hdmi0 could be
+ // resolved here correcly based on
+ // information in the base dtb symbol
+ // table with a fix in dtc
+ };
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ button-user1 {
+ gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
+ label = "USER1";
+ linux,code = <BTN_1>;
+ };
+
+ button-user2 {
+ gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
+ label = "USER2";
+ linux,code = <BTN_2>;
+ };
+
+ button-user3 {
+ gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
+ label = "USER3";
+ linux,code = <BTN_3>;
+ };
+
+ button-user4 {
+ gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
+ label = "USER4";
+ linux,code = <BTN_4>;
+ };
+
+ button-user5 {
+ gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
+ label = "USER5";
+ linux,code = <BTN_5>;
+ };
+ };
+
+ lcd0: display {
+ compatible = "osddisplays,osd070t1718-19ts", "panel-dpi";
+ backlight = <&lcd_bl>;
+ enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
+ label = "lcd";
+
+ port {
+ lcd_in: endpoint {
+ remote-endpoint = <&dpi_out>;
+ };
+ };
+ };
+
+ lcd_bl: backlight {
+ compatible = "pwm-backlight";
+ brightness-levels = <0 243 245 247 249 251 252 253 255>;
+ default-brightness-level = <8>;
+ pwms = <&ehrpwm1 0 50000 0>;
+ };
+};
+
+&ehrpwm1 {
+ status = "okay";
+};
+
+&epwmss1 {
+ status = "okay";
+};
+
+&i2c5 {
+ status = "okay";
+ clock-frequency = <400000>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ touchscreen@5c {
+ compatible = "pixcir,pixcir_tangoc";
+ attb-gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>;
+ interrupt-parent = <&gpio2>;
+ interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
+ reg = <0x5c>;
+ reset-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
+ touchscreen-size-x = <1024>;
+ touchscreen-size-y = <600>;
+ };
+};
+
+&uart8 {
+ status = "okay";
+};
+
+&dss {
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ dpi_out: endpoint {
+ data-lines = <24>;
+ remote-endpoint = <&lcd_in>;
+ };
+ };
+ };
+};
--
2.37.3


2022-11-09 09:16:34

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] AM57x EVM Device Tree Overlays

Hi Andrew & Rob,

* Andrew Davis <[email protected]> [221102 00:01]:
> Hello all,
>
> These is an uncontroversial (hopefully) DT Overlay to support the
> TI AM57x EVM. More complex cases are staged and ready to follow but
> wanted to test the water with this one.
>
> 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.
>
> Series depends on https://www.spinics.net/lists/kernel/msg4548509.html

Looks like we now have commit 26c9134a370a ("Merge branch 'dt/dtbo-rename'
into dt/next") in Linux next.

Can these two patches now be applied if I merge in the commit above?

Regards,

Tony

2022-11-09 19:19:50

by Andrew Davis

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] AM57x EVM Device Tree Overlays

On 11/9/22 2:31 AM, Tony Lindgren wrote:
> Hi Andrew & Rob,
>
> * Andrew Davis <[email protected]> [221102 00:01]:
>> Hello all,
>>
>> These is an uncontroversial (hopefully) DT Overlay to support the
>> TI AM57x EVM. More complex cases are staged and ready to follow but
>> wanted to test the water with this one.
>>
>> 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.
>>
>> Series depends on https://www.spinics.net/lists/kernel/msg4548509.html
>
> Looks like we now have commit 26c9134a370a ("Merge branch 'dt/dtbo-rename'
> into dt/next") in Linux next.
>
> Can these two patches now be applied if I merge in the commit above?
>

26c9134a370a is the same (v2) as the series (v1) I pointed to in the
commit message. This series works on top of either.

Thanks,
Andrew

> Regards,
>
> Tony

2022-11-10 07:58:05

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] AM57x EVM Device Tree Overlays

* Andrew Davis <[email protected]> [221109 18:31]:
> On 11/9/22 2:31 AM, Tony Lindgren wrote:
> > Hi Andrew & Rob,
> >
> > * Andrew Davis <[email protected]> [221102 00:01]:
> > > Hello all,
> > >
> > > These is an uncontroversial (hopefully) DT Overlay to support the
> > > TI AM57x EVM. More complex cases are staged and ready to follow but
> > > wanted to test the water with this one.
> > >
> > > 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.
> > >
> > > Series depends on https://www.spinics.net/lists/kernel/msg4548509.html
> >
> > Looks like we now have commit 26c9134a370a ("Merge branch 'dt/dtbo-rename'
> > into dt/next") in Linux next.
> >
> > Can these two patches now be applied if I merge in the commit above?
> >
>
> 26c9134a370a is the same (v2) as the series (v1) I pointed to in the
> commit message. This series works on top of either.

Rob, are those commits immutable and OK to use as a base?

Regards,

Tony

2023-01-19 08:29:08

by Tony Lindgren

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] AM57x EVM Device Tree Overlays

* Tony Lindgren <[email protected]> [221110 07:05]:
> * Andrew Davis <[email protected]> [221109 18:31]:
> > On 11/9/22 2:31 AM, Tony Lindgren wrote:
> > > Hi Andrew & Rob,
> > >
> > > * Andrew Davis <[email protected]> [221102 00:01]:
> > > > Hello all,
> > > >
> > > > These is an uncontroversial (hopefully) DT Overlay to support the
> > > > TI AM57x EVM. More complex cases are staged and ready to follow but
> > > > wanted to test the water with this one.
> > > >
> > > > 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.
> > > >
> > > > Series depends on https://www.spinics.net/lists/kernel/msg4548509.html
> > >
> > > Looks like we now have commit 26c9134a370a ("Merge branch 'dt/dtbo-rename'
> > > into dt/next") in Linux next.
> > >
> > > Can these two patches now be applied if I merge in the commit above?
> > >
> >
> > 26c9134a370a is the same (v2) as the series (v1) I pointed to in the
> > commit message. This series works on top of either.
>
> Rob, are those commits immutable and OK to use as a base?

Andrew, I'm untagging these from my inbox, please resend when suitable.

Regards,

Tony