mbox series

[v4,0/5] arm64: Initial support for Texas Instruments AM642 Platform

Message ID 20210226144257.5470-1-d-gerlach@ti.com
Headers show
Series arm64: Initial support for Texas Instruments AM642 Platform | expand

Message

Dave Gerlach Feb. 26, 2021, 2:42 p.m. UTC
Hi,
This is v4 of the series to add initial support for the latest new SoC,
AM642, from Texas Instruments. Additional detail can be found in the
patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2,
Nov 2020) for further details: https://www.ti.com/lit/pdf/spruim2

This version contains a few minor fixes from v3:

* Add Rob's Ack to patch 2
* Drop address-cells from interrupt controller node in patch 4 as [1] was dropped
* Add Suman's Signed-off-by to patch 3
* Fix date range in Makefile for TI dtbs in patch 5
* Include Reviewed-by from several people from v3 for multiple patches

v3: https://lore.kernel.org/linux-arm-kernel/20210120202532.9011-1-d-gerlach@ti.com/
v2: https://lore.kernel.org/linux-arm-kernel/20210119163927.774-1-d-gerlach@ti.com/
v1: https://lore.kernel.org/linux-arm-kernel/20201125052004.17823-1-d-gerlach@ti.com/

Regards,
Dave

[1] https://lore.kernel.org/linux-arm-kernel/161131973654.21299.8023411678794984222.b4-ty@ti.com/

Dave Gerlach (4):
  dt-bindings: arm: ti: Add bindings for AM642 SoC
  dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64
  arm64: dts: ti: Add support for AM642 SoC
  arm64: dts: ti: Add support for AM642 EVM

Peter Ujfalusi (1):
  arm64: dts: ti: k3-am64-main: Enable DMA support

 .../devicetree/bindings/arm/ti/k3.yaml        |   6 +
 arch/arm64/boot/dts/ti/Makefile               |   4 +-
 arch/arm64/boot/dts/ti/k3-am64-main.dtsi      | 405 ++++++++++++++++++
 arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi       |  76 ++++
 arch/arm64/boot/dts/ti/k3-am64.dtsi           | 103 +++++
 arch/arm64/boot/dts/ti/k3-am642-evm.dts       | 246 +++++++++++
 arch/arm64/boot/dts/ti/k3-am642.dtsi          |  65 +++
 include/dt-bindings/pinctrl/k3.h              |   5 +-
 8 files changed, 908 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm64/boot/dts/ti/k3-am64-main.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-am64.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm.dts
 create mode 100644 arch/arm64/boot/dts/ti/k3-am642.dtsi

Comments

Nishanth Menon Feb. 27, 2021, 1:19 p.m. UTC | #1
On 08:42-20210226, Dave Gerlach wrote:
> The AM642 SoC belongs to the K3 Multicore SoC architecture platform,

> providing advanced system integration to enable applications such as

> Motor Drives, PLC, Remote IO and IoT Gateways.

> 

> Some highlights of this SoC are:

> * Dual Cortex-A53s in a single cluster, two clusters of dual Cortex-R5F

>   MCUs, and a single Cortex-M4F.

> * Two Gigabit Industrial Communication Subsystems (ICSSG).

> * Integrated Ethernet switch supporting up to a total of two external

>   ports.

> * PCIe-GEN2x1L, USB3/USB2, 2xCAN-FD, eMMC and SD, UFS, OSPI memory

>   controller, QSPI, I2C, eCAP/eQEP, ePWM, ADC, among other

>   peripherals.

> * Centralized System Controller for Security, Power, and Resource

>   Management (DMSC).

> 

> See AM64X Technical Reference Manual (SPRUIM2, Nov 2020)

> for further details: https://www.ti.com/lit/pdf/spruim2

> 

> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>

> Reviewed-by: Rob Herring <robh@kernel.org>

> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>

> ---

>  Documentation/devicetree/bindings/arm/ti/k3.yaml | 6 ++++++

>  1 file changed, 6 insertions(+)

> 

> diff --git a/Documentation/devicetree/bindings/arm/ti/k3.yaml b/Documentation/devicetree/bindings/arm/ti/k3.yaml

> index c6e1c1e63e43..393f94a64f8d 100644

