arch/arm64/boot/dts/ti/Makefile | 7 +-- .../dts/ti/k3-am642-evm-icssg1-disable.dtso | 49 +++++++++++++++++++ 2 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso
Add k3-am642-evm-icssg1-disable.dtso overlay file that disables
icssg1-eth from Linux so that icssg peripherals can be used by
RTOS or some other OS running on R5 core.
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
---
arch/arm64/boot/dts/ti/Makefile | 7 +--
.../dts/ti/k3-am642-evm-icssg1-disable.dtso | 49 +++++++++++++++++++
2 files changed, 53 insertions(+), 3 deletions(-)
create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso
diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
index 6bd06bd76b68..0fd95b7df5a8 100644
--- a/arch/arm64/boot/dts/ti/Makefile
+++ b/arch/arm64/boot/dts/ti/Makefile
@@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-nand.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac-mii.dtbo
+dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-disable.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-pcie0-ep.dtbo
dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb
dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb
@@ -235,8 +236,8 @@ k3-am62p5-sk-microtips-mf103hie-lcd2-dtbs := k3-am62p5-sk.dtb \
k3-am62p5-sk-microtips-mf103hie-lcd2.dtbo
k3-am642-evm-icssg1-dualemac-dtbs := \
k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac.dtbo
-k3-am642-evm-icssg1-dualemac-mii-dtbs := \
- k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac-mii.dtbo
+k3-am642-evm-icssg1-disable-dtbs := \
+ k3-am642-evm.dtb k3-am642-evm-icssg1-disable.dtbo
k3-am642-evm-pcie0-ep-dtbs := \
k3-am642-evm.dtb k3-am642-evm-pcie0-ep.dtbo
k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \
@@ -323,7 +324,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
k3-am62p5-sk-microtips-mf101hie-panel.dtb \
k3-am62p5-sk-microtips-mf103hie-lcd2.dtb \
k3-am642-evm-icssg1-dualemac.dtb \
- k3-am642-evm-icssg1-dualemac-mii.dtb \
+ k3-am642-evm-icssg1-disable.dtb \
k3-am642-evm-pcie0-ep.dtb \
k3-am642-tqma64xxl-mbax4xxl-sdcard.dtb \
k3-am642-tqma64xxl-mbax4xxl-wlan.dtb \
diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso
new file mode 100644
index 000000000000..dc04e2999e97
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso
@@ -0,0 +1,49 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/**
+ * DT overlay for enabling 2nd ICSSG1 port on AM642 EVM
+ *
+ * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include "k3-pinctrl.h"
+
+&oc_sram {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ r5f0_0_sram: r5f0_0_sram@0 {
+ reg = <0x0 0x180000>;
+ };
+};
+
+&main_r5fss0_core0 {
+ sram = <&r5f0_0_sram>;
+};
+
+&cpsw_port2 {
+ status = "disabled";
+};
+
+&icssg0 {
+ status = "disabled";
+};
+
+&icssg1 {
+ status = "disabled";
+};
+
+&ospi0 {
+ status = "disabled";
+};
+
+&mdio_mux_1 {
+ status = "disabled";
+};
+
+&icssg1_eth {
+ status = "disabled";
+};
--
2.34.1
On 30/10/2024 12:44, MD Danish Anwar wrote: > Add k3-am642-evm-icssg1-disable.dtso overlay file that disables > icssg1-eth from Linux so that icssg peripherals can be used by > RTOS or some other OS running on R5 core. > I first approach privately but you deny, so let's make it public: this is based on some old kernel. Please don't. You need to rebase and work on recent kernel. Best regards, Krzysztof
On 11/6/2024 8:15 PM, Krzysztof Kozlowski wrote: > On 30/10/2024 12:44, MD Danish Anwar wrote: >> Add k3-am642-evm-icssg1-disable.dtso overlay file that disables >> icssg1-eth from Linux so that icssg peripherals can be used by >> RTOS or some other OS running on R5 core. >> > > I first approach privately but you deny, so let's make it public: this > is based on some old kernel. Please don't. You need to rebase and work > on recent kernel. > I might have not re-based it on latest kernel before posting this. Will make sure to re-base on the latest kernel. > Best regards, > Krzysztof > -- Thanks and Regards, Md Danish Anwar
On 30/10/24 17:14, MD Danish Anwar wrote: > Add k3-am642-evm-icssg1-disable.dtso overlay file that disables > icssg1-eth from Linux so that icssg peripherals can be used by > RTOS or some other OS running on R5 core. > NACK, Firstly, you disable more than ICSSG (eg OSPI why?) Secondly, if we keep introducing a "disable-xxx" DT overlay to disable every other component in use by RTOS on R5 (which changes per customer whims) then we will have explosion of dtso If there is a corresponding firmware in linux-firmware.git that solves need of a specific end equipment or usecase, then we can talk. Regards Vignesh [...]
Hi Danish, On 30/10/2024 13:44, MD Danish Anwar wrote: > Add k3-am642-evm-icssg1-disable.dtso overlay file that disables > icssg1-eth from Linux so that icssg peripherals can be used by > RTOS or some other OS running on R5 core. > > Signed-off-by: MD Danish Anwar <danishanwar@ti.com> > --- > arch/arm64/boot/dts/ti/Makefile | 7 +-- > .../dts/ti/k3-am642-evm-icssg1-disable.dtso | 49 +++++++++++++++++++ > 2 files changed, 53 insertions(+), 3 deletions(-) > create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile > index 6bd06bd76b68..0fd95b7df5a8 100644 > --- a/arch/arm64/boot/dts/ti/Makefile > +++ b/arch/arm64/boot/dts/ti/Makefile > @@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-nand.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac-mii.dtbo > +dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-disable.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-pcie0-ep.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb > @@ -235,8 +236,8 @@ k3-am62p5-sk-microtips-mf103hie-lcd2-dtbs := k3-am62p5-sk.dtb \ > k3-am62p5-sk-microtips-mf103hie-lcd2.dtbo > k3-am642-evm-icssg1-dualemac-dtbs := \ > k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac.dtbo > -k3-am642-evm-icssg1-dualemac-mii-dtbs := \ > - k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac-mii.dtbo > +k3-am642-evm-icssg1-disable-dtbs := \ > + k3-am642-evm.dtb k3-am642-evm-icssg1-disable.dtbo > k3-am642-evm-pcie0-ep-dtbs := \ > k3-am642-evm.dtb k3-am642-evm-pcie0-ep.dtbo > k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \ > @@ -323,7 +324,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ > k3-am62p5-sk-microtips-mf101hie-panel.dtb \ > k3-am62p5-sk-microtips-mf103hie-lcd2.dtb \ > k3-am642-evm-icssg1-dualemac.dtb \ > - k3-am642-evm-icssg1-dualemac-mii.dtb \ > + k3-am642-evm-icssg1-disable.dtb \ > k3-am642-evm-pcie0-ep.dtb \ > k3-am642-tqma64xxl-mbax4xxl-sdcard.dtb \ > k3-am642-tqma64xxl-mbax4xxl-wlan.dtb \ > diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso > new file mode 100644 > index 000000000000..dc04e2999e97 > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso > @@ -0,0 +1,49 @@ > +// SPDX-License-Identifier: GPL-2.0-only OR MIT > +/** > + * DT overlay for enabling 2nd ICSSG1 port on AM642 EVM > + * > + * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/ > + */ > + > +/dts-v1/; > +/plugin/; > + > +#include <dt-bindings/gpio/gpio.h> > +#include "k3-pinctrl.h" > + > +&oc_sram { > + #address-cells = <1>; > + #size-cells = <1>; > + > + r5f0_0_sram: r5f0_0_sram@0 { > + reg = <0x0 0x180000>; > + }; > +};> + > +&main_r5fss0_core0 { > + sram = <&r5f0_0_sram>; > +}; > + You need to mention why this change is done, in the commit log. > +&cpsw_port2 { > + status = "disabled"; > +}; > + > +&icssg0 { > + status = "disabled"; > +}; dtso name says icssg1-disabel but you are disabling icssg0 as well? > + > +&icssg1 { > + status = "disabled"; > +}; > + > +&ospi0 { > + status = "disabled"; > +}; and ospi0? > + > +&mdio_mux_1 { > + status = "disabled"; > +}; > + > +&icssg1_eth { > + status = "disabled"; > +}; Maybe the dtso is poorly named and should be called something else so that is correctly reflects the use case? I suppose it has something to do with peripherals reserved for R5 core? e.g. k3-am642-evm-r5-reserved.dtso? How is this dtso applied at boot? -- cheers, -roger
On 10/30/24 6:44 AM, MD Danish Anwar wrote: > Add k3-am642-evm-icssg1-disable.dtso overlay file that disables > icssg1-eth from Linux so that icssg peripherals can be used by > RTOS or some other OS running on R5 core. > That was the point of putting icssg1-eth in its own overlay, if you don't want to use ICSSG1 for Ethernet, just don't apply k3-am642-evm-icssg1-dualemac.dtbo. Andrew > Signed-off-by: MD Danish Anwar <danishanwar@ti.com> > --- > arch/arm64/boot/dts/ti/Makefile | 7 +-- > .../dts/ti/k3-am642-evm-icssg1-disable.dtso | 49 +++++++++++++++++++ > 2 files changed, 53 insertions(+), 3 deletions(-) > create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile > index 6bd06bd76b68..0fd95b7df5a8 100644 > --- a/arch/arm64/boot/dts/ti/Makefile > +++ b/arch/arm64/boot/dts/ti/Makefile > @@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-nand.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-dualemac-mii.dtbo > +dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-icssg1-disable.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-pcie0-ep.dtbo > dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb > @@ -235,8 +236,8 @@ k3-am62p5-sk-microtips-mf103hie-lcd2-dtbs := k3-am62p5-sk.dtb \ > k3-am62p5-sk-microtips-mf103hie-lcd2.dtbo > k3-am642-evm-icssg1-dualemac-dtbs := \ > k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac.dtbo > -k3-am642-evm-icssg1-dualemac-mii-dtbs := \ > - k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac-mii.dtbo > +k3-am642-evm-icssg1-disable-dtbs := \ > + k3-am642-evm.dtb k3-am642-evm-icssg1-disable.dtbo > k3-am642-evm-pcie0-ep-dtbs := \ > k3-am642-evm.dtb k3-am642-evm-pcie0-ep.dtbo > k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \ > @@ -323,7 +324,7 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ > k3-am62p5-sk-microtips-mf101hie-panel.dtb \ > k3-am62p5-sk-microtips-mf103hie-lcd2.dtb \ > k3-am642-evm-icssg1-dualemac.dtb \ > - k3-am642-evm-icssg1-dualemac-mii.dtb \ > + k3-am642-evm-icssg1-disable.dtb \ > k3-am642-evm-pcie0-ep.dtb \ > k3-am642-tqma64xxl-mbax4xxl-sdcard.dtb \ > k3-am642-tqma64xxl-mbax4xxl-wlan.dtb \ > diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso > new file mode 100644 > index 000000000000..dc04e2999e97 > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-disable.dtso > @@ -0,0 +1,49 @@ > +// SPDX-License-Identifier: GPL-2.0-only OR MIT > +/** > + * DT overlay for enabling 2nd ICSSG1 port on AM642 EVM > + * > + * Copyright (C) 2020-2024 Texas Instruments Incorporated - https://www.ti.com/ > + */ > + > +/dts-v1/; > +/plugin/; > + > +#include <dt-bindings/gpio/gpio.h> > +#include "k3-pinctrl.h" > + > +&oc_sram { > + #address-cells = <1>; > + #size-cells = <1>; > + > + r5f0_0_sram: r5f0_0_sram@0 { > + reg = <0x0 0x180000>; > + }; > +}; > + > +&main_r5fss0_core0 { > + sram = <&r5f0_0_sram>; > +}; > + > +&cpsw_port2 { > + status = "disabled"; > +}; > + > +&icssg0 { > + status = "disabled"; > +}; > + > +&icssg1 { > + status = "disabled"; > +}; > + > +&ospi0 { > + status = "disabled"; > +}; > + > +&mdio_mux_1 { > + status = "disabled"; > +}; > + > +&icssg1_eth { > + status = "disabled"; > +};
© 2016 - 2024 Red Hat, Inc.