Add AM64x SoC support to PRUSS platform driver
Subsystems (2)
cover Add AM64x SoC support to PRUSS platform driver
Hi Santosh,
The following series adds the base support for the ICSSG IP on AM64x SoCs. Patches are on top of v5.13-rc1 + minor fix that Jan had posted [1].
The ICSSG IP on AM64x is a minor revised version that looks almost same as the version used on J721E. There is no SGMII support on AM64x SoCs, but otherwise they have the same 2 PRUs, 2 RTUS and 2 Tx_PRUs just like J721E and AM65x SR2.0 SoCs.
The CFG sub-module is the only sub-module that has a different revision version w.r.t J721E. J721E and AM65x differed in CFG, ECC Aggregator, RAT Slices. ECAP, INTC, MDIO and UART0 are all identical. There are no revision registers on IEP0/IEP1, MII_RT, MII_G_RT, PROTECT or TASK Manager modules, and these look to be identical from a quick register comparision from TRM. There are no SGMII registers at all. IEP, MII_RT and MII_G_RT are also syscon nodes, so any differences would have to be dealt within the client drivers.
regards,
Suman
[1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
Suman Anna (2):
dt-bindings: soc: ti: pruss: Update bindings for K3 AM64x SoCs
soc: ti: pruss: Enable support for ICSSG subsystems on K3 AM64x SoCs
Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml | 6 ++++-- drivers/soc/ti/pruss.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.30.1
PATCH 1/2 dt-bindings: soc: ti: pruss: Update bindings for K3 AM64x SoCs
The K3 AM64x SoCs also have the Gigabit Ethernet capable PRU-ICSS IP that is present on existing K3 AM65x and J721E SoCs (ICSSG). The IP is similar to the ones used on K3 J721E or AM65x SR2.0 SoCs.
Update the PRUSS bindings for these ICSSG instances.
--- Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml +4 -2
@@ -68,6 +68,7 @@ properties: - ti,k2g-pruss # for 66AK2G SoC family - ti,am654-icssg # for K3 AM65x SoC family - ti,j721e-icssg # for K3 J721E SoC family + - ti,am642-icssg # for K3 AM64x SoC family reg: maxItems: 1
@@ -233,8 +234,8 @@ patternProperties: description: | Industrial Ethernet Peripheral to manage/generate Industrial Ethernet functions such as time stamping. Each PRUSS has either 1 IEP (on AM335x, - AM437x, AM57xx & 66AK2G SoCs) or 2 IEPs (on K3 AM65x & J721E SoCs ). IEP - is used for creating PTP clocks and generating PPS signals. + AM437x, AM57xx & 66AK2G SoCs) or 2 IEPs (on K3 AM65x, J721E & AM64x SoCs). + IEP is used for creating PTP clocks and generating PPS signals. type: object
@@ -333,6 +334,7 @@ if: - ti,k2g-pruss - ti,am654-icssg - ti,j721e-icssg + - ti,am642-icssg then: required: - power-domains
Signature · 1 line
2.30.1
Re: [PATCH 1/2] dt-bindings: soc: ti: pruss: Update bindings for K3 AM64x SoCs
Quoted 11 lines · Suman Anna
The K3 AM64x SoCs also have the Gigabit Ethernet capable PRU-ICSS IP that is present on existing K3 AM65x and J721E SoCs (ICSSG). The IP is similar to the ones used on K3 J721E or AM65x SR2.0 SoCs.
Update the PRUSS bindings for these ICSSG instances.
Signed-off-by Suman Anna <[email protected]>--- Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 2 lines
Best regards, grygorii
Re: [PATCH 1/2] dt-bindings: soc: ti: pruss: Update bindings for K3 AM64x SoCs
In reply to Suman AnnaQuoted 11 lines · Suman Anna
The K3 AM64x SoCs also have the Gigabit Ethernet capable PRU-ICSS IP that is present on existing K3 AM65x and J721E SoCs (ICSSG). The IP is similar to the ones used on K3 J721E or AM65x SR2.0 SoCs.
Update the PRUSS bindings for these ICSSG instances.
Signed-off-by Suman Anna <[email protected]>--- Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
PATCH 2/2 soc: ti: pruss: Enable support for ICSSG subsystems on K3 AM64x SoCs
In reply to Suman AnnaThe K3 AM64x family of SoCs have a similar version of the PRU-ICSS (ICSSG) processor subsystem present on K3 J721E and K3 AM65x SR2.0 SoCs. These SoCs contain typically two ICSSG instances named ICSSG0 and ICSSG1. The two ICSSGs are identical to each other for the most part with minor SoC integration differences and capabilities. SGMII mode is not supported at all on these SoCs (unlike specific instances on AM65x, J721E). The ICSSG1 also has limited pins connected on some sub-modules compared to ICSSG0.
There is no change in the Interrupt Controller w.r.t either of AM65x or J721E SoCs. All other integration aspects are also very similar to the existing SoCs.
The existing pruss platform driver has been updated to support these similar ICSSG instances through a new AM64x specific compatible.
--- drivers/soc/ti/pruss.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/ti/pruss.c +1 -0
@@ -338,6 +338,7 @@ static const struct of_device_id pruss_of_match[] = { { .compatible = "ti,k2g-pruss" }, { .compatible = "ti,am654-icssg", .data = &am65x_j721e_pruss_data, }, { .compatible = "ti,j721e-icssg", .data = &am65x_j721e_pruss_data, }, + { .compatible = "ti,am642-icssg", .data = &am65x_j721e_pruss_data, }, {}, }; MODULE_DEVICE_TABLE(of, pruss_of_match);
Signature · 1 line
2.30.1
Re: [PATCH 2/2] soc: ti: pruss: Enable support for ICSSG subsystems on K3 AM64x SoCs
Quoted 26 lines · Suman Anna
The K3 AM64x family of SoCs have a similar version of the PRU-ICSS (ICSSG) processor subsystem present on K3 J721E and K3 AM65x SR2.0 SoCs. These SoCs contain typically two ICSSG instances named ICSSG0 and ICSSG1. The two ICSSGs are identical to each other for the most part with minor SoC integration differences and capabilities. SGMII mode is not supported at all on these SoCs (unlike specific instances on AM65x, J721E). The ICSSG1 also has limited pins connected on some sub-modules compared to ICSSG0.
There is no change in the Interrupt Controller w.r.t either of AM65x or J721E SoCs. All other integration aspects are also very similar to the existing SoCs.
The existing pruss platform driver has been updated to support these similar ICSSG instances through a new AM64x specific compatible.
Signed-off-by Suman Anna <[email protected]>--- drivers/soc/ti/pruss.c | 1 + 1 file changed, 1 insertion(+)drivers/soc/ti/pruss.c +0
-0
drivers/soc/ti/pruss.c static const struct of_device_id pruss_of_match[] = { · line 344
Quoted 7 lines
drivers/soc/ti/pruss.c +1
-0@@ -338,6 +338,7 @@ static const struct of_device_id pruss_of_match[] = { { .compatible = "ti,k2g-pruss" }, { .compatible = "ti,am654-icssg", .data = &am65x_j721e_pruss_data, }, { .compatible = "ti,j721e-icssg", .data = &am65x_j721e_pruss_data, }, + { .compatible = "ti,am642-icssg", .data = &am65x_j721e_pruss_data, }, {}, }; MODULE_DEVICE_TABLE(of, pruss_of_match);
Signature · 2 lines
Best regards, grygorii