> --- a/Documentation/devicetree/bindings/arm/ti/k3.yaml

> +++ b/Documentation/devicetree/bindings/arm/ti/k3.yaml

> @@ -33,6 +33,12 @@ properties:

>          items:

>            - const: ti,j7200

>  

> +      - description: K3 AM642 SoC

> +        items:

> +          - enum:

> +              - ti,am642-evm

> +          - const: ti,am642

> +

>  additionalProperties: true

>  

>  ...

> -- 

> 2.28.0

> 


Just documenting for lore:
https://lore.kernel.org/linux-arm-kernel/20210209023418.GA2564097@robh.at.kernel.org/
is where we got the ack for the patch.

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Nishanth Menon Feb. 27, 2021, 1:20 p.m. UTC | #2
On 08:42-20210226, Dave Gerlach wrote:
> Add pinctrl macros for AM64 SoC. These macro definitions are similar to

> that of previous platforms, but adding new definitions to avoid any

> naming confusions in the soc dts files.

> 

> Unlike what checkpatch insists, we do not need parentheses enclosing

> the values for this macro as we do intend it to generate two separate

> values as has been done for other similar platforms.

> 

> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>

> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>

> Reviewed-by: Suman Anna <s-anna@ti.com>

> Acked-by: Rob Herring <robh@kernel.org>

> ---

>  include/dt-bindings/pinctrl/k3.h | 5 ++++-

>  1 file changed, 4 insertions(+), 1 deletion(-)

> 

> diff --git a/include/dt-bindings/pinctrl/k3.h b/include/dt-bindings/pinctrl/k3.h

> index b0eea7cc6e23..e085f102b283 100644

> --- a/include/dt-bindings/pinctrl/k3.h

> +++ b/include/dt-bindings/pinctrl/k3.h

> @@ -3,7 +3,7 @@

>   * This header provides constants for pinctrl bindings for TI's K3 SoC

>   * family.

>   *

> - * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/

> + * Copyright (C) 2018-2021 Texas Instruments Incorporated - https://www.ti.com/

>   */

>  #ifndef _DT_BINDINGS_PINCTRL_TI_K3_H

>  #define _DT_BINDINGS_PINCTRL_TI_K3_H

> @@ -35,4 +35,7 @@

>  #define J721E_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))

>  #define J721E_WKUP_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))

>  

> +#define AM64X_IOPAD(pa, val, muxmode)		(((pa) & 0x1fff)) ((val) | (muxmode))

> +#define AM64X_MCU_IOPAD(pa, val, muxmode)	(((pa) & 0x1fff)) ((val) | (muxmode))

> +

>  #endif

> -- 

> 2.28.0

> 


Just documenting for lore:
https://lore.kernel.org/linux-arm-kernel/20210209023418.GA2564097@robh.at.kernel.org/#t
is where the ack was picked up from.

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Nishanth Menon Feb. 27, 2021, 2:55 p.m. UTC | #3
On 08:42-20210226, Dave Gerlach wrote:
> Hi,

> This is v4 of the series to add initial support for the latest new SoC,

> AM642, from Texas Instruments. Additional detail can be found in the

> patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2,

> Nov 2020) for further details: https://www.ti.com/lit/pdf/spruim2

> 

> This version contains a few minor fixes from v3:

> 

> * Add Rob's Ack to patch 2

> * Drop address-cells from interrupt controller node in patch 4 as [1] was dropped

> * Add Suman's Signed-off-by to patch 3

> * Fix date range in Makefile for TI dtbs in patch 5

> * Include Reviewed-by from several people from v3 for multiple patches

> 

> v3: https://lore.kernel.org/linux-arm-kernel/20210120202532.9011-1-d-gerlach@ti.com/

> v2: https://lore.kernel.org/linux-arm-kernel/20210119163927.774-1-d-gerlach@ti.com/

> v1: https://lore.kernel.org/linux-arm-kernel/20201125052004.17823-1-d-gerlach@ti.com/

> 

> Regards,

> Dave

> 

> [1] https://lore.kernel.org/linux-arm-kernel/161131973654.21299.8023411678794984222.b4-ty@ti.com/



I'd appreciate if you / team could provide a boot log on
pastebin.ubuntu.com with just these patches on latest linux-next ?

