All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc
@ 2019-12-10 23:17 Tony Lindgren
  2019-12-10 23:17 ` [PATCH 01/14] ARM: dts: Configure interconnect target module for am3 sham Tony Lindgren
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

Hi,

This series updates crypto accelerators to probe with ti-sysc and device tree
data for am3, am4 and dra7.

Regards,

Tony


Tony Lindgren (14):
  ARM: dts: Configure interconnect target module for am3 sham
  ARM: dts: Configure interconnect target module for am4 sham
  ARM: dts: Configure interconnect target module for dra7 sham
  ARM: dts: Configure interconnect target module for am3 aes
  ARM: dts: Configure interconnect target module for am4 aes
  ARM: dts: Configure interconnect target module for dra7 aes
  ARM: dts: Configure interconnect target module for am4 des
  ARM: dts: Configure interconnect target module for dra7 des
  ARM: OMAP2+: Drop legacy platform data for am3 and am4 sham
  ARM: OMAP2+: Drop legacy platform data for dra7 sham
  ARM: OMAP2+: Drop legacy platform data for am3 and am4 aes
  ARM: OMAP2+: Drop legacy platform data for dra7 aes
  ARM: OMAP2+: Drop legacy platform data for am4 des
  ARM: OMAP2+: Drop legacy platform data for dra7 des

 arch/arm/boot/dts/am33xx.dtsi                 |  69 +++++++--
 arch/arm/boot/dts/am4372.dtsi                 | 105 +++++++++++---
 arch/arm/boot/dts/dra7-l4.dtsi                |  31 ++++
 arch/arm/boot/dts/dra7.dtsi                   | 118 +++++++++++-----
 .../omap_hwmod_33xx_43xx_common_data.h        |   4 -
 .../omap_hwmod_33xx_43xx_interconnect_data.c  |  16 ---
 .../omap_hwmod_33xx_43xx_ipblock_data.c       |  54 -------
 arch/arm/mach-omap2/omap_hwmod_33xx_data.c    |   2 -
 arch/arm/mach-omap2/omap_hwmod_43xx_data.c    |  35 -----
 arch/arm/mach-omap2/omap_hwmod_7xx_data.c     | 132 ------------------
 10 files changed, 250 insertions(+), 316 deletions(-)

-- 
2.24.0

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

* [PATCH 01/14] ARM: dts: Configure interconnect target module for am3 sham
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 02/14] ARM: dts: Configure interconnect target module for am4 sham Tony Lindgren
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

I could not find any documentation for the sysc register on this one,
but it seems to work just fine with "ti,sysc-omap3-sham" compatible
style configuration.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am33xx.dtsi | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -439,13 +439,33 @@ gpmc: gpmc@50000000 {
 			status = "disabled";
 		};
 
-		sham: sham@53100000 {
-			compatible = "ti,omap4-sham";
+		sham_target: target-module@53100000 {
+			compatible = "ti,sysc-omap3-sham", "ti,sysc";
 			ti,hwmods = "sham";
-			reg = <0x53100000 0x200>;
-			interrupts = <109>;
-			dmas = <&edma 36 0>;
-			dma-names = "rx";
+			reg = <0x53100100 0x4>,
+			      <0x53100110 0x4>,
+			      <0x53100114 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): per_pwrdm, l3_clkdm */
+			clocks = <&l3_clkctrl AM3_L3_SHAM_CLKCTRL 0>;
+			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x53100000 0x1000>;
+
+			sham: sham@0 {
+				compatible = "ti,omap4-sham";
+				reg = <0 0x200>;
+				interrupts = <109>;
+				dmas = <&edma 36 0>;
+				dma-names = "rx";
+			};
 		};
 
 		aes: aes@53500000 {
-- 
2.24.0

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

* [PATCH 02/14] ARM: dts: Configure interconnect target module for am4 sham
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
  2019-12-10 23:17 ` [PATCH 01/14] ARM: dts: Configure interconnect target module for am3 sham Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 03/14] ARM: dts: Configure interconnect target module for dra7 sham Tony Lindgren
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

Similar to am3, I could not find any documentation for the sysc
register on this one, but it seems to work just fine based on
"ti,sysc-omap3-sham" compatible style configuration.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am4372.dtsi | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -256,13 +256,33 @@ mmc3: mmc@0 {
 			};
 		};
 
-		sham: sham@53100000 {
-			compatible = "ti,omap5-sham";
+		sham_target: target-module@53100000 {
+			compatible = "ti,sysc-omap3-sham", "ti,sysc";
 			ti,hwmods = "sham";
-			reg = <0x53100000 0x300>;
-			dmas = <&edma 36 0>;
-			dma-names = "rx";
-			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+			reg = <0x53100100 0x4>,
+			      <0x53100110 0x4>,
+			      <0x53100114 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): per_pwrdm, l3_clkdm */
+			clocks = <&l3_clkctrl AM4_L3_SHAM_CLKCTRL 0>;
+			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x53100000 0x1000>;
+
+			sham: sham@0 {
+				compatible = "ti,omap5-sham";
+				reg = <0 0x300>;
+				dmas = <&edma 36 0>;
+				dma-names = "rx";
+				interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+			};
 		};
 
 		aes: aes@53501000 {
-- 
2.24.0

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

* [PATCH 03/14] ARM: dts: Configure interconnect target module for dra7 sham
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
  2019-12-10 23:17 ` [PATCH 01/14] ARM: dts: Configure interconnect target module for am3 sham Tony Lindgren
  2019-12-10 23:17 ` [PATCH 02/14] ARM: dts: Configure interconnect target module for am4 sham Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 04/14] ARM: dts: Configure interconnect target module for am3 aes Tony Lindgren
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

Similar to am3, I could not find any documentation for the sysc
register on this one, but it seems to work just fine based on
"ti,sysc-omap3-sham" compatible style configuration.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dra7.dtsi | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -685,15 +685,35 @@ des: des@480a5000 {
 			clock-names = "fck";
 		};
 
-		sham: sham@53100000 {
-			compatible = "ti,omap5-sham";
+		sham_target: target-module@4b101000 {
+			compatible = "ti,sysc-omap3-sham", "ti,sysc";
 			ti,hwmods = "sham";
-			reg = <0x4b101000 0x300>;
-			interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
-			dmas = <&edma_xbar 119 0>;
-			dma-names = "rx";
-			clocks = <&l3_iclk_div>;
+			reg = <0x4b101100 0x4>,
+			      <0x4b101110 0x4>,
+			      <0x4b101114 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): l4per_pwrdm, l4sec_clkdm */
+			clocks = <&l4sec_clkctrl DRA7_L4SEC_SHAM_CLKCTRL 0>;
 			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x4b101000 0x1000>;
+
+			sham: sham@0 {
+				compatible = "ti,omap5-sham";
+				reg = <0 0x300>;
+				interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&edma_xbar 119 0>;
+				dma-names = "rx";
+				clocks = <&l3_iclk_div>;
+				clock-names = "fck";
+			};
 		};
 
 		opp_supply_mpu: opp-supply@4a003b20 {
-- 
2.24.0

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

* [PATCH 04/14] ARM: dts: Configure interconnect target module for am3 aes
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (2 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 03/14] ARM: dts: Configure interconnect target module for dra7 sham Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 05/14] ARM: dts: Configure interconnect target module for am4 aes Tony Lindgren
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am33xx.dtsi | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -468,14 +468,35 @@ sham: sham@0 {
 			};
 		};
 
