devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] arm64: ti: k3-j7: Add the ESM & main domain watchdog nodes
@ 2023-08-30  7:26 Keerthy
  2023-08-30  7:26 ` [PATCH 1/5] arm64: dts: ti: k3-j721s2: Add ESM instances Keerthy
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Keerthy @ 2023-08-30  7:26 UTC (permalink / raw)
  To: vigneshr, nm, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo
  Cc: j-keerthy, linux-arm-kernel, devicetree, linux-kernel

The series add the ESM & main domain watchdog nodes for j721s2,
j784s4 SOCs.

Keerthy (5):
  arm64: dts: ti: k3-j721s2: Add ESM instances
  arm64: dts: ti: k3-j784s4: Add ESM instances
  arm64: dts: ti: k3-j7200: Add MCU domain ESM instance
  arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries
  arm64: dts: ti: k3-j784s4-main: Add main domain watchdog entries

 .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi      |  6 +++++
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi    | 24 +++++++++++++++++++
 .../boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi     | 12 ++++++++++
 arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi    | 24 +++++++++++++++++++
 .../boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi     | 12 ++++++++++
 5 files changed, 78 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/5] arm64: dts: ti: k3-j721s2: Add ESM instances
  2023-08-30  7:26 [PATCH 0/5] arm64: ti: k3-j7: Add the ESM & main domain watchdog nodes Keerthy
@ 2023-08-30  7:26 ` Keerthy
  2023-08-30  7:26 ` [PATCH 2/5] arm64: dts: ti: k3-j784s4: " Keerthy
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Keerthy @ 2023-08-30  7:26 UTC (permalink / raw)
  To: vigneshr, nm, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo
  Cc: j-keerthy, linux-arm-kernel, devicetree, linux-kernel

Patch adds the ESM instances for j721s2. It has 3 instances.
One in the main domain and two in the mcu-wakeup domian.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi       |  6 ++++++
 arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 12 ++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
index ed79ab3a3271..87841bcc509d 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
@@ -1507,4 +1507,10 @@
 		clocks = <&k3_clks 346 1>;
 		status = "disabled";
 	};
+
+	main_esm: esm@700000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x0 0x700000 0x0 0x1000>;
+		ti,esm-pins = <344>, <345>;
+	};
 };
diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
index e7dd947a1814..e8c6c27c2e2c 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi
@@ -652,4 +652,16 @@
 		power-domains = <&k3_pds 154 TI_SCI_PD_SHARED>;
 		#thermal-sensor-cells = <1>;
 	};
+
+	mcu_esm: esm@40800000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x0 0x40800000 0x0 0x1000>;
+		ti,esm-pins = <95>;
+	};
+
+	wkup_esm: esm@42080000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x0 0x42080000 0x0 0x1000>;
+		ti,esm-pins = <63>;
+	};
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/5] arm64: dts: ti: k3-j784s4: Add ESM instances
  2023-08-30  7:26 [PATCH 0/5] arm64: ti: k3-j7: Add the ESM & main domain watchdog nodes Keerthy
  2023-08-30  7:26 ` [PATCH 1/5] arm64: dts: ti: k3-j721s2: Add ESM instances Keerthy
@ 2023-08-30  7:26 ` Keerthy
  2023-08-30  7:26 ` [PATCH 3/5] arm64: dts: ti: k3-j7200: Add MCU domain ESM instance Keerthy
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Keerthy @ 2023-08-30  7:26 UTC (permalink / raw)
  To: vigneshr, nm, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo
  Cc: j-keerthy, linux-arm-kernel, devicetree, linux-kernel

Patch adds the ESM instances for j784s4. It has 3 instances.
One in the main domain and two in the mcu-wakeup domian.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi       |  6 ++++++
 arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 12 ++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
index 2ea0adae6832..34ceb50b2051 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -1537,4 +1537,10 @@
 		resets = <&k3_reset 40 1>;
 		firmware-name = "j784s4-c71_3-fw";
 	};