-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Kishon Vijay Abraham I March 1, 2021, 2:56 p.m. UTC | #4
On 26/02/21 8:12 pm, Dave Gerlach wrote:
> Hi,

> This is v4 of the series to add initial support for the latest new SoC,

> AM642, from Texas Instruments. Additional detail can be found in the

> patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2,

> Nov 2020) for further details: https://www.ti.com/lit/pdf/spruim2

> 

> This version contains a few minor fixes from v3:

> 

> * Add Rob's Ack to patch 2

> * Drop address-cells from interrupt controller node in patch 4 as [1] was dropped

> * Add Suman's Signed-off-by to patch 3

> * Fix date range in Makefile for TI dtbs in patch 5

> * Include Reviewed-by from several people from v3 for multiple patches

> 

> v3: https://lore.kernel.org/linux-arm-kernel/20210120202532.9011-1-d-gerlach@ti.com/

> v2: https://lore.kernel.org/linux-arm-kernel/20210119163927.774-1-d-gerlach@ti.com/

> v1: https://lore.kernel.org/linux-arm-kernel/20201125052004.17823-1-d-gerlach@ti.com/



Kernel Boot logs: https://pastebin.ubuntu.com/p/hFV56bM6Jx/

Tested-by: Kishon Vijay Abraham I <kishon@ti.com>


> 

> Regards,

> Dave

> 

> [1] https://lore.kernel.org/linux-arm-kernel/161131973654.21299.8023411678794984222.b4-ty@ti.com/

> 

> Dave Gerlach (4):

>   dt-bindings: arm: ti: Add bindings for AM642 SoC

>   dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64

>   arm64: dts: ti: Add support for AM642 SoC

>   arm64: dts: ti: Add support for AM642 EVM

> 

> Peter Ujfalusi (1):

>   arm64: dts: ti: k3-am64-main: Enable DMA support

> 

>  .../devicetree/bindings/arm/ti/k3.yaml        |   6 +

>  arch/arm64/boot/dts/ti/Makefile               |   4 +-

>  arch/arm64/boot/dts/ti/k3-am64-main.dtsi      | 405 ++++++++++++++++++

>  arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi       |  76 ++++

>  arch/arm64/boot/dts/ti/k3-am64.dtsi           | 103 +++++

>  arch/arm64/boot/dts/ti/k3-am642-evm.dts       | 246 +++++++++++

>  arch/arm64/boot/dts/ti/k3-am642.dtsi          |  65 +++

>  include/dt-bindings/pinctrl/k3.h              |   5 +-

>  8 files changed, 908 insertions(+), 2 deletions(-)

>  create mode 100644 arch/arm64/boot/dts/ti/k3-am64-main.dtsi

>  create mode 100644 arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi

>  create mode 100644 arch/arm64/boot/dts/ti/k3-am64.dtsi

>  create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm.dts

>  create mode 100644 arch/arm64/boot/dts/ti/k3-am642.dtsi

>
Nishanth Menon March 1, 2021, 3:12 p.m. UTC | #5
On Fri, 26 Feb 2021 08:42:52 -0600, Dave Gerlach wrote:
> This is v4 of the series to add initial support for the latest new SoC,

> AM642, from Texas Instruments. Additional detail can be found in the

> patch descriptions, also see AM64X Technical Reference Manual (SPRUIM2,

> Nov 2020) for further details: https://www.ti.com/lit/pdf/spruim2

> 

> This version contains a few minor fixes from v3:

> 

> [...]


Hi Dave Gerlach,

I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/5] dt-bindings: arm: ti: Add bindings for AM642 SoC
      commit: 0278277fb65ec8c44240d6a8fce553c3dadd8c96
[2/5] dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64
      commit: 05a5095d6fd45c0835a3094ff7f41d95da04f278
[3/5] arm64: dts: ti: Add support for AM642 SoC
      commit: 2560bb56251d3d65c5b353ad7f92c51ebd6d2bed
[4/5] arm64: dts: ti: k3-am64-main: Enable DMA support
      commit: 926c9cab8221eae6f2246adbbe94ebbaad014785
[5/5] arm64: dts: ti: Add support for AM642 EVM
      commit: 8b12ce52b0c6a2fd7a17bbf51cafe90de94174ac


All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux.git
-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D