-		aes: aes@53500000 {
-			compatible = "ti,omap4-aes";
+		aes_target: target-module@53500000 {
+			compatible = "ti,sysc-omap2", "ti,sysc";
 			ti,hwmods = "aes";
-			reg = <0x53500000 0xa0>;
-			interrupts = <103>;
-			dmas = <&edma 6 0>,
-			       <&edma 5 0>;
-			dma-names = "tx", "rx";
+			reg = <0x53500080 0x4>,
+			      <0x53500084 0x4>,
+			      <0x53500088 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>,
+					<SYSC_IDLE_SMART_WKUP>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): per_pwrdm, l3_clkdm */
+			clocks = <&l3_clkctrl AM3_L3_AES_CLKCTRL 0>;
+			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x53500000 0x1000>;
+
+			aes: aes@0 {
+				compatible = "ti,omap4-aes";
+				reg = <0 0xa0>;
+				interrupts = <103>;
+				dmas = <&edma 6 0>,
+				       <&edma 5 0>;
+				dma-names = "tx", "rx";
+			};
 		};
 	};
 };
-- 
2.24.0

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

* [PATCH 05/14] ARM: dts: Configure interconnect target module for am4 aes
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (3 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 04/14] ARM: dts: Configure interconnect target module for am3 aes Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 06/14] ARM: dts: Configure interconnect target module for dra7 aes Tony Lindgren
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am4372.dtsi | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -285,14 +285,35 @@ sham: sham@0 {
 			};
 		};
 
-		aes: aes@53501000 {
-			compatible = "ti,omap4-aes";
+		aes_target: target-module@53501000 {
+			compatible = "ti,sysc-omap2", "ti,sysc";
 			ti,hwmods = "aes";
-			reg = <0x53501000 0xa0>;
-			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
-			dmas = <&edma 6 0>,
-				<&edma 5 0>;
-			dma-names = "tx", "rx";
+			reg = <0x53501080 0x4>,
+			      <0x53501084 0x4>,
+			      <0x53501088 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>,
+					<SYSC_IDLE_SMART_WKUP>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): per_pwrdm, l3_clkdm */
+			clocks = <&l3_clkctrl AM4_L3_AES_CLKCTRL 0>;
+			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x53501000 0x1000>;
+
+			aes: aes@0 {
+				compatible = "ti,omap4-aes";
+				reg = <0 0xa0>;
+				interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&edma 6 0>,
+				      <&edma 5 0>;
+				dma-names = "tx", "rx";
+			};
 		};
 
 		des: des@53701000 {
-- 
2.24.0

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

* [PATCH 06/14] ARM: dts: Configure interconnect target module for dra7 aes
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (4 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 05/14] ARM: dts: Configure interconnect target module for am4 aes Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 07/14] ARM: dts: Configure interconnect target module for am4 des Tony Lindgren
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dra7.dtsi | 70 +++++++++++++++++++++++++++++--------
 1 file changed, 56 insertions(+), 14 deletions(-)

diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -652,26 +652,68 @@ hdmi: encoder@58060000 {
 			};
 		};
 
-		aes1: aes@4b500000 {
-			compatible = "ti,omap4-aes";
+		aes1_target: target-module@4b500000 {
+			compatible = "ti,sysc-omap2", "ti,sysc";
 			ti,hwmods = "aes1";
-			reg = <0x4b500000 0xa0>;
-			interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
-			dmas = <&edma_xbar 111 0>, <&edma_xbar 110 0>;
-			dma-names = "tx", "rx";
-			clocks = <&l3_iclk_div>;
+			reg = <0x4b500080 0x4>,
+			      <0x4b500084 0x4>,
+			      <0x4b500088 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>,
+					<SYSC_IDLE_SMART_WKUP>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): per_pwrdm, l4sec_clkdm */
+			clocks = <&l4sec_clkctrl DRA7_L4SEC_AES1_CLKCTRL 0>;
 			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x4b500000 0x1000>;
+
+			aes1: aes@0 {
+				compatible = "ti,omap4-aes";
+				reg = <0 0xa0>;
+				interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&edma_xbar 111 0>, <&edma_xbar 110 0>;
+				dma-names = "tx", "rx";
+				clocks = <&l3_iclk_div>;
+				clock-names = "fck";
+			};
 		};
 
-		aes2: aes@4b700000 {
-			compatible = "ti,omap4-aes";
+		aes2_target: target-module@4b700000 {
+			compatible = "ti,sysc-omap2", "ti,sysc";
 			ti,hwmods = "aes2";
-			reg = <0x4b700000 0xa0>;
-			interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
-			dmas = <&edma_xbar 114 0>, <&edma_xbar 113 0>;
-			dma-names = "tx", "rx";
-			clocks = <&l3_iclk_div>;
+			reg = <0x4b700080 0x4>,
+			      <0x4b700084 0x4>,
+			      <0x4b700088 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>,
+					<SYSC_IDLE_SMART_WKUP>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): per_pwrdm, l4sec_clkdm */
+			clocks = <&l4sec_clkctrl DRA7_L4SEC_AES2_CLKCTRL 0>;
 			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0x0 0x4b700000 0x1000>;
+
+			aes2: aes@0 {
+				compatible = "ti,omap4-aes";
+				reg = <0 0xa0>;
+				interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&edma_xbar 114 0>, <&edma_xbar 113 0>;
+				dma-names = "tx", "rx";
+				clocks = <&l3_iclk_div>;
+				clock-names = "fck";
+			};
 		};
 
 		des: des@480a5000 {
-- 
2.24.0

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

* [PATCH 07/14] ARM: dts: Configure interconnect target module for am4 des
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (5 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 06/14] ARM: dts: Configure interconnect target module for dra7 aes Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 08/14] ARM: dts: Configure interconnect target module for dra7 des Tony Lindgren
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am4372.dtsi | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -316,14 +316,35 @@ aes: aes@0 {
 			};
 		};
 
