Skip to content

Commit e2b6918

Browse files
Josua-SRnmenon
authored andcommitted
arm64: dts: ti: k3-am642-hummingboard-t: Convert overlay to board dts
SolidRun HummingBoard-T has two options for M.2 connector, supporting either PCI-E or USB-3.1 Gen 1 - depending on configuration of a mux on the serdes lane. The required configurations in device-tree were modeled as overlays. The USB-3.1 overlay uses /delete-property/ to unset a boolean property on the usb controller limiting it to USB-2.0 by default. Overlays can not delete a property from the base dtb, therefore this overlay is at this time useless. Convert both overlays into full dts by including the base board dts. While the pcie overlay was functional, both are converted for a consistent user experience when selecting between the two mutually exclusive configurations. Reported-by: Geert Uytterhoeven <[email protected]> Closes: https://lore.kernel.org/linux-devicetree/CAMuHMdXTgpTnJ9U7egC2XjFXXNZ5uiY1O+WxNd6LPJW5Rs5KTw@mail.gmail.com Fixes: bbef420 ("arm64: dts: ti: hummingboard-t: add overlays for m.2 pci-e and usb-3") Signed-off-by: Josua Mayer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent b09cc75 commit e2b6918

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

arch/arm64/boot/dts/ti/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-imx219.dtbo
4242
dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-hdmi-audio.dtbo
4343

4444
# Boards with AM64x SoC
45-
k3-am642-hummingboard-t-pcie-dtbs := \
46-
k3-am642-hummingboard-t.dtb k3-am642-hummingboard-t-pcie.dtbo
47-
k3-am642-hummingboard-t-usb3-dtbs := \
48-
k3-am642-hummingboard-t.dtb k3-am642-hummingboard-t-usb3.dtbo
4945
dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb
5046
dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac.dtbo
5147
dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac-mii.dtbo

arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-pcie.dtso renamed to arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-pcie.dts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22
/*
33
* Copyright (C) 2023 Josua Mayer <[email protected]>
44
*
5-
* Overlay for SolidRun AM642 HummingBoard-T to enable PCI-E.
5+
* DTS for SolidRun AM642 HummingBoard-T,
6+
* running on Cortex A53, with PCI-E.
7+
*
68
*/
79

8-
/dts-v1/;
9-
/plugin/;
10-
11-
#include <dt-bindings/gpio/gpio.h>
12-
#include <dt-bindings/phy/phy.h>
10+
#include "k3-am642-hummingboard-t.dts"
1311

1412
#include "k3-serdes.h"
1513

14+
/ {
15+
model = "SolidRun AM642 HummingBoard-T with PCI-E";
16+
};
17+
1618
&pcie0_rc {
1719
pinctrl-names = "default";
1820
pinctrl-0 = <&pcie0_default_pins>;

arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-usb3.dtso renamed to arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-usb3.dts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22
/*
33
* Copyright (C) 2023 Josua Mayer <[email protected]>
44
*
5-
* Overlay for SolidRun AM642 HummingBoard-T to enable USB-3.1.
5+
* DTS for SolidRun AM642 HummingBoard-T,
6+
* running on Cortex A53, with USB-3.1 Gen 1.
7+
*
68
*/
79

8-
/dts-v1/;
9-
/plugin/;
10-
11-
#include <dt-bindings/phy/phy.h>
10+
#include "k3-am642-hummingboard-t.dts"
1211

1312
#include "k3-serdes.h"
1413

14+
/ {
15+
model = "SolidRun AM642 HummingBoard-T with USB-3.1 Gen 1";
16+
};
17+
1518
&serdes0 {
1619
#address-cells = <1>;
1720
#size-cells = <0>;

0 commit comments

Comments
 (0)