+
+	main_esm: esm@700000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x0 0x700000 0x0 0x1000>;
+		ti,esm-pins = <688>, <689>;
+	};
 };
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi
index 657fb1d72512..8492b7e2c0ba 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi
@@ -690,4 +690,16 @@
 			status = "disabled";
 		};
 	};
+
+	mcu_esm: esm@40800000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x0 0x40800000 0x0 0x1000>;
+		ti,esm-pins = <95>;
+	};
+
+	wkup_esm: esm@42080000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x0 0x42080000 0x0 0x1000>;
+		ti,esm-pins = <63>;
+	};
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/5] arm64: dts: ti: k3-j7200: Add MCU domain ESM instance
  2023-08-30  7:26 [PATCH 0/5] arm64: ti: k3-j7: Add the ESM & main domain watchdog nodes Keerthy
  2023-08-30  7:26 ` [PATCH 1/5] arm64: dts: ti: k3-j721s2: Add ESM instances Keerthy
  2023-08-30  7:26 ` [PATCH 2/5] arm64: dts: ti: k3-j784s4: " Keerthy
@ 2023-08-30  7:26 ` Keerthy
  2023-08-30  7:26 ` [PATCH 4/5] arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries Keerthy
  2023-08-30  7:26 ` [PATCH 5/5] arm64: dts: ti: k3-j784s4-main: " Keerthy
  4 siblings, 0 replies; 8+ messages in thread
From: Keerthy @ 2023-08-30  7:26 UTC (permalink / raw)
  To: vigneshr, nm, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo
  Cc: j-keerthy, linux-arm-kernel, devicetree, linux-kernel

Patch adds the ESM instances for MCU domian of j7200.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
index c5e4c41effd1..a57e82b6b0c4 100644
--- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
@@ -632,4 +632,10 @@
 		power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
 		#thermal-sensor-cells = <1>;
 	};
+
+	mcu_esm: esm@40800000 {
+		compatible = "ti,j721e-esm";
+		reg = <0x0 0x40800000 0x0 0x1000>;
+		ti,esm-pins = <95>;
+	};
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/5] arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries
  2023-08-30  7:26 [PATCH 0/5] arm64: ti: k3-j7: Add the ESM & main domain watchdog nodes Keerthy
                   ` (2 preceding siblings ...)
  2023-08-30  7:26 ` [PATCH 3/5] arm64: dts: ti: k3-j7200: Add MCU domain ESM instance Keerthy
@ 2023-08-30  7:26 ` Keerthy
  2023-08-31 11:48   ` Nishanth Menon
  2023-08-30  7:26 ` [PATCH 5/5] arm64: dts: ti: k3-j784s4-main: " Keerthy
  4 siblings, 1 reply; 8+ messages in thread
From: Keerthy @ 2023-08-30  7:26 UTC (permalink / raw)
  To: vigneshr, nm, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo
  Cc: j-keerthy, linux-arm-kernel, devicetree, linux-kernel

Add DT entries for main domain watchdog instances.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
index 87841bcc509d..33276d31faa1 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
@@ -1513,4 +1513,22 @@
 		reg = <0x0 0x700000 0x0 0x1000>;
 		ti,esm-pins = <344>, <345>;
 	};
+
+	watchdog0: watchdog@2200000 {
+		compatible = "ti,j7-rti-wdt";
+		reg = <0x0 0x2200000 0x0 0x100>;
+		clocks = <&k3_clks 286 1>;
+		power-domains = <&k3_pds 286 TI_SCI_PD_EXCLUSIVE>;
+		assigned-clocks = <&k3_clks 286 1>;
+		assigned-clock-parents = <&k3_clks 286 5>;
+	};
+
+	watchdog1: watchdog@2210000 {
+		compatible = "ti,j7-rti-wdt";
+		reg = <0x0 0x2210000 0x0 0x100>;
+		clocks = <&k3_clks 287 1>;
+		power-domains = <&k3_pds 287 TI_SCI_PD_EXCLUSIVE>;
+		assigned-clocks = <&k3_clks 287 1>;
+		assigned-clock-parents = <&k3_clks 287 5>;
+	};
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/5] arm64: dts: ti: k3-j784s4-main: Add main domain watchdog entries
  2023-08-30  7:26 [PATCH 0/5] arm64: ti: k3-j7: Add the ESM & main domain watchdog nodes Keerthy
                   ` (3 preceding siblings ...)
  2023-08-30  7:26 ` [PATCH 4/5] arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries Keerthy
@ 2023-08-30  7:26 ` Keerthy
  4 siblings, 0 replies; 8+ messages in thread
From: Keerthy @ 2023-08-30  7:26 UTC (permalink / raw)
  To: vigneshr, nm, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo
  Cc: j-keerthy, linux-arm-kernel, devicetree, linux-kernel

Add DT entries for main domain watchdog instances.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
index 34ceb50b2051..afa17ad260d6 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -1543,4 +1543,22 @@
 		reg = <0x0 0x700000 0x0 0x1000>;
 		ti,esm-pins = <688>, <689>;
 	};
+
+	watchdog0: watchdog@2200000 {
+		compatible = "ti,j7-rti-wdt";
+		reg = <0x0 0x2200000 0x0 0x100>;
+		clocks = <&k3_clks 348 1>;
+		power-domains = <&k3_pds 348 TI_SCI_PD_EXCLUSIVE>;
+		assigned-clocks = <&k3_clks 348 0>;
+		assigned-clock-parents = <&k3_clks 348 4>;
+	};
+
+	watchdog1: watchdog@2210000 {
+		compatible = "ti,j7-rti-wdt";
+		reg = <0x0 0x2210000 0x0 0x100>;
+		clocks = <&k3_clks 349 1>;
+		power-domains = <&k3_pds 349 TI_SCI_PD_EXCLUSIVE>;
+		assigned-clocks = <&k3_clks 349 0>;
+		assigned-clock-parents = <&k3_clks 349 4>;
+	};
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 4/5] arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries
  2023-08-30  7:26 ` [PATCH 4/5] arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries Keerthy
@ 2023-08-31 11:48   ` Nishanth Menon
  2023-08-31 13:40     ` J, KEERTHY
  0 siblings, 1 reply; 8+ messages in thread
From: Nishanth Menon @ 2023-08-31 11:48 UTC (permalink / raw)
  To: Keerthy
  Cc: vigneshr, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo,
	linux-arm-kernel, devicetree, linux-kernel

On 12:56-20230830, Keerthy wrote:
> Add DT entries for main domain watchdog instances.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> ---
>  arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
> index 87841bcc509d..33276d31faa1 100644
> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
> @@ -1513,4 +1513,22 @@
>  		reg = <0x0 0x700000 0x0 0x1000>;
>  		ti,esm-pins = <344>, <345>;
>  	};
> +
> +	watchdog0: watchdog@2200000 {
> +		compatible = "ti,j7-rti-wdt";
> +		reg = <0x0 0x2200000 0x0 0x100>;
> +		clocks = <&k3_clks 286 1>;
> +		power-domains = <&k3_pds 286 TI_SCI_PD_EXCLUSIVE>;
> +		assigned-clocks = <&k3_clks 286 1>;
> +		assigned-clock-parents = <&k3_clks 286 5>;
> +	};
> +
> +	watchdog1: watchdog@2210000 {
> +		compatible = "ti,j7-rti-wdt";
> +		reg = <0x0 0x2210000 0x0 0x100>;
> +		clocks = <&k3_clks 287 1>;
> +		power-domains = <&k3_pds 287 TI_SCI_PD_EXCLUSIVE>;
> +		assigned-clocks = <&k3_clks 287 1>;
> +		assigned-clock-parents = <&k3_clks 287 5>;
> +	};