-		des: des@53701000 {
-			compatible = "ti,omap4-des";
+		des_target: target-module@53701000 {
+			compatible = "ti,sysc-omap2", "ti,sysc";
 			ti,hwmods = "des";
-			reg = <0x53701000 0xa0>;
-			interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
-			dmas = <&edma 34 0>,
-				<&edma 33 0>;
-			dma-names = "tx", "rx";
+			reg = <0x53701030 0x4>,
+			      <0x53701034 0x4>,
+			      <0x53701038 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>,
+					<SYSC_IDLE_SMART_WKUP>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): per_pwrdm, l3_clkdm */
+			clocks = <&l3_clkctrl AM4_L3_DES_CLKCTRL 0>;
+			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0 0x53701000 0x1000>;
+
+			des: des@0 {
+				compatible = "ti,omap4-des";
+				reg = <0 0xa0>;
+				interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&edma 34 0>,
+				       <&edma 33 0>;
+				dma-names = "tx", "rx";
+			};
 		};
 
 		gpmc: gpmc@50000000 {
-- 
2.24.0

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

* [PATCH 08/14] ARM: dts: Configure interconnect target module for dra7 des
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (6 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 07/14] ARM: dts: Configure interconnect target module for am4 des Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 09/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 sham Tony Lindgren
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with device tree only configuration using
ti-sysc interconnect target module driver. Let's configure the
module, but keep the legacy "ti,hwmods" peroperty to avoid new boot
time warnings. The legacy property will be removed in later patches
together with the legacy platform data.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dra7-l4.dtsi | 32 ++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/dra7.dtsi    | 11 -----------
 2 files changed, 32 insertions(+), 11 deletions(-)

diff --git a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi
--- a/arch/arm/boot/dts/dra7-l4.dtsi
+++ b/arch/arm/boot/dts/dra7-l4.dtsi
@@ -2044,6 +2044,38 @@ target-module@a4000 {			/* 0x480a4000, ap 57 42.0 */
 				 <0x00001000 0x000a5000 0x00001000>;
 		};
 
+		des_target: target-module@a5000 {	/* 0x480a5000 */
+			compatible = "ti,sysc-omap2", "ti,sysc";
+			ti,hwmods = "des";
+			reg = <0xa5030 0x4>,
+			      <0xa5034 0x4>,
+			      <0xa5038 0x4>;
+			reg-names = "rev", "sysc", "syss";
+			ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+					 SYSC_OMAP2_AUTOIDLE)>;
+			ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+					<SYSC_IDLE_NO>,
+					<SYSC_IDLE_SMART>,
+					<SYSC_IDLE_SMART_WKUP>;
+			ti,syss-mask = <1>;
+			/* Domains (P, C): l4per_pwrdm, l4sec_clkdm */
+			clocks = <&l4sec_clkctrl DRA7_L4SEC_DES_CLKCTRL 0>;
+			clock-names = "fck";
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges = <0 0xa5000 0x00001000>;
+
+			des: des@0 {
+				compatible = "ti,omap4-des";
+				reg = <0 0xa0>;
+				interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
+				dmas = <&sdma_xbar 117>, <&sdma_xbar 116>;
+				dma-names = "tx", "rx";
+				clocks = <&l3_iclk_div>;
+				clock-names = "fck";
+			};
+		};
+
 		target-module@a8000 {			/* 0x480a8000, ap 59 1a.0 */
 			compatible = "ti,sysc";
 			status = "disabled";
diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -716,17 +716,6 @@ aes2: aes@0 {
 			};
 		};
 
