arm64: Initial support for Texas Instrument's J7200 Platform
Subsystems (2)
v3 cover arm64: Initial support for Texas Instrument's J7200 Platform
This series adds initial support for latest new SoC, J7200, from Texas Instruments.
The J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for for automotive gateway, vehicle compute systems, Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X) applications. The SoC aims to meet the complex processing needs of modern embedded products.
See J7200 Technical Reference Manual (SPRUIU1, June 2020) for further details: https://www.ti.com/lit/pdf/spruiu1
This series is based on the ti-k3-dts-next from Nishanth's tree[0]. Boot log: https://pastebin.ubuntu.com/p/Ppng92TR9z/
Changes since v2:
- Update Makefile to build dtbs using CONFIG_ARCH_K3
- use 0x00 in all places just to be consistent for all K3 devices
- Fixed upper case to lower case in reg property.
[0] git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux.git
Lokesh Vutla (5):
arm64: dts: ti: Makefile: Use ARCH_K3 for building dtbs
dt-bindings: arm: ti: Convert K3 board/soc bindings to DT schema
dt-bindings: arm: ti: Add bindings for J7200 SoC
arm64: dts: ti: Add support for J7200 SoC
arm64: dts: ti: Add support for J7200 Common Processor Board
.../devicetree/bindings/arm/ti/k3.txt | 26 --- .../devicetree/bindings/arm/ti/k3.yaml | 35 +++ MAINTAINERS | 2 +- arch/arm64/boot/dts/ti/Makefile | 6 +- .../dts/ti/k3-j7200-common-proc-board.dts | 64 ++++++ arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 199 ++++++++++++++++++ .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 84 ++++++++ arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 29 +++ arch/arm64/boot/dts/ti/k3-j7200.dtsi | 165 +++++++++++++++ 9 files changed, 581 insertions(+), 29 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/ti/k3.txt create mode 100644 Documentation/devicetree/bindings/arm/ti/k3.yaml create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j7200.dtsi
Signature · 7 lines
2.28.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v3 1/5 arm64: dts: ti: Makefile: Use ARCH_K3 for building dtbs
To allow lesser dependency and better maintainability use CONFIG_ARCH_K3 for building dtbs for all K3 based devices. This is as per the discussion in [0].
[0] https://lore.kernel.org/linux-arm-kernel/20200908112534.t5bgrjf7y3a6l2ss@akan/
--- arch/arm64/boot/dts/ti/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/Makefile +2 -2
@@ -6,6 +6,6 @@ # Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/ # -dtb-$(CONFIG_ARCH_K3_AM6_SOC) += k3-am654-base-board.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am654-base-board.dtb -dtb-$(CONFIG_ARCH_K3_J721E_SOC) += k3-j721e-common-proc-board.dtb +dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb
Signature · 7 lines
2.28.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v3 1/5] arm64: dts: ti: Makefile: Use ARCH_K3 for building dtbs
Quoted 16 lines · Lokesh Vutla
To allow lesser dependency and better maintainability use
CONFIG_ARCH_K3for building dtbs for all K3 based devices. This is as per the discussion in [0].[0] https://lore.kernel.org/linux-arm-kernel/20200908112534.t5bgrjf7y3a6l2ss@akan/
Signed-off-by Lokesh Vutla <[email protected]>--- arch/arm64/boot/dts/ti/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/ti/Makefile +0
-0
arch/arm64/boot/dts/ti/Makefile line 6
Quoted 1 line
arch/arm64/boot/dts/ti/Makefile +0
-0@@ -6,6 +6,6 @@ # Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/
Please update the Copyright to use 2020, like 2016-2020. Minor comment, so can be fixed up while applying.
regards
Suman
arch/arm64/boot/dts/ti/Makefile line 11
Quoted 8 lines
arch/arm64/boot/dts/ti/Makefile +2
-2# -dtb-$(CONFIG_ARCH_K3_AM6_SOC) += k3-am654-base-board.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am654-base-board.dtb -dtb-$(CONFIG_ARCH_K3_J721E_SOC) += k3-j721e-common-proc-board.dtb +dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Nishanth Menon
maintainerRe: [PATCH v3 1/5] arm64: dts: ti: Makefile: Use ARCH_K3 for building dtbs
Quoted 12 lines · Suman Anna
Quoted 11 lines · Lokesh Vutla
To allow lesser dependency and better maintainability use
CONFIG_ARCH_K3for building dtbs for all K3 based devices. This is as per the discussion in [0].[0] https://lore.kernel.org/linux-arm-kernel/20200908112534.t5bgrjf7y3a6l2ss@akan/
Signed-off-by Lokesh Vutla <[email protected]>--- arch/arm64/boot/dts/ti/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 9 lines
arch/arm64/boot/dts/ti/Makefile line 6
Quoted 6 lines
arch/arm64/boot/dts/ti/Makefile +0
-0@@ -6,6 +6,6 @@ # Copyright (C) 2016-2018 Texas Instruments Incorporated - https://www.ti.com/Please update the Copyright to use 2020, like 2016-2020. Minor comment, so can be fixed up while applying.
ok, I will fix it up locally when applying.
Signature · 8 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v3 2/5 dt-bindings: arm: ti: Convert K3 board/soc bindings to DT schema
In reply to Lokesh VutlaConvert TI K3 Board/SoC bindings to DT schema format.
--- .../devicetree/bindings/arm/ti/k3.txt | 26 ---------------- .../devicetree/bindings/arm/ti/k3.yaml | 31 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 32 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/ti/k3.txt create mode 100644 Documentation/devicetree/bindings/arm/ti/k3.yaml
Documentation/devicetree/bindings/arm/ti/k3.txt deleted +0 -26
@@ -1,26 +0,0 @@ -Texas Instruments K3 Multicore SoC architecture device tree bindings --------------------------------------------------------------------- - -Platforms based on Texas Instruments K3 Multicore SoC architecture -shall follow the following scheme: - -SoCs ----- - -Each device tree root node must specify which exact SoC in K3 Multicore SoC -architecture it uses, using one of the following compatible values: - -- AM654 - compatible = "ti,am654"; - -- J721E - compatible = "ti,j721e"; - -Boards ------- - -In addition, each device tree root node must specify which one or more -of the following board-specific compatible values: - -- AM654 EVM - compatible = "ti,am654-evm", "ti,am654";
Documentation/devicetree/bindings/arm/ti/k3.yaml new file +31 -0
@@ -0,0 +1,31 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/ti/k3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments K3 Multicore SoC architecture device tree bindings + +maintainers: + - Nishanth Menon <[email protected]> + +description: | + Platforms based on Texas Instruments K3 Multicore SoC architecture + shall have the following properties. + +properties: + $nodename: + const: '/' + compatible: + oneOf: + + - description: K3 AM654 SoC + items: + - enum: + - ti,am654-evm + - const: ti,am654 + + - description: K3 J721E SoC + items: + - const: ti,j721e +...
MAINTAINERS +1 -1
@@ -2636,7 +2636,7 @@ M: Tero Kristo <[email protected]> M: Nishanth Menon <[email protected]> L: [email protected] (moderated for non-subscribers) S: Supported -F: Documentation/devicetree/bindings/arm/ti/k3.txt +F: Documentation/devicetree/bindings/arm/ti/k3.yaml F: arch/arm64/boot/dts/ti/Makefile F: arch/arm64/boot/dts/ti/k3-* F: include/dt-bindings/pinctrl/k3.h
Signature · 1 line
2.28.0
PATCH v3 3/5 dt-bindings: arm: ti: Add bindings for J7200 SoC
In reply to Lokesh VutlaThe J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for automotive gateway, vehicle compute systems, Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X) applications. The SoC aims to meet the complex processing needs of modern embedded products.
Some highlights of this SoC are:
* Dual Cortex-A72s in a single cluster, two clusters of lockstep capable dual Cortex-R5F MCUs and a Centralized Device Management and Security Controller (DMSC).
* Configurable L3 Cache and IO-coherent architecture with high data throughput capable distributed DMA architecture under NAVSS.
* Integrated Ethernet switch supporting up to a total of 4 external ports in addition to legacy Ethernet switch of up to 2 ports.
* Upto 1 PCIe-GEN3 controller, 1 USB3.0 Dual-role device subsystems, 20 MCANs, 3 McASP, eMMC and SD, OSPI/HyperBus memory controller, I3C and I2C, eCAP/eQEP, eHRPWM among other peripherals.
* One hardware accelerator block containing AES/DES/SHA/MD5 called SA2UL management.
See J7200 Technical Reference Manual (SPRUIU1, June 2020) for further details: https://www.ti.com/lit/pdf/spruiu1
--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/arm/ti/k3.yaml +4 -0
@@ -28,4 +28,8 @@ properties: - description: K3 J721E SoC items: - const: ti,j721e + + - description: K3 J7200 SoC + items: + - const: ti,j7200 ...
Signature · 7 lines
2.28.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v3 4/5 arm64: dts: ti: Add support for J7200 SoC
In reply to Lokesh VutlaThe J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for automotive gateway, vehicle compute systems, Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X) applications. The SoC aims to meet the complex processing needs of modern embedded products.
Some highlights of this SoC are:
* Dual Cortex-A72s in a single cluster, two clusters of lockstep capable dual Cortex-R5F MCUs and a Centralized Device Management and Security Controller (DMSC).
* Configurable L3 Cache and IO-coherent architecture with high data throughput capable distributed DMA architecture under NAVSS.
* Integrated Ethernet switch supporting up to a total of 4 external ports in addition to legacy Ethernet switch of up to 2 ports.
* Upto 1 PCIe-GEN3 controller, 1 USB3.0 Dual-role device subsystems, 20 MCANs, 3 McASP, eMMC and SD, OSPI/HyperBus memory controller, I3C and I2C, eCAP/eQEP, eHRPWM among other peripherals.
* One hardware accelerator block containing AES/DES/SHA/MD5 called SA2UL management.
See J7200 Technical Reference Manual (SPRUIU1, June 2020) for further details: https://www.ti.com/lit/pdf/spruiu1
--- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 199 ++++++++++++++++++ .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 84 ++++++++ arch/arm64/boot/dts/ti/k3-j7200.dtsi | 165 +++++++++++++++ 3 files changed, 448 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-main.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-j7200.dtsi
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +199 -0
@@ -0,0 +1,199 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for J7200 SoC Family Main Domain peripherals + * + * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ + */ + +&cbass_main { + msmc_ram: sram@70000000 { + compatible = "mmio-sram"; + reg = <0x00 0x70000000 0x00 0x100000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0x70000000 0x100000>; + + atf-sram@0 { + reg = <0x00 0x20000>; + }; + }; + + gic500: interrupt-controller@1800000 { + compatible = "arm,gic-v3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x00 0x01800000 0x00 0x10000>, /* GICD */ + <0x00 0x01900000 0x00 0x100000>; /* GICR */ + + /* vcpumntirq: virtual CPU interface maintenance interrupt */ + interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; + + gic_its: msi-controller@1820000 { + compatible = "arm,gic-v3-its"; + reg = <0x00 0x01820000 0x00 0x10000>; + socionext,synquacer-pre-its = <0x1000000 0x400000>; + msi-controller; + #msi-cells = <1>; + }; + }; + + main_navss: navss@30000000 { + compatible = "simple-mfd"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>; + + secure_proxy_main: mailbox@32c00000 { + compatible = "ti,am654-secure-proxy"; + #mbox-cells = <1>; + reg-names = "target_data", "rt", "scfg"; + reg = <0x00 0x32c00000 0x00 0x100000>, + <0x00 0x32400000 0x00 0x100000>, + <0x00 0x32800000 0x00 0x100000>; + interrupt-names = "rx_011"; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + + main_pmx0: pinmux@11c000 { + compatible = "pinctrl-single"; + /* Proxy 0 addressing */ + reg = <0x00 0x11c000 0x00 0x2b4>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>; + pinctrl-single,function-mask = <0xffffffff>; + }; + + main_uart0: serial@2800000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02800000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 146 2>; + clock-names = "fclk"; + }; + + main_uart1: serial@2810000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02810000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 278 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 278 2>; + clock-names = "fclk"; + }; + + main_uart2: serial@2820000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02820000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 279 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 279 2>; + clock-names = "fclk"; + }; + + main_uart3: serial@2830000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02830000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 280 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 280 2>; + clock-names = "fclk"; + }; + + main_uart4: serial@2840000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02840000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 281 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 281 2>; + clock-names = "fclk"; + }; + + main_uart5: serial@2850000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02850000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 282 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 282 2>; + clock-names = "fclk"; + }; + + main_uart6: serial@2860000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02860000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 283 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 283 2>; + clock-names = "fclk"; + }; + + main_uart7: serial@2870000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02870000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 284 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 284 2>; + clock-names = "fclk"; + }; + + main_uart8: serial@2880000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02880000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 285 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 285 2>; + clock-names = "fclk"; + }; + + main_uart9: serial@2890000 { + compatible = "ti,j721e-uart", "ti,am654-uart"; + reg = <0x00 0x02890000 0x00 0x100>; + reg-shift = <2>; + reg-io-width = <4>; + interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>; + clock-frequency = <48000000>; + current-speed = <115200>; + power-domains = <&k3_pds 286 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 286 2>; + clock-names = "fclk"; + }; +};
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +84 -0
84 lines not on this page · raw message
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +165 -0
165 lines not on this page · raw message
Signature · 7 lines
2.28.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Vignesh Raghavendra
maintainerRe: [PATCH v3 4/5] arm64: dts: ti: Add support for J7200 SoC
Hi,
Quoted 26 lines · Lokesh Vutla
The J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for automotive gateway, vehicle compute systems, Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X) applications. The SoC aims to meet the complex processing needs of modern embedded products.
Some highlights of this SoC are:
* Dual Cortex-A72s in a single cluster, two clusters of lockstep capable dual Cortex-R5F MCUs and a Centralized Device Management and Security Controller (DMSC).
* Configurable L3 Cache and IO-coherent architecture with high data throughput capable distributed DMA architecture under NAVSS.
* Integrated Ethernet switch supporting up to a total of 4 external ports in addition to legacy Ethernet switch of up to 2 ports.
* Upto 1 PCIe-GEN3 controller, 1 USB3.0 Dual-role device subsystems, 20 MCANs, 3 McASP, eMMC and SD, OSPI/HyperBus memory controller, I3C and I2C, eCAP/eQEP, eHRPWM among other peripherals.
* One hardware accelerator block containing AES/DES/SHA/MD5 called SA2UL management.See J7200 Technical Reference Manual (SPRUIU1, June 2020) for further details: https://www.ti.com/lit/pdf/spruiu1
Reviewed-by Grygorii Strashko <[email protected]>Reviewed-by Suman Anna <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
[...]
Quoted 34 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +34
-0+ cbass_main: bus@100000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ + <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ + <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ + <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ + <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ + <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */ + <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT */ + + /* MCUSS_WKUP Range */ + <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, + <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, + <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; + + cbass_mcu_wakeup: bus@28380000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */ + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */ + <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 162
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +10
-0+ <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */ + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */ + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI register space */ + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; /* FSS OSPI0/1 data region 0 */ + }; + }; +}; +
Could you pick up FSS region updates from [1] as Nishanth suggested?
[1]
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Regards
Vignesh
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Nishanth Menon
maintainerRe: [PATCH v3 4/5] arm64: dts: ti: Add support for J7200 SoC
Quoted 30 lines · Vignesh Raghavendra
Hi,
Quoted 26 lines · Lokesh Vutla
The J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for automotive gateway, vehicle compute systems, Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X) applications. The SoC aims to meet the complex processing needs of modern embedded products.
Some highlights of this SoC are:
* Dual Cortex-A72s in a single cluster, two clusters of lockstep capable dual Cortex-R5F MCUs and a Centralized Device Management and Security Controller (DMSC).
* Configurable L3 Cache and IO-coherent architecture with high data throughput capable distributed DMA architecture under NAVSS.
* Integrated Ethernet switch supporting up to a total of 4 external ports in addition to legacy Ethernet switch of up to 2 ports.
* Upto 1 PCIe-GEN3 controller, 1 USB3.0 Dual-role device subsystems, 20 MCANs, 3 McASP, eMMC and SD, OSPI/HyperBus memory controller, I3C and I2C, eCAP/eQEP, eHRPWM among other peripherals.
* One hardware accelerator block containing AES/DES/SHA/MD5 called SA2UL management.See J7200 Technical Reference Manual (SPRUIU1, June 2020) for further details: https://www.ti.com/lit/pdf/spruiu1
Reviewed-by Grygorii Strashko <[email protected]>Reviewed-by Suman Anna <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>[...]
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 128
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +10
-0+ cbass_main: bus@100000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ + <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ + <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ + <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ + <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ + <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */
Also:
<0x00 0x18000000 0x00 0x18000000 0x00 0x08000000>, /* PCIe1 DAT0 */
Quoted 1 line
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 129
Quoted 1 line
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +1
-0+ <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT */
Kishon: would it be nice to help DAT be DAT1 ?
Quoted 41 lines
Quoted 23 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +23
-0+ + /* MCUSS_WKUP Range */ + <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, + <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, + <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; + + cbass_mcu_wakeup: bus@28380000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */ + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */ + <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */arch/arm64/boot/dts/ti/k3-j7200.dtsi line 162
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +10
-0+ <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */ + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */ + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI register space */ + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; /* FSS OSPI0/1 data region 0 */ + }; + }; +}; +Could you pick up FSS region updates from [1] as Nishanth suggested?
[1]
https://lore.kernel.org/linux-arm-kernel/[email protected]/Regards
Vignesh
Signature · 8 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Nishanth Menon
maintainerRe: [PATCH v3 4/5] arm64: dts: ti: Add support for J7200 SoC
In reply to Lokesh VutlaOn 21:52-20200908, Lokesh Vutla wrote:
[...]
Few minor comments below.. (I dont have any further comments beyond these) I had missed taking a diff against j721e and what downstream vendor kernel.
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +0
-0@@ -0,0 +1,199 @@
[...]
Quoted 13 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +13
-0+ gic500: interrupt-controller@1800000 { + compatible = "arm,gic-v3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x00 0x01800000 0x00 0x10000>, /* GICD */ + <0x00 0x01900000 0x00 0x100000>; /* GICR */ + + /* vcpumntirq: virtual CPU interface maintenance interrupt */ + interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; +
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi line 43
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +10
-0+ gic_its: msi-controller@1820000 { + compatible = "arm,gic-v3-its"; + reg = <0x00 0x01820000 0x00 0x10000>; + socionext,synquacer-pre-its = <0x1000000 0x400000>; + msi-controller; + #msi-cells = <1>; + }; + }; + + main_navss: navss@30000000 {
hmm.. bus@ just to simplify things? or I wonder if a better common term is available? I cant find a better alternative when I look at
https://github.com/devicetree-org/devicetree-specification/blob/v0.3/source/devicetree-basics.rst
Quoted 7 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +5
-0+ compatible = "simple-mfd"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>; +
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi line 58
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +10
-0+ secure_proxy_main: mailbox@32c00000 { + compatible = "ti,am654-secure-proxy"; + #mbox-cells = <1>; + reg-names = "target_data", "rt", "scfg"; + reg = <0x00 0x32c00000 0x00 0x100000>, + <0x00 0x32400000 0x00 0x100000>, + <0x00 0x32800000 0x00 0x100000>; + interrupt-names = "rx_011"; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; + };
I think we could introduce base infrastructure stuff like intr and inta nodes here? Also, the gpio_intr?
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi line 61
Quoted 3 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +3
-0+ }; + + main_pmx0: pinmux@11c000 {
pinctrl@ ?
[...]
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +1
-0+
[...]
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi line 42
Quoted 1 line
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +1
-0+ wkup_pmx0: pinmux@4301c000 {
pinctrl@ ?
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +5
-0+ compatible = "pinctrl-single"; + /* Proxy 0 addressing */ + reg = <0x00 0x4301c000 0x00 0x178>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>;
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi line 57
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +10
-0+ pinctrl-single,function-mask = <0xffffffff>; + }; + + mcu_ram: sram@41c00000 { + compatible = "mmio-sram"; + reg = <0x00 0x41c00000 0x00 0x100000>; + ranges = <0x00 0x00 0x41c00000 0x100000>; + #address-cells = <1>; + #size-cells = <1>; + };
wkup_gpio_intr same argument as "core infrastructure" ?
Quoted 31 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +1
-0+arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +24
-0@@ -0,0 +1,165 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for J7200 SoC Family + * + * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/pinctrl/k3.h> +#include <dt-bindings/soc/ti,sci_pm_domain.h> + +/ { + model = "Texas Instruments K3 J7200 SoC"; + compatible = "ti,j7200"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; + serial2 = &main_uart0; + serial3 = &main_uart1;
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 34
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +10
-0+ serial4 = &main_uart2; + serial5 = &main_uart3; + serial6 = &main_uart4; + serial7 = &main_uart5; + serial8 = &main_uart6; + serial9 = &main_uart7; + serial10 = &main_uart8; + serial11 = &main_uart9; + }; +
might be nice to leave a chosen { }; here to indicate board files fill it up.. just to maintain consistency with rest of SoC dtsis?
[...]
Quoted 34 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +34
-0+ + cbass_main: bus@100000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ + <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ + <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ + <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ + <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ + <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */ + <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT */ + + /* MCUSS_WKUP Range */ + <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, + <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, + <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; + + cbass_mcu_wakeup: bus@28380000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */ + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 161
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +10
-0+ <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */ + <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */ + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */ + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI register space */ + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; /* FSS OSPI0/1 data region 0 */ + }; + }; +};
We covered these already.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH v3 4/5] arm64: dts: ti: Add support for J7200 SoC
Quoted 47 lines · Nishanth Menon
On 21:52-20200908, Lokesh Vutla wrote:
[...]
Few minor comments below.. (I dont have any further comments beyond these) I had missed taking a diff against j721e and what downstream vendor kernel.Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +0
-0@@ -0,0 +1,199 @@[...]
Quoted 13 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +13
-0+ gic500: interrupt-controller@1800000 { + compatible = "arm,gic-v3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x00 0x01800000 0x00 0x10000>, /* GICD */ + <0x00 0x01900000 0x00 0x100000>; /* GICR */ + + /* vcpumntirq: virtual CPU interface maintenance interrupt */ + interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; +arch/arm64/boot/dts/ti/k3-j7200-main.dtsi line 43
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +10
-0+ gic_its: msi-controller@1820000 { + compatible = "arm,gic-v3-its"; + reg = <0x00 0x01820000 0x00 0x10000>; + socionext,synquacer-pre-its = <0x1000000 0x400000>; + msi-controller; + #msi-cells = <1>; + }; + }; + + main_navss: navss@30000000 {hmm.. bus@ just to simplify things? or I wonder if a better common term is available? I cant find a better alternative when I look at
https://github.com/devicetree-org/devicetree-specification/blob/v0.3/source/devicetree-basics.rstQuoted 4 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +4
-0+ compatible = "simple-mfd"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>;
Quoted 14 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi line 58
Quoted 11 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +11
-0+ + secure_proxy_main: mailbox@32c00000 { + compatible = "ti,am654-secure-proxy"; + #mbox-cells = <1>; + reg-names = "target_data", "rt", "scfg"; + reg = <0x00 0x32c00000 0x00 0x100000>, + <0x00 0x32400000 0x00 0x100000>, + <0x00 0x32800000 0x00 0x100000>; + interrupt-names = "rx_011"; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; + };I think we could introduce base infrastructure stuff like intr and inta nodes here? Also, the
gpio_intr?
FYI, they are currently being added in Patch 1 from Grygorii's "[v2,0/4] arm64:
dts: ti: k3-j7200: add dma and mcu cpsw" series,
https://patchwork.kernel.org/cover/11763711/
The overall series seems to have some dependencies, so better to separate out those nodes and include as an additional add-on patch to this series, atleast it can unblock all others who use the TI-SCI Interrupt node.
Quoted 72 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi line 61
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi new file +3
-0+ }; + + main_pmx0: pinmux@11c000 {pinctrl@ ?
[...]
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +1
-0+[...]
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi line 42
Quoted 1 line
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +1
-0+ wkup_pmx0: pinmux@4301c000 {pinctrl@ ?
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +5
-0+ compatible = "pinctrl-single"; + /* Proxy 0 addressing */ + reg = <0x00 0x4301c000 0x00 0x178>; + #pinctrl-cells = <1>; + pinctrl-single,register-width = <32>;arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi line 57
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +10
-0+ pinctrl-single,function-mask = <0xffffffff>; + }; + + mcu_ram: sram@41c00000 { + compatible = "mmio-sram"; + reg = <0x00 0x41c00000 0x00 0x100000>; + ranges = <0x00 0x00 0x41c00000 0x100000>; + #address-cells = <1>; + #size-cells = <1>; + };
wkup_gpio_intrsame argument as "core infrastructure" ?Quoted 36 lines
arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi new file +1
-0+arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +29
-0@@ -0,0 +1,165 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for J7200 SoC Family + * + * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/pinctrl/k3.h> +#include <dt-bindings/soc/ti,sci_pm_domain.h> + +/ { + model = "Texas Instruments K3 J7200 SoC"; + compatible = "ti,j7200"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; + serial2 = &main_uart0; + serial3 = &main_uart1; + serial4 = &main_uart2; + serial5 = &main_uart3; + serial6 = &main_uart4; + serial7 = &main_uart5; + serial8 = &main_uart6;
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 34
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +5
-0+ serial9 = &main_uart7; + serial10 = &main_uart8; + serial11 = &main_uart9; + }; +might be nice to leave a chosen { }; here to indicate board files fill it up.. just to maintain consistency with rest of SoC dtsis?
Doesn't serve any purpose IMO. I remember commenting about that blank node to remove it during some earlier reviews.
regards
Suman
Quoted 49 lines
[...]
Quoted 34 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +34
-0+ + cbass_main: bus@100000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ + <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ + <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* timesync router */ + <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ + <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ + <0x00 0x70000000 0x00 0x70000000 0x00 0x00800000>, /* MSMC RAM */ + <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT */ + + /* MCUSS_WKUP Range */ + <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, + <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, + <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; + + cbass_mcu_wakeup: bus@28380000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, /* MCU NAVSS*/ + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, /* First peripheral window */ + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, /* CTRL_MMR0 */ + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, /* MCU R5F Core0 */arch/arm64/boot/dts/ti/k3-j7200.dtsi line 161
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +10
-0+ <0x00 0x41400000 0x00 0x41400000 0x00 0x00020000>, /* MCU R5F Core1 */ + <0x00 0x41c00000 0x00 0x41c00000 0x00 0x00100000>, /* MCU SRAM */ + <0x00 0x42040000 0x00 0x42040000 0x00 0x03ac2400>, /* WKUP peripheral window */ + <0x00 0x45100000 0x00 0x45100000 0x00 0x00c24000>, /* MMRs, remaining NAVSS */ + <0x00 0x46000000 0x00 0x46000000 0x00 0x00200000>, /* CPSW */ + <0x00 0x47000000 0x00 0x47000000 0x00 0x00068400>, /* OSPI register space */ + <0x00 0x50000000 0x00 0x50000000 0x00 0x10000000>; /* FSS OSPI0/1 data region 0 */ + }; + }; +};We covered these already.
Nishanth Menon
maintainerRe: [PATCH v3 4/5] arm64: dts: ti: Add support for J7200 SoC
On 12:54-20200910, Suman Anna wrote:
[...]
Quoted 5 lines
Quoted 4 lines
Review
Quoted 1 line
(quoted diff) +1
-0+ };I think we could introduce base infrastructure stuff like intr and inta nodes here? Also, the
gpio_intr?
Quoted 8 lines
FYI, they are currently being added in Patch 1 from Grygorii's "[v2,0/4] arm64:
dts: ti: k3-j7200: add dma and mcu cpsw" series,
https://patchwork.kernel.org/cover/11763711/The overall series seems to have some dependencies, so better to separate out those nodes and include as an additional add-on patch to this series, atleast it can unblock all others who use the TI-SCI Interrupt node.
There is dependency on udma which in turn needs chipid stuff merged, but I dont see anything preventing inta intr (which are infrastructure components) from being merged in. It is not just udma driver that uses these infrastructure.
[...]
Quoted 27 lines
Quoted 18 lines
Quoted 18 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +18
-0+ +/ { + model = "Texas Instruments K3 J7200 SoC"; + compatible = "ti,j7200"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; + serial2 = &main_uart0; + serial3 = &main_uart1; + serial4 = &main_uart2; + serial5 = &main_uart3; + serial6 = &main_uart4; + serial7 = &main_uart5; + serial8 = &main_uart6;Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 34
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +5
-0+ serial9 = &main_uart7; + serial10 = &main_uart8; + serial11 = &main_uart9; + }; +might be nice to leave a chosen { }; here to indicate board files fill it up.. just to maintain consistency with rest of SoC dtsis?
Quoted 2 lines
Doesn't serve any purpose IMO. I remember commenting about that blank node to remove it during some earlier reviews.
I know. just consistency for board files to add things in -> you can see similar usage else where as well. if we are going to drop it, we might drop from am65 and j721e as well. for bootloaders that look for the node, it tends to be consistently present OR not.. I'd rather they be consistently be available than to deal with mix for downstream boards. No strong feelings either way, but.. lets stay consistent throughout.
$ git grep 'chosen { };' arch/arm64/boot/dts/
arch/arm64/boot/dts/apm/apm-merlin.dts: chosen { };
arch/arm64/boot/dts/apm/apm-mustang.dts: chosen { };
arch/arm64/boot/dts/arm/foundation-v8.dtsi: chosen { };
arch/arm64/boot/dts/arm/fvp-base-revc.dts: chosen { };
arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts: chosen { };
arch/arm64/boot/dts/hisilicon/hip06-d03.dts: chosen { };
arch/arm64/boot/dts/mediatek/mt8173-evb.dts: chosen { };
arch/arm64/boot/dts/qcom/msm8916.dtsi: chosen { };
arch/arm64/boot/dts/qcom/msm8992.dtsi: chosen { };
arch/arm64/boot/dts/qcom/msm8994.dtsi: chosen { };
arch/arm64/boot/dts/qcom/msm8996.dtsi: chosen { };
arch/arm64/boot/dts/qcom/msm8998.dtsi: chosen { };
arch/arm64/boot/dts/qcom/qcs404.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sc7180.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sdm630.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sdm660.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sdm845.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sm8150.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sm8250.dtsi: chosen { };
arch/arm64/boot/dts/ti/k3-am65.dtsi: chosen { };
arch/arm64/boot/dts/ti/k3-j721e.dtsi: chosen { };Signature · 8 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v3 4/5] arm64: dts: ti: Add support for J7200 SoC
Quoted 17 lines · Nishanth Menon
On 12:54-20200910, Suman Anna wrote:
[...]Quoted 5 lines
Quoted 4 lines
Review
Quoted 1 line
(quoted diff) +1
-0+ };I think we could introduce base infrastructure stuff like intr and inta nodes here? Also, the
gpio_intr?Quoted 8 lines
FYI, they are currently being added in Patch 1 from Grygorii's "[v2,0/4] arm64:
dts: ti: k3-j7200: add dma and mcu cpsw" series,
https://patchwork.kernel.org/cover/11763711/The overall series seems to have some dependencies, so better to separate out those nodes and include as an additional add-on patch to this series, atleast it can unblock all others who use the TI-SCI Interrupt node.
Quoted 4 lines
There is dependency on udma which in turn needs chipid stuff merged, but I dont see anything preventing inta intr (which are infrastructure components) from being merged in. It is not just udma driver that uses these infrastructure.
Yep, I also meant the same.
Quoted 53 lines
[...]
Quoted 27 lines
Quoted 18 lines
Quoted 18 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +18
-0+ +/ { + model = "Texas Instruments K3 J7200 SoC"; + compatible = "ti,j7200"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &wkup_uart0; + serial1 = &mcu_uart0; + serial2 = &main_uart0; + serial3 = &main_uart1; + serial4 = &main_uart2; + serial5 = &main_uart3; + serial6 = &main_uart4; + serial7 = &main_uart5; + serial8 = &main_uart6;Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 34
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +5
-0+ serial9 = &main_uart7; + serial10 = &main_uart8; + serial11 = &main_uart9; + }; +might be nice to leave a chosen { }; here to indicate board files fill it up.. just to maintain consistency with rest of SoC dtsis?
Quoted 2 lines
Doesn't serve any purpose IMO. I remember commenting about that blank node to remove it during some earlier reviews.
I know. just consistency for board files to add things in -> you can see similar usage else where as well. if we are going to drop it, we might drop from am65 and j721e as well. for bootloaders that look for the node, it tends to be consistently present OR not.. I'd rather they be consistently be available than to deal with mix for downstream boards. No strong feelings either way, but.. lets stay consistent throughout.
$ git grep 'chosen { };' arch/arm64/boot/dts/ arch/arm64/boot/dts/apm/apm-merlin.dts: chosen { }; arch/arm64/boot/dts/apm/apm-mustang.dts: chosen { }; arch/arm64/boot/dts/arm/foundation-v8.dtsi: chosen { }; arch/arm64/boot/dts/arm/fvp-base-revc.dts: chosen { }; arch/arm64/boot/dts/arm/rtsm_ve-aemv8a.dts: chosen { }; arch/arm64/boot/dts/hisilicon/hip06-d03.dts: chosen { }; arch/arm64/boot/dts/mediatek/mt8173-evb.dts: chosen { }; arch/arm64/boot/dts/qcom/msm8916.dtsi: chosen { }; arch/arm64/boot/dts/qcom/msm8992.dtsi: chosen { }; arch/arm64/boot/dts/qcom/msm8994.dtsi: chosen { }; arch/arm64/boot/dts/qcom/msm8996.dtsi: chosen { }; arch/arm64/boot/dts/qcom/msm8998.dtsi: chosen { }; arch/arm64/boot/dts/qcom/qcs404.dtsi: chosen { };
Quoted 9 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sdm630.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sdm660.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sdm845.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sm8150.dtsi: chosen { };
arch/arm64/boot/dts/qcom/sm8250.dtsi: chosen { };
arch/arm64/boot/dts/ti/k3-am65.dtsi: chosen { };
arch/arm64/boot/dts/ti/k3-j721e.dtsi: chosen { };Yeah ok to add back then.
regards
Suman
Nishanth Menon
maintainerRe: [PATCH v3 4/5] arm64: dts: ti: Add support for J7200 SoC
Quoted 18 lines · Suman Anna
Quoted 17 lines · Nishanth Menon
On 12:54-20200910, Suman Anna wrote:
[...]Quoted 13 lines
Quoted 4 lines
Review
Quoted 1 line
(quoted diff) +1
-0+ };I think we could introduce base infrastructure stuff like intr and inta nodes here? Also, the
gpio_intr?FYI, they are currently being added in Patch 1 from Grygorii's "[v2,0/4] arm64:
dts: ti: k3-j7200: add dma and mcu cpsw" series,
https://patchwork.kernel.org/cover/11763711/The overall series seems to have some dependencies, so better to separate out those nodes and include as an additional add-on patch to this series, atleast it can unblock all others who use the TI-SCI Interrupt node.
Quoted 6 lines
Quoted 4 lines
There is dependency on udma which in turn needs chipid stuff merged, but I dont see anything preventing inta intr (which are infrastructure components) from being merged in. It is not just udma driver that uses these infrastructure.
Yep, I also meant the same.
ok. Please squash the ia/intr in to this patch as well.
Quoted 10 lines
Quoted 10 lines
[...]
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +7
-0+ +/ { + model = "Texas Instruments K3 J7200 SoC"; + compatible = "ti,j7200"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>;
[...]
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi line 34
Quoted 3 lines
arch/arm64/boot/dts/ti/k3-j7200.dtsi new file +3
-0+ serial11 = &main_uart9; + }; +might be nice to leave a chosen { }; here to indicate board files fill it up.. just to maintain consistency with rest of SoC dtsis?
Doesn't serve any purpose IMO. I remember commenting about that blank node to remove it during some earlier reviews.
[...]
Quoted 2 lines
Yeah ok to add back then.
Lets squash the change to this patch.
Looking forward to the v4.
Signature · 8 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v3 5/5 arm64: dts: ti: Add support for J7200 Common Processor Board
In reply to Lokesh VutlaAdd support for J7200 Common Processor Board. The EVM architecture is very similar to J721E as follows:
+------------------------------------------------------+ | +-------------------------------------------+ | | | | | | | Add-on Card 1 Options | | | | | | | +-------------------------------------------+ | | | | | | +-------------------+ | | | | | | | SOM | | | +--------------+ | | | | | | | | | | | Add-on | +-------------------+ | | | Card 2 | | Power Supply | | Options | | | | | | | | | +--------------+ | <--- +------------------------------------------------------+
Common Processor Board
Common Processor board is the baseboard that has most of the actual connectors, power supply etc. A SOM (System on Module) is plugged on to the common processor board and this contains the SoC, PMIC, DDR and basic high speed components necessary for functionality.
Note:
* The minimum configuration required to boot up the board is System On Module(SOM) + Common Processor Board.
* Since there is just a single SOM and Common Processor Board, we are maintaining common processor board as the base dts and SOM as the dtsi that we include. In the future as more SOM's appear, we should move common processor board as a dtsi and include configurations as dts.
* All daughter cards beyond the basic boards shall be maintained as overlays.
--- arch/arm64/boot/dts/ti/Makefile | 2 + .../dts/ti/k3-j7200-common-proc-board.dts | 64 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 29 +++++++++ 3 files changed, 95 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi
arch/arm64/boot/dts/ti/Makefile +2 -0
@@ -9,3 +9,5 @@ dtb-$(CONFIG_ARCH_K3) += k3-am654-base-board.dtb dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb + +dtb-$(CONFIG_ARCH_K3) += k3-j7200-common-proc-board.dtb
arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts new file +64 -0
64 lines not on this page · raw message
arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi new file +29 -0
@@ -0,0 +1,29 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; + +#include "k3-j7200.dtsi" + +/ { + memory@80000000 { + device_type = "memory"; + /* 4G RAM */ + reg = <0x00 0x80000000 0x00 0x80000000>, + <0x08 0x80000000 0x00 0x80000000>; + }; + + reserved_memory: reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + secure_ddr: optee@9e800000 { + reg = <0x00 0x9e800000 0x00 0x01800000>; + alignment = <0x1000>; + no-map; + }; + }; +};
Signature · 7 lines
2.28.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Nishanth Menon
maintainerRe: [PATCH v3 5/5] arm64: dts: ti: Add support for J7200 Common Processor Board
Quoted 42 lines · Lokesh Vutla
Add support for J7200 Common Processor Board. The EVM architecture is very similar to J721E as follows:
+------------------------------------------------------+ | +-------------------------------------------+ | | | | | | | Add-on Card 1 Options | | | | | | | +-------------------------------------------+ | | | | | | +-------------------+ | | | | | | | SOM | | | +--------------+ | | | | | | | | | | | Add-on | +-------------------+ | | | Card 2 | | Power Supply | | Options | | | | | | | | | +--------------+ | <--- +------------------------------------------------------+Common Processor Board
Common Processor board is the baseboard that has most of the actual connectors, power supply etc. A SOM (System on Module) is plugged on to the common processor board and this contains the SoC, PMIC, DDR and basic high speed components necessary for functionality.
Note:
* The minimum configuration required to boot up the board is System On Module(SOM) + Common Processor Board.
* Since there is just a single SOM and Common Processor Board, we are maintaining common processor board as the base dts and SOM as the dtsi that we include. In the future as more SOM's appear, we should move common processor board as a dtsi and include configurations as dts.
* All daughter cards beyond the basic boards shall be maintained as overlays.Reviewed-by Grygorii Strashko <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>Signed-off-by Peter Ujfalusi <[email protected]>
Quoted 7 lines
--- arch/arm64/boot/dts/ti/Makefile | 2 + .../dts/ti/k3-j7200-common-proc-board.dts | 64 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 29 +++++++++ 3 files changed, 95 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts create mode 100644 arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi
This looks fine to me.
Signature · 8 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Nishanth Menon
maintainerQuoted 7 lines · Lokesh Vutla
This series adds initial support for latest new SoC, J7200, from Texas Instruments.
The J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for for automotive gateway, vehicle compute systems, Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X) applications. The SoC aims to meet the complex processing needs of modern embedded products.
Quoted 5 lines
See J7200 Technical Reference Manual (SPRUIU1, June 2020) for further details: https://www.ti.com/lit/pdf/spruiu1
This series is based on the ti-k3-dts-next from Nishanth's tree[0]. Boot log: https://pastebin.ubuntu.com/p/Ppng92TR9z/
Thanks a bunch. Will also appreciate a test against linux-next tag
Quoted 6 lines
Changes since v2:
- UpdateMakefileto build dtbs usingCONFIG_ARCH_K3
- use0x00in all places just to be consistent for all K3 devices
- Fixed upper case to lower case in reg property.
Quoted 9 lines
[0]
git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux.gitLokesh Vutla (5):
arm64: dts: ti:Makefile: UseARCH_K3for building dtbs
dt-bindings: arm: ti: Convert K3 board/soc bindings to DT schema
dt-bindings: arm: ti: Add bindings for J7200 SoC
arm64: dts: ti: Add support for J7200 SoC
arm64: dts: ti: Add support for J7200 Common Processor Board
Thanks for updating the comments and for your patience.. if you could address the last batch of comments (sorry for missing them out in the last review), I think we might be all set..
pending review-by from Rob.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D