Are these all the wdts in main domain - do define and leave the other wdts
disabled as they are tightly coupled to other processors (and must be
enabled by the OS running on them), but defining them allows us to reuse
the definitions in OSes running on R5s (for instance) to reuse the same
device definitions.

>  };
> -- 
> 2.17.1
> 

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 4/5] arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries
  2023-08-31 11:48   ` Nishanth Menon
@ 2023-08-31 13:40     ` J, KEERTHY
  0 siblings, 0 replies; 8+ messages in thread
From: J, KEERTHY @ 2023-08-31 13:40 UTC (permalink / raw)
  To: Nishanth Menon
  Cc: vigneshr, robh+dt, krzysztof.kozlowski+dt, conor+dt, kristo,
	linux-arm-kernel, devicetree, linux-kernel



On 8/31/2023 5:18 PM, Nishanth Menon wrote:
> On 12:56-20230830, Keerthy wrote:
>> Add DT entries for main domain watchdog instances.
>>
>> Signed-off-by: Keerthy <j-keerthy@ti.com>
>> ---
>>   arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 18 ++++++++++++++++++
>>   1 file changed, 18 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> index 87841bcc509d..33276d31faa1 100644
>> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi
>> @@ -1513,4 +1513,22 @@
>>   		reg = <0x0 0x700000 0x0 0x1000>;
>>   		ti,esm-pins = <344>, <345>;
>>   	};
>> +
>> +	watchdog0: watchdog@2200000 {
>> +		compatible = "ti,j7-rti-wdt";
>> +		reg = <0x0 0x2200000 0x0 0x100>;
>> +		clocks = <&k3_clks 286 1>;
>> +		power-domains = <&k3_pds 286 TI_SCI_PD_EXCLUSIVE>;
>> +		assigned-clocks = <&k3_clks 286 1>;
>> +		assigned-clock-parents = <&k3_clks 286 5>;
>> +	};
>> +
>> +	watchdog1: watchdog@2210000 {
>> +		compatible = "ti,j7-rti-wdt";
>> +		reg = <0x0 0x2210000 0x0 0x100>;
>> +		clocks = <&k3_clks 287 1>;
>> +		power-domains = <&k3_pds 287 TI_SCI_PD_EXCLUSIVE>;
>> +		assigned-clocks = <&k3_clks 287 1>;
>> +		assigned-clock-parents = <&k3_clks 287 5>;
>> +	};
> 
> Are these all the wdts in main domain - do define and leave the other wdts
> disabled as they are tightly coupled to other processors (and must be
> enabled by the OS running on them), but defining them allows us to reuse
> the definitions in OSes running on R5s (for instance) to reuse the same
> device definitions.

Hello Nishanth,

Okay. I will add all the remaining ones & keep them disabled.

Thanks for the feedback.

Regards,
Keerthy

> 
>>   };
>> -- 
>> 2.17.1
>>
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-31 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30  7:26 [PATCH 0/5] arm64: ti: k3-j7: Add the ESM & main domain watchdog nodes Keerthy
2023-08-30  7:26 ` [PATCH 1/5] arm64: dts: ti: k3-j721s2: Add ESM instances Keerthy
2023-08-30  7:26 ` [PATCH 2/5] arm64: dts: ti: k3-j784s4: " Keerthy
2023-08-30  7:26 ` [PATCH 3/5] arm64: dts: ti: k3-j7200: Add MCU domain ESM instance Keerthy
2023-08-30  7:26 ` [PATCH 4/5] arm64: dts: ti: k3-j721s2-main: Add main domain watchdog entries Keerthy
2023-08-31 11:48   ` Nishanth Menon
2023-08-31 13:40     ` J, KEERTHY
2023-08-30  7:26 ` [PATCH 5/5] arm64: dts: ti: k3-j784s4-main: " Keerthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).