-		des: des@480a5000 {
-			compatible = "ti,omap4-des";
-			ti,hwmods = "des";
-			reg = <0x480a5000 0xa0>;
-			interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
-			dmas = <&sdma_xbar 117>, <&sdma_xbar 116>;
-			dma-names = "tx", "rx";
-			clocks = <&l3_iclk_div>;
-			clock-names = "fck";
-		};
-
 		sham_target: target-module@4b101000 {
 			compatible = "ti,sysc-omap3-sham", "ti,sysc";
 			ti,hwmods = "sham";
-- 
2.24.0

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

* [PATCH 09/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 sham
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (7 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 08/14] ARM: dts: Configure interconnect target module for dra7 des Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 10/14] ARM: OMAP2+: Drop legacy platform data for dra7 sham Tony Lindgren
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with ti-sysc interconnect driver and dts
data. Let's drop the related platform data and custom ti,hwmods
dts property.

As we're just dropping data, and the early platform data init
is based on the custom ti,hwmods property, we want to drop both
the platform data and ti,hwmods property in a single patch.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am33xx.dtsi                 |  1 -
 arch/arm/boot/dts/am4372.dtsi                 |  1 -
 .../omap_hwmod_33xx_43xx_common_data.h        |  2 --
 .../omap_hwmod_33xx_43xx_interconnect_data.c  |  8 ------
 .../omap_hwmod_33xx_43xx_ipblock_data.c       | 26 -------------------
 arch/arm/mach-omap2/omap_hwmod_33xx_data.c    |  1 -
 arch/arm/mach-omap2/omap_hwmod_43xx_data.c    |  1 -
 7 files changed, 40 deletions(-)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -441,7 +441,6 @@ gpmc: gpmc@50000000 {
 
 		sham_target: target-module@53100000 {
 			compatible = "ti,sysc-omap3-sham", "ti,sysc";
-			ti,hwmods = "sham";
 			reg = <0x53100100 0x4>,
 			      <0x53100110 0x4>,
 			      <0x53100114 0x4>;
diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -258,7 +258,6 @@ mmc3: mmc@0 {
 
 		sham_target: target-module@53100000 {
 			compatible = "ti,sysc-omap3-sham", "ti,sysc";
-			ti,hwmods = "sham";
 			reg = <0x53100100 0x4>,
 			      <0x53100110 0x4>,
 			      <0x53100114 0x4>;
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
@@ -49,7 +49,6 @@ extern struct omap_hwmod_ocp_if am33xx_l3_main__tptc0;
 extern struct omap_hwmod_ocp_if am33xx_l3_main__tptc1;
 extern struct omap_hwmod_ocp_if am33xx_l3_main__tptc2;
 extern struct omap_hwmod_ocp_if am33xx_l3_main__ocmc;
-extern struct omap_hwmod_ocp_if am33xx_l3_main__sha0;
 extern struct omap_hwmod_ocp_if am33xx_l3_main__aes0;
 
 extern struct omap_hwmod am33xx_l3_main_hwmod;
@@ -62,7 +61,6 @@ extern struct omap_hwmod am33xx_pruss_hwmod;
 extern struct omap_hwmod am33xx_gfx_hwmod;
 extern struct omap_hwmod am33xx_prcm_hwmod;
 extern struct omap_hwmod am33xx_aes0_hwmod;
-extern struct omap_hwmod am33xx_sha0_hwmod;
 extern struct omap_hwmod am33xx_ocmcram_hwmod;
 extern struct omap_hwmod am33xx_smartreflex0_hwmod;
 extern struct omap_hwmod am33xx_smartreflex1_hwmod;
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
@@ -269,14 +269,6 @@ struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
 	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 };
 
-/* l3 main -> sha0 HIB2 */
-struct omap_hwmod_ocp_if am33xx_l3_main__sha0 = {
-	.master		= &am33xx_l3_main_hwmod,
-	.slave		= &am33xx_sha0_hwmod,
-	.clk		= "sha0_fck",
-	.user		= OCP_USER_MPU | OCP_USER_SDMA,
-};
-
 /* l3 main -> AES0 HIB2 */
 struct omap_hwmod_ocp_if am33xx_l3_main__aes0 = {
 	.master		= &am33xx_l3_main_hwmod,
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
@@ -240,30 +240,6 @@ struct omap_hwmod am33xx_aes0_hwmod = {
 	},
 };
 
-/* sha0 HIB2 (the 'P' (public) device) */
-static struct omap_hwmod_class_sysconfig am33xx_sha0_sysc = {
-	.rev_offs	= 0x100,
-	.sysc_offs	= 0x110,
-	.syss_offs	= 0x114,
-	.sysc_flags	= SYSS_HAS_RESET_STATUS,
-};
-
-static struct omap_hwmod_class am33xx_sha0_hwmod_class = {
-	.name		= "sha0",
-	.sysc		= &am33xx_sha0_sysc,
-};
-
-struct omap_hwmod am33xx_sha0_hwmod = {
-	.name		= "sham",
-	.class		= &am33xx_sha0_hwmod_class,
-	.clkdm_name	= "l3_clkdm",
-	.main_clk	= "l3_gclk",
-	.prcm		= {
-		.omap4	= {
-			.modulemode	= MODULEMODE_SWCTRL,
-		},
-	},
-};
 
 /* ocmcram */
 static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = {
@@ -807,7 +783,6 @@ static void omap_hwmod_am33xx_clkctrl(void)
 	CLKCTRL(am33xx_mpu_hwmod , AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_l3_instr_hwmod , AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_ocmcram_hwmod , AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET);
-	CLKCTRL(am33xx_sha0_hwmod , AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_aes0_hwmod , AM33XX_CM_PER_AES0_CLKCTRL_OFFSET);
 }
 
@@ -860,7 +835,6 @@ static void omap_hwmod_am43xx_clkctrl(void)
 	CLKCTRL(am33xx_mpu_hwmod , AM43XX_CM_MPU_MPU_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_l3_instr_hwmod , AM43XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_ocmcram_hwmod , AM43XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET);
-	CLKCTRL(am33xx_sha0_hwmod , AM43XX_CM_PER_SHA0_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_aes0_hwmod , AM43XX_CM_PER_AES0_CLKCTRL_OFFSET);
 }
 
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
@@ -399,7 +399,6 @@ static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
 	&am33xx_l3_main__tptc1,
 	&am33xx_l3_main__tptc2,
 	&am33xx_l3_main__ocmc,
-	&am33xx_l3_main__sha0,
 	&am33xx_l3_main__aes0,
 	NULL,
 };
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
@@ -771,7 +771,6 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
 	&am33xx_l3_main__tptc1,
 	&am33xx_l3_main__tptc2,
 	&am33xx_l3_main__ocmc,
-	&am33xx_l3_main__sha0,
 	&am33xx_l3_main__aes0,
 	&am43xx_l3_main__des,
 	&am43xx_l4_ls__ocp2scp0,
-- 
2.24.0

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

* [PATCH 10/14] ARM: OMAP2+: Drop legacy platform data for dra7 sham
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (8 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 09/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 sham Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 11/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 aes Tony Lindgren
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with ti-sysc interconnect driver and dts
data. Let's drop the related platform data and custom ti,hwmods
dts property.

As we're just dropping data, and the early platform data init
is based on the custom ti,hwmods property, we want to drop both
the platform data and ti,hwmods property in a single patch.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dra7.dtsi               |  1 -
 arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 35 -----------------------
 2 files changed, 36 deletions(-)

diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -718,7 +718,6 @@ aes2: aes@0 {
 
 		sham_target: target-module@4b101000 {
 			compatible = "ti,sysc-omap3-sham", "ti,sysc";
-			ti,hwmods = "sham";
 			reg = <0x4b101100 0x4>,
 			      <0x4b101110 0x4>,
 			      <0x4b101114 0x4>;
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -669,32 +669,6 @@ static struct omap_hwmod dra7xx_aes2_hwmod = {
 	},
 };
 
-/* sha0 HIB2 (the 'P' (public) device) */
-static struct omap_hwmod_class_sysconfig dra7xx_sha0_sysc = {
-	.rev_offs	= 0x100,
-	.sysc_offs	= 0x110,
-	.syss_offs	= 0x114,
-	.sysc_flags	= SYSS_HAS_RESET_STATUS,
-};
-
-static struct omap_hwmod_class dra7xx_sha0_hwmod_class = {
-	.name		= "sham",
-	.sysc		= &dra7xx_sha0_sysc,
-};
-
-static struct omap_hwmod dra7xx_sha0_hwmod = {
-	.name		= "sham",
-	.class		= &dra7xx_sha0_hwmod_class,
-	.clkdm_name	= "l4sec_clkdm",
-	.main_clk	= "l3_iclk_div",
-	.prcm		= {
-		.omap4 = {
-			.clkctrl_offs = DRA7XX_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
-			.context_offs = DRA7XX_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
-			.modulemode   = MODULEMODE_HWCTRL,
-		},
-	},
-};
 
 /*
  * 'elm' class
@@ -1778,14 +1752,6 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes2 = {
 	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 };
 
-/* l3_main_1 -> sha0 */
-static struct omap_hwmod_ocp_if dra7xx_l3_main_1__sha0 = {
-	.master		= &dra7xx_l3_main_1_hwmod,
-	.slave		= &dra7xx_sha0_hwmod,
-	.clk		= "l3_iclk_div",
-	.user		= OCP_USER_MPU | OCP_USER_SDMA,
-};
-
 /* l4_per1 -> elm */
 static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
 	.master		= &dra7xx_l4_per1_hwmod,
@@ -2157,7 +2123,6 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
 	&dra7xx_l3_main_1__hdmi,
 	&dra7xx_l3_main_1__aes1,
 	&dra7xx_l3_main_1__aes2,
-	&dra7xx_l3_main_1__sha0,
 	&dra7xx_l4_per1__elm,
 	&dra7xx_l3_main_1__gpmc,
 	&dra7xx_l4_cfg__mpu,
-- 
2.24.0

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

* [PATCH 11/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 aes
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (9 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 10/14] ARM: OMAP2+: Drop legacy platform data for dra7 sham Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 12/14] ARM: OMAP2+: Drop legacy platform data for dra7 aes Tony Lindgren
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with ti-sysc interconnect driver and dts
data. Let's drop the related platform data and custom ti,hwmods
dts property.

As we're just dropping data, and the early platform data init
is based on the custom ti,hwmods property, we want to drop both
the platform data and ti,hwmods property in a single patch.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am33xx.dtsi                 |  1 -
 arch/arm/boot/dts/am4372.dtsi                 |  1 -
 .../omap_hwmod_33xx_43xx_common_data.h        |  2 --
 .../omap_hwmod_33xx_43xx_interconnect_data.c  |  8 ------
 .../omap_hwmod_33xx_43xx_ipblock_data.c       | 28 -------------------
 arch/arm/mach-omap2/omap_hwmod_33xx_data.c    |  1 -
 arch/arm/mach-omap2/omap_hwmod_43xx_data.c    |  1 -
 7 files changed, 42 deletions(-)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -469,7 +469,6 @@ sham: sham@0 {
 
 		aes_target: target-module@53500000 {
 			compatible = "ti,sysc-omap2", "ti,sysc";
-			ti,hwmods = "aes";
 			reg = <0x53500080 0x4>,
 			      <0x53500084 0x4>,
 			      <0x53500088 0x4>;
diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -286,7 +286,6 @@ sham: sham@0 {
 
 		aes_target: target-module@53501000 {
 			compatible = "ti,sysc-omap2", "ti,sysc";
-			ti,hwmods = "aes";
 			reg = <0x53501080 0x4>,
 			      <0x53501084 0x4>,
 			      <0x53501088 0x4>;
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_common_data.h
@@ -49,7 +49,6 @@ extern struct omap_hwmod_ocp_if am33xx_l3_main__tptc0;
 extern struct omap_hwmod_ocp_if am33xx_l3_main__tptc1;
 extern struct omap_hwmod_ocp_if am33xx_l3_main__tptc2;
 extern struct omap_hwmod_ocp_if am33xx_l3_main__ocmc;
-extern struct omap_hwmod_ocp_if am33xx_l3_main__aes0;
 
 extern struct omap_hwmod am33xx_l3_main_hwmod;
 extern struct omap_hwmod am33xx_l3_s_hwmod;
@@ -60,7 +59,6 @@ extern struct omap_hwmod am33xx_mpu_hwmod;
 extern struct omap_hwmod am33xx_pruss_hwmod;
 extern struct omap_hwmod am33xx_gfx_hwmod;
 extern struct omap_hwmod am33xx_prcm_hwmod;
-extern struct omap_hwmod am33xx_aes0_hwmod;
 extern struct omap_hwmod am33xx_ocmcram_hwmod;
 extern struct omap_hwmod am33xx_smartreflex0_hwmod;
 extern struct omap_hwmod am33xx_smartreflex1_hwmod;
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
@@ -268,11 +268,3 @@ struct omap_hwmod_ocp_if am33xx_l3_main__ocmc = {
 	.slave		= &am33xx_ocmcram_hwmod,
 	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 };
-
-/* l3 main -> AES0 HIB2 */
-struct omap_hwmod_ocp_if am33xx_l3_main__aes0 = {
-	.master		= &am33xx_l3_main_hwmod,
-	.slave		= &am33xx_aes0_hwmod,
-	.clk		= "aes0_fck",
-	.user		= OCP_USER_MPU | OCP_USER_SDMA,
-};
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
@@ -213,32 +213,6 @@ struct omap_hwmod_class am33xx_emif_hwmod_class = {
 	.sysc		= &am33xx_emif_sysc,
 };
 
-/*
- * 'aes0' class
- */
-static struct omap_hwmod_class_sysconfig am33xx_aes0_sysc = {
-	.rev_offs	= 0x80,
-	.sysc_offs	= 0x84,
-	.syss_offs	= 0x88,
-	.sysc_flags	= SYSS_HAS_RESET_STATUS,
-};
-
-static struct omap_hwmod_class am33xx_aes0_hwmod_class = {
-	.name		= "aes0",
-	.sysc		= &am33xx_aes0_sysc,
-};
-
-struct omap_hwmod am33xx_aes0_hwmod = {
-	.name		= "aes",
-	.class		= &am33xx_aes0_hwmod_class,
-	.clkdm_name	= "l3_clkdm",
-	.main_clk	= "aes0_fck",
-	.prcm		= {
-		.omap4	= {
-			.modulemode	= MODULEMODE_SWCTRL,
-		},
-	},
-};
 
 
 /* ocmcram */
@@ -783,7 +757,6 @@ static void omap_hwmod_am33xx_clkctrl(void)
 	CLKCTRL(am33xx_mpu_hwmod , AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_l3_instr_hwmod , AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_ocmcram_hwmod , AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET);
-	CLKCTRL(am33xx_aes0_hwmod , AM33XX_CM_PER_AES0_CLKCTRL_OFFSET);
 }
 
 static void omap_hwmod_am33xx_rst(void)
@@ -835,7 +808,6 @@ static void omap_hwmod_am43xx_clkctrl(void)
 	CLKCTRL(am33xx_mpu_hwmod , AM43XX_CM_MPU_MPU_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_l3_instr_hwmod , AM43XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET);
 	CLKCTRL(am33xx_ocmcram_hwmod , AM43XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET);
-	CLKCTRL(am33xx_aes0_hwmod , AM43XX_CM_PER_AES0_CLKCTRL_OFFSET);
 }
 
 static void omap_hwmod_am43xx_rst(void)
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
@@ -399,7 +399,6 @@ static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
 	&am33xx_l3_main__tptc1,
 	&am33xx_l3_main__tptc2,
 	&am33xx_l3_main__ocmc,
-	&am33xx_l3_main__aes0,
 	NULL,
 };
 
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
@@ -771,7 +771,6 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
 	&am33xx_l3_main__tptc1,
 	&am33xx_l3_main__tptc2,
 	&am33xx_l3_main__ocmc,
-	&am33xx_l3_main__aes0,
 	&am43xx_l3_main__des,
 	&am43xx_l4_ls__ocp2scp0,
 	&am43xx_l4_ls__ocp2scp1,
-- 
2.24.0

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

* [PATCH 12/14] ARM: OMAP2+: Drop legacy platform data for dra7 aes
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (10 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 11/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 aes Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 13/14] ARM: OMAP2+: Drop legacy platform data for am4 des Tony Lindgren
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with ti-sysc interconnect driver and dts
data. Let's drop the related platform data and custom ti,hwmods
dts property.

As we're just dropping data, and the early platform data init
is based on the custom ti,hwmods property, we want to drop both
the platform data and ti,hwmods property in a single patch.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dra7.dtsi               |  2 -
 arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 60 -----------------------
 2 files changed, 62 deletions(-)

diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -654,7 +654,6 @@ hdmi: encoder@58060000 {
 
 		aes1_target: target-module@4b500000 {
 			compatible = "ti,sysc-omap2", "ti,sysc";
-			ti,hwmods = "aes1";
 			reg = <0x4b500080 0x4>,
 			      <0x4b500084 0x4>,
 			      <0x4b500088 0x4>;
@@ -686,7 +685,6 @@ aes1: aes@0 {
 
 		aes2_target: target-module@4b700000 {
 			compatible = "ti,sysc-omap2", "ti,sysc";
-			ti,hwmods = "aes2";
 			reg = <0x4b700080 0x4>,
 			      <0x4b700084 0x4>,
 			      <0x4b700088 0x4>;
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -626,48 +626,6 @@ static struct omap_hwmod dra7xx_dss_hdmi_hwmod = {
 	.parent_hwmod	= &dra7xx_dss_hwmod,
 };
 
-/* AES (the 'P' (public) device) */
-static struct omap_hwmod_class_sysconfig dra7xx_aes_sysc = {
-	.rev_offs	= 0x0080,
-	.sysc_offs	= 0x0084,
-	.syss_offs	= 0x0088,
-	.sysc_flags	= SYSS_HAS_RESET_STATUS,
-};
-
-static struct omap_hwmod_class dra7xx_aes_hwmod_class = {
-	.name	= "aes",
-	.sysc	= &dra7xx_aes_sysc,
-};
-
-/* AES1 */
-static struct omap_hwmod dra7xx_aes1_hwmod = {
-	.name		= "aes1",
-	.class		= &dra7xx_aes_hwmod_class,
-	.clkdm_name	= "l4sec_clkdm",
-	.main_clk	= "l3_iclk_div",
-	.prcm = {
-		.omap4 = {
-			.clkctrl_offs = DRA7XX_CM_L4SEC_AES1_CLKCTRL_OFFSET,
-			.context_offs = DRA7XX_RM_L4SEC_AES1_CONTEXT_OFFSET,
-			.modulemode   = MODULEMODE_HWCTRL,
-		},
-	},
-};
-
-/* AES2 */
-static struct omap_hwmod dra7xx_aes2_hwmod = {
-	.name		= "aes2",
-	.class		= &dra7xx_aes_hwmod_class,
-	.clkdm_name	= "l4sec_clkdm",
-	.main_clk	= "l3_iclk_div",
-	.prcm = {
-		.omap4 = {
-			.clkctrl_offs = DRA7XX_CM_L4SEC_AES2_CLKCTRL_OFFSET,
-			.context_offs = DRA7XX_RM_L4SEC_AES2_CONTEXT_OFFSET,
-			.modulemode   = MODULEMODE_HWCTRL,
-		},
-	},
-};
 
 
 /*
@@ -1736,22 +1694,6 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__hdmi = {
 	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 };
 
-/* l3_main_1 -> aes1 */
-static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes1 = {
-	.master		= &dra7xx_l3_main_1_hwmod,
-	.slave		= &dra7xx_aes1_hwmod,
-	.clk		= "l3_iclk_div",
-	.user		= OCP_USER_MPU | OCP_USER_SDMA,
-};
-
-/* l3_main_1 -> aes2 */
-static struct omap_hwmod_ocp_if dra7xx_l3_main_1__aes2 = {
-	.master		= &dra7xx_l3_main_1_hwmod,
-	.slave		= &dra7xx_aes2_hwmod,
-	.clk		= "l3_iclk_div",
-	.user		= OCP_USER_MPU | OCP_USER_SDMA,
-};
-
 /* l4_per1 -> elm */
 static struct omap_hwmod_ocp_if dra7xx_l4_per1__elm = {
 	.master		= &dra7xx_l4_per1_hwmod,
@@ -2121,8 +2063,6 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
 	&dra7xx_l3_main_1__dss,
 	&dra7xx_l3_main_1__dispc,
 	&dra7xx_l3_main_1__hdmi,
-	&dra7xx_l3_main_1__aes1,
-	&dra7xx_l3_main_1__aes2,
 	&dra7xx_l4_per1__elm,
 	&dra7xx_l3_main_1__gpmc,
 	&dra7xx_l4_cfg__mpu,
-- 
2.24.0

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

* [PATCH 13/14] ARM: OMAP2+: Drop legacy platform data for am4 des
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (11 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 12/14] ARM: OMAP2+: Drop legacy platform data for dra7 aes Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-10 23:17 ` [PATCH 14/14] ARM: OMAP2+: Drop legacy platform data for dra7 des Tony Lindgren
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with ti-sysc interconnect driver and dts
data. Let's drop the related platform data and custom ti,hwmods
dts property.

As we're just dropping data, and the early platform data init
is based on the custom ti,hwmods property, we want to drop both
the platform data and ti,hwmods property in a single patch.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/am4372.dtsi              |  1 -
 arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 33 ----------------------
 2 files changed, 34 deletions(-)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -316,7 +316,6 @@ aes: aes@0 {
 
 		des_target: target-module@53701000 {
 			compatible = "ti,sysc-omap2", "ti,sysc";
-			ti,hwmods = "des";
 			reg = <0x53701030 0x4>,
 			      <0x53701034 0x4>,
 			      <0x53701038 0x4>;
diff --git a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
@@ -347,31 +347,6 @@ static struct omap_hwmod am43xx_adc_tsc_hwmod = {
 	},
 };
 
-static struct omap_hwmod_class_sysconfig am43xx_des_sysc = {
-	.rev_offs	= 0x30,
-	.sysc_offs	= 0x34,
-	.syss_offs	= 0x38,
-	.sysc_flags	= SYSS_HAS_RESET_STATUS,
-};
-
-static struct omap_hwmod_class am43xx_des_hwmod_class = {
-	.name		= "des",
-	.sysc		= &am43xx_des_sysc,
-};
-
-static struct omap_hwmod am43xx_des_hwmod = {
-	.name		= "des",
-	.class		= &am43xx_des_hwmod_class,
-	.clkdm_name	= "l3_clkdm",
-	.main_clk	= "l3_gclk",
-	.prcm		= {
-		.omap4	= {
-			.clkctrl_offs	= AM43XX_CM_PER_DES_CLKCTRL_OFFSET,
-			.modulemode	= MODULEMODE_SWCTRL,
-		},
-	},
-};
-
 /* dss */
 
 static struct omap_hwmod am43xx_dss_core_hwmod = {
@@ -711,13 +686,6 @@ static struct omap_hwmod_ocp_if am43xx_l4_ls__vpfe1 = {
 	.user           = OCP_USER_MPU | OCP_USER_SDMA,
 };
 
-static struct omap_hwmod_ocp_if am43xx_l3_main__des = {
-	.master		= &am33xx_l3_main_hwmod,
-	.slave		= &am43xx_des_hwmod,
-	.clk		= "l3_gclk",
-	.user		= OCP_USER_MPU,
-};
-
 static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
 	&am33xx_l4_wkup__synctimer,
 	&am43xx_l4_ls__timer8,
@@ -771,7 +739,6 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
 	&am33xx_l3_main__tptc1,
 	&am33xx_l3_main__tptc2,
 	&am33xx_l3_main__ocmc,
-	&am43xx_l3_main__des,
 	&am43xx_l4_ls__ocp2scp0,
 	&am43xx_l4_ls__ocp2scp1,
 	&am43xx_l3_s__usbotgss0,
-- 
2.24.0

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

* [PATCH 14/14] ARM: OMAP2+: Drop legacy platform data for dra7 des
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (12 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 13/14] ARM: OMAP2+: Drop legacy platform data for am4 des Tony Lindgren
@ 2019-12-10 23:17 ` Tony Lindgren
  2019-12-12  8:20 ` [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tero Kristo
  2019-12-13  6:14 ` Keerthy
  15 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-10 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy, Tero Kristo

We can now probe devices with ti-sysc interconnect driver and dts
data. Let's drop the related platform data and custom ti,hwmods
dts property.

As we're just dropping data, and the early platform data init
is based on the custom ti,hwmods property, we want to drop both
the platform data and ti,hwmods property in a single patch.

Cc: Keerthy <j-keerthy@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 arch/arm/boot/dts/dra7-l4.dtsi            |  1 -
 arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 37 -----------------------
 2 files changed, 38 deletions(-)

diff --git a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi
--- a/arch/arm/boot/dts/dra7-l4.dtsi
+++ b/arch/arm/boot/dts/dra7-l4.dtsi
@@ -2046,7 +2046,6 @@ target-module@a4000 {			/* 0x480a4000, ap 57 42.0 */
 
 		des_target: target-module@a5000 {	/* 0x480a5000 */
 			compatible = "ti,sysc-omap2", "ti,sysc";
-			ti,hwmods = "des";
 			reg = <0xa5030 0x4>,
 			      <0xa5034 0x4>,
 			      <0xa5038 0x4>;
diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
--- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c
@@ -1336,34 +1336,6 @@ static struct omap_hwmod dra7xx_timer16_hwmod = {
 	},
 };
 
-/* DES (the 'P' (public) device) */
-static struct omap_hwmod_class_sysconfig dra7xx_des_sysc = {
-	.rev_offs	= 0x0030,
-	.sysc_offs	= 0x0034,
-	.syss_offs	= 0x0038,
-	.sysc_flags	= SYSS_HAS_RESET_STATUS,
-};
-
-static struct omap_hwmod_class dra7xx_des_hwmod_class = {
-	.name	= "des",
-	.sysc	= &dra7xx_des_sysc,
-};
-
-/* DES */
-static struct omap_hwmod dra7xx_des_hwmod = {
-	.name		= "des",
-	.class		= &dra7xx_des_hwmod_class,
-	.clkdm_name	= "l4sec_clkdm",
-	.main_clk	= "l3_iclk_div",
-	.prcm = {
-		.omap4 = {
-			.clkctrl_offs = DRA7XX_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
-			.context_offs = DRA7XX_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
-			.modulemode   = MODULEMODE_HWCTRL,
-		},
-	},
-};
-
 /*
  * 'usb_otg_ss' class
  *
@@ -1942,14 +1914,6 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per3__timer16 = {
 	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 };
 
-/* l4_per1 -> des */
-static struct omap_hwmod_ocp_if dra7xx_l4_per1__des = {
-	.master		= &dra7xx_l4_per1_hwmod,
-	.slave		= &dra7xx_des_hwmod,
-	.clk		= "l3_iclk_div",
-	.user		= OCP_USER_MPU | OCP_USER_SDMA,
-};
-
 /* l4_per3 -> usb_otg_ss1 */
 static struct omap_hwmod_ocp_if dra7xx_l4_per3__usb_otg_ss1 = {
 	.master		= &dra7xx_l4_per3_hwmod,
@@ -2092,7 +2056,6 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = {
 	&dra7xx_l4_per3__timer14,
 	&dra7xx_l4_per3__timer15,
 	&dra7xx_l4_per3__timer16,
-	&dra7xx_l4_per1__des,
 	&dra7xx_l4_per3__usb_otg_ss1,
 	&dra7xx_l4_per3__usb_otg_ss2,
 	&dra7xx_l4_per3__usb_otg_ss3,
-- 
2.24.0

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

* Re: [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (13 preceding siblings ...)
  2019-12-10 23:17 ` [PATCH 14/14] ARM: OMAP2+: Drop legacy platform data for dra7 des Tony Lindgren
@ 2019-12-12  8:20 ` Tero Kristo
  2019-12-12 16:16   ` Tony Lindgren
  2019-12-13  6:14 ` Keerthy
  15 siblings, 1 reply; 18+ messages in thread
From: Tero Kristo @ 2019-12-12  8:20 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap; +Cc: Benoît Cousson, devicetree, Keerthy

On 11/12/2019 01:17, Tony Lindgren wrote:
> Hi,
> 
> This series updates crypto accelerators to probe with ti-sysc and device tree
> data for am3, am4 and dra7.
> 
> Regards,
> 
> Tony

Gave this a shot on top of 5.5-rc1 + the crypto fixes series on 
am57xx-beagle-x15, using both tcrypt.ko and crypto manager self tests. 
Appears to be working. Also, looked at the patches and they seem fine, 
so for the whole series:

Tested-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Tero Kristo <t-kristo@ti.com>

> 
> 
> Tony Lindgren (14):
>    ARM: dts: Configure interconnect target module for am3 sham
>    ARM: dts: Configure interconnect target module for am4 sham
>    ARM: dts: Configure interconnect target module for dra7 sham
>    ARM: dts: Configure interconnect target module for am3 aes
>    ARM: dts: Configure interconnect target module for am4 aes
>    ARM: dts: Configure interconnect target module for dra7 aes
>    ARM: dts: Configure interconnect target module for am4 des
>    ARM: dts: Configure interconnect target module for dra7 des
>    ARM: OMAP2+: Drop legacy platform data for am3 and am4 sham
>    ARM: OMAP2+: Drop legacy platform data for dra7 sham
>    ARM: OMAP2+: Drop legacy platform data for am3 and am4 aes
>    ARM: OMAP2+: Drop legacy platform data for dra7 aes
>    ARM: OMAP2+: Drop legacy platform data for am4 des
>    ARM: OMAP2+: Drop legacy platform data for dra7 des
> 
>   arch/arm/boot/dts/am33xx.dtsi                 |  69 +++++++--
>   arch/arm/boot/dts/am4372.dtsi                 | 105 +++++++++++---
>   arch/arm/boot/dts/dra7-l4.dtsi                |  31 ++++
>   arch/arm/boot/dts/dra7.dtsi                   | 118 +++++++++++-----
>   .../omap_hwmod_33xx_43xx_common_data.h        |   4 -
>   .../omap_hwmod_33xx_43xx_interconnect_data.c  |  16 ---
>   .../omap_hwmod_33xx_43xx_ipblock_data.c       |  54 -------
>   arch/arm/mach-omap2/omap_hwmod_33xx_data.c    |   2 -
>   arch/arm/mach-omap2/omap_hwmod_43xx_data.c    |  35 -----
>   arch/arm/mach-omap2/omap_hwmod_7xx_data.c     | 132 ------------------
>   10 files changed, 250 insertions(+), 316 deletions(-)
> 

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

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

* Re: [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc
  2019-12-12  8:20 ` [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tero Kristo
@ 2019-12-12 16:16   ` Tony Lindgren
  0 siblings, 0 replies; 18+ messages in thread
From: Tony Lindgren @ 2019-12-12 16:16 UTC (permalink / raw)
  To: Tero Kristo; +Cc: linux-omap, Benoît Cousson, devicetree, Keerthy

* Tero Kristo <t-kristo@ti.com> [191212 08:21]:
> On 11/12/2019 01:17, Tony Lindgren wrote:
> > Hi,
> > 
> > This series updates crypto accelerators to probe with ti-sysc and device tree
> > data for am3, am4 and dra7.
...

> Gave this a shot on top of 5.5-rc1 + the crypto fixes series on
> am57xx-beagle-x15, using both tcrypt.ko and crypto manager self tests.
> Appears to be working. Also, looked at the patches and they seem fine, so
> for the whole series:
> 
> Tested-by: Tero Kristo <t-kristo@ti.com>
> Reviewed-by: Tero Kristo <t-kristo@ti.com>

OK thanks for testing, good to hear.

Regards,

Tony

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

* Re: [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc
  2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
                   ` (14 preceding siblings ...)
  2019-12-12  8:20 ` [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tero Kristo
@ 2019-12-13  6:14 ` Keerthy
  15 siblings, 0 replies; 18+ messages in thread
From: Keerthy @ 2019-12-13  6:14 UTC (permalink / raw)
  To: Tony Lindgren, linux-omap; +Cc: Benoît Cousson, devicetree, Tero Kristo

[-- Attachment #1: Type: text/plain, Size: 2036 bytes --]



On 11/12/19 4:47 am, Tony Lindgren wrote:
> Hi,
> 
> This series updates crypto accelerators to probe with ti-sysc and device tree
> data for am3, am4 and dra7.

Hi Tony,

Boot tested on DRA72 & DRA76.

Tested for RTC+DDR mode and DS0 mode on AM437x.
Tested for DS0 on am335x-evm & am335x-beagle-bone-black.

FWIW

Tested-by: Keerthy <j-keerthy@ti.com>

- Keerthy

> 
> Regards,
> 
> Tony
> 
> 
> Tony Lindgren (14):
>   ARM: dts: Configure interconnect target module for am3 sham
>   ARM: dts: Configure interconnect target module for am4 sham
>   ARM: dts: Configure interconnect target module for dra7 sham
>   ARM: dts: Configure interconnect target module for am3 aes
>   ARM: dts: Configure interconnect target module for am4 aes
>   ARM: dts: Configure interconnect target module for dra7 aes
>   ARM: dts: Configure interconnect target module for am4 des
>   ARM: dts: Configure interconnect target module for dra7 des
>   ARM: OMAP2+: Drop legacy platform data for am3 and am4 sham
>   ARM: OMAP2+: Drop legacy platform data for dra7 sham
>   ARM: OMAP2+: Drop legacy platform data for am3 and am4 aes
>   ARM: OMAP2+: Drop legacy platform data for dra7 aes
>   ARM: OMAP2+: Drop legacy platform data for am4 des
>   ARM: OMAP2+: Drop legacy platform data for dra7 des
> 
>  arch/arm/boot/dts/am33xx.dtsi                 |  69 +++++++--
>  arch/arm/boot/dts/am4372.dtsi                 | 105 +++++++++++---
>  arch/arm/boot/dts/dra7-l4.dtsi                |  31 ++++
>  arch/arm/boot/dts/dra7.dtsi                   | 118 +++++++++++-----
>  .../omap_hwmod_33xx_43xx_common_data.h        |   4 -
>  .../omap_hwmod_33xx_43xx_interconnect_data.c  |  16 ---
>  .../omap_hwmod_33xx_43xx_ipblock_data.c       |  54 -------
>  arch/arm/mach-omap2/omap_hwmod_33xx_data.c    |   2 -
>  arch/arm/mach-omap2/omap_hwmod_43xx_data.c    |  35 -----
>  arch/arm/mach-omap2/omap_hwmod_7xx_data.c     | 132 ------------------
>  10 files changed, 250 insertions(+), 316 deletions(-)
> 

[-- Attachment #2: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 9065 bytes --]

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

end of thread, other threads:[~2019-12-13  6:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 23:17 [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tony Lindgren
2019-12-10 23:17 ` [PATCH 01/14] ARM: dts: Configure interconnect target module for am3 sham Tony Lindgren
2019-12-10 23:17 ` [PATCH 02/14] ARM: dts: Configure interconnect target module for am4 sham Tony Lindgren
2019-12-10 23:17 ` [PATCH 03/14] ARM: dts: Configure interconnect target module for dra7 sham Tony Lindgren
2019-12-10 23:17 ` [PATCH 04/14] ARM: dts: Configure interconnect target module for am3 aes Tony Lindgren
2019-12-10 23:17 ` [PATCH 05/14] ARM: dts: Configure interconnect target module for am4 aes Tony Lindgren
2019-12-10 23:17 ` [PATCH 06/14] ARM: dts: Configure interconnect target module for dra7 aes Tony Lindgren
2019-12-10 23:17 ` [PATCH 07/14] ARM: dts: Configure interconnect target module for am4 des Tony Lindgren
2019-12-10 23:17 ` [PATCH 08/14] ARM: dts: Configure interconnect target module for dra7 des Tony Lindgren
2019-12-10 23:17 ` [PATCH 09/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 sham Tony Lindgren
2019-12-10 23:17 ` [PATCH 10/14] ARM: OMAP2+: Drop legacy platform data for dra7 sham Tony Lindgren
2019-12-10 23:17 ` [PATCH 11/14] ARM: OMAP2+: Drop legacy platform data for am3 and am4 aes Tony Lindgren
2019-12-10 23:17 ` [PATCH 12/14] ARM: OMAP2+: Drop legacy platform data for dra7 aes Tony Lindgren
2019-12-10 23:17 ` [PATCH 13/14] ARM: OMAP2+: Drop legacy platform data for am4 des Tony Lindgren
2019-12-10 23:17 ` [PATCH 14/14] ARM: OMAP2+: Drop legacy platform data for dra7 des Tony Lindgren
2019-12-12  8:20 ` [PATCH 00/14] Probe am3, am4 and dra7 crypto accelerators with ti-sysc Tero Kristo
2019-12-12 16:16   ` Tony Lindgren
2019-12-13  6:14 ` Keerthy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.