From: Udit Kumar <u-kumar1@ti.com>
To: <nm@ti.com>, <vigneshr@ti.com>, <bb@ti.com>, <sjg@chromium.org>
Cc: <peng.fan@nxp.com>, <ye.li@nxp.com>, <robimarko@gmail.com>,
<u-boot@lists.denx.de>, <n-francis@ti.com>,
Udit Kumar <u-kumar1@ti.com>
Subject: [RFC PATCH v2 3/3] arm: dts: k3: update device tree for vtm node
Date: Fri, 8 Sep 2023 22:59:17 +0530 [thread overview]
Message-ID: <20230908172914.436194-4-u-kumar1@ti.com> (raw)
In-Reply-To: <20230908172914.436194-1-u-kumar1@ti.com>
Update device tree for vtm node and update driver compatible too
Signed-off-by: Udit Kumar <u-kumar1@ti.com>
---
Kernel DT sync is happening in other series. So this patch is added
just for testing and make sure functions are working ok
arch/arm/dts/k3-j7200-mcu-wakeup.dtsi | 9 +++++++++
arch/arm/dts/k3-j7200-r5-common-proc-board.dts | 6 ------
arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 10 ++++++++++
arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 7 -------
arch/arm/dts/k3-j721e-r5-sk.dts | 7 -------
drivers/thermal/k3_thermal.c | 2 ++
6 files changed, 21 insertions(+), 20 deletions(-)
diff --git a/arch/arm/dts/k3-j7200-mcu-wakeup.dtsi b/arch/arm/dts/k3-j7200-mcu-wakeup.dtsi
index 1044ec6c4b..217bb0c821 100644
--- a/arch/arm/dts/k3-j7200-mcu-wakeup.dtsi
+++ b/arch/arm/dts/k3-j7200-mcu-wakeup.dtsi
@@ -375,4 +375,13 @@
ti,loczrama = <1>;
};
};
+
+ wkup_vtm0: temperature-sensor@42040000 {
+ bootph-all;
+ compatible = "ti,j7200-vtm";
+ reg = <0x00 0x42040000 0x00 0x350>,
+ <0x00 0x42050000 0x00 0x350>;
+ power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
+ #thermal-sensor-cells = <1>;
+ };
};
diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts
index e62f9218e8..bcd5f15eb5 100644
--- a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts
+++ b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts
@@ -91,12 +91,6 @@
bootph-pre-ram;
};
- wkup_vtm0: vtm@42040000 {
- compatible = "ti,am654-vtm", "ti,j721e-avs";
- reg = <0x0 0x42040000 0x0 0x330>;
- power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
- #thermal-sensor-cells = <1>;
- };
};
&dmsc {
diff --git a/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi b/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi
index 22166c7942..dee824e548 100644
--- a/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi
+++ b/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi
@@ -408,4 +408,14 @@
ti,loczrama = <1>;
};
};
+
+ wkup_vtm0: temperature-sensor@42040000 {
+ bootph-all;
+ compatible = "ti,j721e-vtm";
+ reg = <0x00 0x42040000 0x00 0x350>,
+ <0x00 0x42050000 0x00 0x350>,
+ <0x00 0x43000300 0x00 0x10>;
+ power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
+ #thermal-sensor-cells = <1>;
+ };
};
diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts b/arch/arm/dts/k3-j721e-r5-common-proc-board.dts
index 32f71e9b6a..93a6baea2c 100644
--- a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts
+++ b/arch/arm/dts/k3-j721e-r5-common-proc-board.dts
@@ -71,13 +71,6 @@
mbox-names = "tx", "rx";
};
- wkup_vtm0: wkup_vtm@42040000 {
- compatible = "ti,am654-vtm", "ti,j721e-avs";
- reg = <0x0 0x42040000 0x0 0x330>;
- power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
- #thermal-sensor-cells = <1>;
- };
-
dm_tifs: dm-tifs {
compatible = "ti,j721e-dm-sci";
ti,host-id = <3>;
diff --git a/arch/arm/dts/k3-j721e-r5-sk.dts b/arch/arm/dts/k3-j721e-r5-sk.dts
index 6986292e37..f146ba1314 100644
--- a/arch/arm/dts/k3-j721e-r5-sk.dts
+++ b/arch/arm/dts/k3-j721e-r5-sk.dts
@@ -204,13 +204,6 @@
mbox-names = "tx", "rx";
};
- wkup_vtm0: wkup_vtm@42040000 {
- compatible = "ti,am654-vtm", "ti,j721e-avs";
- reg = <0x0 0x42040000 0x0 0x330>;
- power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
- #thermal-sensor-cells = <1>;
- };
-
dm_tifs: dm-tifs {
compatible = "ti,j721e-dm-sci";
ti,host-id = <3>;
diff --git a/drivers/thermal/k3_thermal.c b/drivers/thermal/k3_thermal.c
index de6d88abf0..c34b69ddca 100644
--- a/drivers/thermal/k3_thermal.c
+++ b/drivers/thermal/k3_thermal.c
@@ -913,6 +913,8 @@ static struct vd_config am654_vd_config = {
static const struct udevice_id k3_avs_ids[] = {
{ .compatible = "ti,am654-avs", .data = (ulong)&am654_vd_config },
{ .compatible = "ti,j721e-avs", .data = (ulong)&j721e_vd_config },
+ { .compatible = "ti,j7200-vtm", .data = (ulong)&j721e_vd_config },
+ { .compatible = "ti,j721e-vtm", .data = (ulong)&j721e_vd_config },
{}
};
--
2.34.1
next prev parent reply other threads:[~2023-09-08 17:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-08 17:29 [RFC PATCH v2 0/3] thermal: Integrate VTM and AVS driver Udit Kumar
2023-09-08 17:29 ` [RFC PATCH v2 1/3] thermal: k3: Add support for thermal in vtm Udit Kumar
2023-09-08 17:29 ` [RFC PATCH v2 2/3] arm: mach-k3: update board file to use thermal device Udit Kumar
2023-09-08 17:29 ` Udit Kumar [this message]
2023-09-30 6:41 ` [RFC PATCH v2 0/3] thermal: Integrate VTM and AVS driver Kumar, Udit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230908172914.436194-4-u-kumar1@ti.com \
--to=u-kumar1@ti.com \
--cc=bb@ti.com \
--cc=n-francis@ti.com \
--cc=nm@ti.com \
--cc=peng.fan@nxp.com \
--cc=robimarko@gmail.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
--cc=ye.li@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox