arm64: dts: ti: Introduce J722S SoC and EVM
Subsystems (2)
cover arm64: dts: ti: Introduce J722S SoC and EVM
This series adds basic support for J722S family of SoCs. Also add J722S EVM support with basic peripheral like MMC and UART.
TRM: https://www.ti.com/lit/zip/sprujb3
EVM Schematics: https://www.ti.com/lit/zip/sprr495
Bootlog:
https://gist.github.com/vaishnavachath/23d859925277df9ccd628190e7c23371
Depends on:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
Vaishnav Achath (3):
dt-bindings: arm: ti: Add bindings for J722S SoCs
arm64: dts: ti: Introduce J722S family of SoCs
arm64: dts: ti: Add support for TI J722S Evaluation Module
.../devicetree/bindings/arm/ti/k3.yaml | 6 + arch/arm64/boot/dts/ti/Makefile | 3 + arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 253 ++++++++++++++++ arch/arm64/boot/dts/ti/k3-j722s.dtsi | 275 ++++++++++++++++++ arch/arm64/boot/dts/ti/k3-pinctrl.h | 3 + 5 files changed, 540 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j722s-evm.dts create mode 100644 arch/arm64/boot/dts/ti/k3-j722s.dtsi
Signature · 1 line
2.17.1
PATCH 1/3 dt-bindings: arm: ti: Add bindings for J722S SoCs
Add bindings for TI J722S family of devices.
--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/ti/k3.yaml +6 -0
@@ -123,6 +123,12 @@ properties: - ti,j721s2-evm - const: ti,j721s2 + - description: K3 J722S SoC and Boards + items: + - enum: + - ti,j722s-evm + - const: ti,j722s + - description: K3 J784s4 SoC items: - enum:
Signature · 1 line
2.17.1
Re: [PATCH 1/3] dt-bindings: arm: ti: Add bindings for J722S SoCs
Quoted 1 line · Vaishnav Achath
Add bindings for TI J722S family of devices.
Just repeating $subject in the body isn't really all that valuable, but these new soc additions are super straightforward (usually) so w/e.
Cheers,
Conor.
Quoted 26 lines
Signed-off-by Vaishnav Achath <[email protected]>--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 6 ++++++ 1 file changed, 6 insertions(+)Documentation/devicetree/bindings/arm/ti/k3.yaml +6
-0@@ -123,6 +123,12 @@ properties: - ti,j721s2-evm - const: ti,j721s2 + - description: K3 J722S SoC and Boards + items: + - enum: + - ti,j722s-evm + - const: ti,j722s + - description: K3 J784s4 SoC items: - enum:Signature · 1 line
2.17.1
Re: [PATCH 1/3] dt-bindings: arm: ti: Add bindings for J722S SoCs
In reply to Vaishnav AchathQuoted 6 lines · Vaishnav Achath
Add bindings for TI J722S family of devices.
Signed-off-by Vaishnav Achath <[email protected]>--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Best regards,
Krzysztof
PATCH 2/3 arm64: dts: ti: Introduce J722S family of SoCs
In reply to Vaishnav AchathThe J722S is a family of application processors built for Automotive and Linux Application development. Scalable Arm Cortex-A53 performance and embedded features, such as multi high-definition display support, 3D-graphics acceleration, 4K video acceleration, and extensive peripherals make the J722S well-suited for a broad range of automation and industrial application, including automotive digital instrumentation, automotive displays, industrial HMI, and more.
Some highlights of J722S SoC are:
* Quad-Cortex-A53s (running up to 1.4GHz) in a single cluster.
* One Device manager Cortext-R5F for system power and resource management, two Cortex-R5F for Functional Safety or general-purpose usage and two C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning.
* One 3D GPU up to 50 GLFOPS
* H.264/H.265, JPEG Video Encode/Decode.
* Display support: 3x display support over OLDI/LVDS (1x OLDI-DL, 1x or 2x OLDI-SL), DSI, or DPI. Up to 3840x1080@60fps resolution
* Integrated Giga-bit Ethernet switch supporting up to a total of two external ports (TSN capable).
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC).
* 7xUARTs, 3xSPI, 5xI2C, 2xUSB2, 2xCAN-FD, 3xMMC and SD, GPMC for NAND/FPGA connection, OSPI memory controller, 5xMcASP for audio, 4xCSI-RX for Camera, 1 PCIe Gen3 controller, eCAP/eQEP, ePWM, among other peripherals.
* Dedicated Centralized Hardware Security Module with support for secure boot, debug security and crypto acceleration and trusted execution environment.
* One 32-bit DDR Subsystem that supports LPDDR4 memory type.
J722S family of SoCs is a superset of the AM62P SoC family and shares similar memory map, thus the nodes are being reused from AM62P includes instead of duplicating the definitions. Unused nodes with dependencies are kept disabled and will be enabled later when the dependencies are enabled.
For those interested, more details about this SoC can be found in the Technical Reference Manual here:
https://www.ti.com/lit/zip/sprujb3
---
checkpatch error is ignored for arch/arm64/boot/dts/ti/k3-pinctrl.h:
ERROR: Macros with complex values should be enclosed in parentheses
However, 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.
Depends on:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
arch/arm64/boot/dts/ti/k3-j722s.dtsi | 275 +++++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-pinctrl.h | 3 + 2 files changed, 278 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j722s.dtsi
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +275 -0
@@ -0,0 +1,275 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for J722S SoC Family + * + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/ti,sci_pm_domain.h> + +#include "k3-pinctrl.h" + +/ { + model = "Texas Instruments K3 J722S SoC"; + compatible = "ti,j722s"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu-map { + cluster0: cluster0 { + core0 { + cpu = <&cpu0>; + }; + + core1 { + cpu = <&cpu1>; + }; + + core2 { + cpu = <&cpu2>; + }; + + core3 { + cpu = <&cpu3>; + }; + }; + }; + + cpu0: cpu@0 { + compatible = "arm,cortex-a53"; + reg = <0x000>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 135 0>; + }; + + cpu1: cpu@1 { + compatible = "arm,cortex-a53"; + reg = <0x001>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 136 0>; + }; + + cpu2: cpu@2 { + compatible = "arm,cortex-a53"; + reg = <0x002>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 137 0>; + }; + + cpu3: cpu@3 { + compatible = "arm,cortex-a53"; + reg = <0x003>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 138 0>; + }; + }; + + l2_0: l2-cache0 { + compatible = "cache"; + cache-unified; + cache-level = <2>; + cache-size = <0x80000>; + cache-line-size = <64>; + cache-sets = <512>; + }; + + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + + psci: psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + }; + + a53_timer0: timer-cl0-cpu0 { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ + <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ + <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ + }; + + pmu: pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; + }; + + cbass_main: bus@f0000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + bootph-all; + + ranges = <0x00 0x000f0000 0x00 0x000f0000 0x00 0x00030000>, /* Main MMRs */ + <0x00 0x00420000 0x00 0x00420000 0x00 0x00001000>, /* ESM0 */ + <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */ + <0x00 0x00703000 0x00 0x00703000 0x00 0x00000200>, /* USB0 debug trace */ + <0x00 0x0070c000 0x00 0x0070c000 0x00 0x00000200>, /* USB1 debug trace */ + <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Timesync router */ + <0x00 0x01000000 0x00 0x01000000 0x00 0x01b28400>, /* First peripheral window */ + <0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */ + <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01d20000>, /* Second peripheral window */ + <0x00 0x0fd80000 0x00 0x0fd80000 0x00 0x00080000>, /* GPU */ + <0x00 0x0fd20000 0x00 0x0fd20000 0x00 0x00000100>, /* JPEGENC0_CORE */ + <0x00 0x0fd20200 0x00 0x0fd20200 0x00 0x00000200>, /* JPEGENC0_CORE_MMU */ + <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */ + <0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */ + <0x00 0x301C0000 0x00 0x301C0000 0x00 0x00001000>, /* DPHY-TX */ + <0x00 0x30101000 0x00 0x30101000 0x00 0x00080100>, /* CSI window */ + <0x00 0x30200000 0x00 0x30200000 0x00 0x00010000>, /* DSS */ + <0x00 0x30210000 0x00 0x30210000 0x00 0x00010000>, /* VPU */ + <0x00 0x30220000 0x00 0x30220000 0x00 0x00010000>, /* DSS1 */ + <0x00 0x30270000 0x00 0x30270000 0x00 0x00010000>, /* DSI-base1 */ + <0x00 0x30500000 0x00 0x30500000 0x00 0x00100000>, /* DSI-base2 */ + <0x00 0x31000000 0x00 0x31000000 0x00 0x00050000>, /* USB0 DWC3 Core window */ + <0x00 0x31200000 0x00 0x31200000 0x00 0x00040000>, /* USB1 DWC3 Core window */ + <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */ + <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */ + <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ + <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */ + <0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */ + <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */ + <0x00 0x70000000 0x00 0x70000000 0x00 0x00040000>, /* OCSRAM */ + <0x00 0x78400000 0x00 0x78400000 0x00 0x00008000>, /* MAIN R5FSS0 ATCM */ + <0x00 0x78500000 0x00 0x78500000 0x00 0x00008000>, /* MAIN R5FSS0 BTCM */ + <0x00 0x7e000000 0x00 0x7e000000 0x00 0x00200000>, /* C7X_0 L2SRAM */ + <0x00 0x7e200000 0x00 0x7e200000 0x00 0x00200000>, /* C7X_1 L2SRAM */ + <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ + <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */ + + /* MCU Domain Range */ + <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, + <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, + <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, + <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, + <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>, + + /* Wakeup Domain Range */ + <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; + + cbass_mcu: bus@4000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, /* Peripheral window */ + <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */ + <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */ + <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */ + <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */ + bootph-all; + }; + + cbass_wakeup: bus@b00000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */ + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* WKUP CTRL MMR */ + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ + bootph-all; + }; + }; + + #include "k3-am62p-thermal.dtsi" +}; + +/* + * Include peripherals for each bus segment derived + * from AM62P and overrides specific to J722S. + */ +#include "k3-am62p-main.dtsi" +#include "k3-am62p-mcu.dtsi" +#include "k3-am62p-wakeup.dtsi" + +/* Main domain overrides */ + +&cpsw3g { + status = "disabled"; +}; + +&inta_main_dmss { + ti,interrupt-ranges = <5 69 35>; +}; + +&mailbox0_cluster0 { + status = "disabled"; +}; + +&mailbox0_cluster1 { + status = "disabled"; +}; + +&mailbox0_cluster2 { + status = "disabled"; +}; + +&mailbox0_cluster3 { + status = "disabled"; +}; + +&oc_sram { + reg = <0x00 0x70000000 0x00 0x40000>; + ranges = <0x00 0x00 0x70000000 0x40000>; +}; + +/* MCU domain overrides */ + +&mcu_r5fss0 { + status = "disabled"; +}; + +/* wakeup domain overrides */ + +&wkup_r5fss0 { + status = "disabled"; +};
arch/arm64/boot/dts/ti/k3-pinctrl.h +3 -0
@@ -59,6 +59,9 @@#define J721S2_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J721S2_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_MCU_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J784S4_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J784S4_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
Signature · 1 line
2.17.1
Nishanth Menon
maintainerRe: [PATCH 2/3] arm64: dts: ti: Introduce J722S family of SoCs
Quoted 7 lines · Vaishnav Achath
The J722S is a family of application processors built for Automotive and Linux Application development. Scalable Arm Cortex-A53 performance and embedded features, such as multi high-definition display support, 3D-graphics acceleration, 4K video acceleration, and extensive peripherals make the J722S well-suited for a broad range of automation and industrial application, including automotive digital instrumentation, automotive displays, industrial HMI, and more.
Trim this down please
Quoted 15 lines
Some highlights of J722S SoC are:
* Quad-Cortex-A53s (running up to 1.4GHz) in a single cluster.
* One Device manager Cortext-R5F for system power and resource management, two Cortex-R5F for Functional Safety or general-purpose usage and two C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning.
* One 3D GPU up to 50 GLFOPS
* H.264/H.265, JPEG Video Encode/Decode.
* Display support: 3x display support over OLDI/LVDS (1x OLDI-DL, 1x or 2x OLDI-SL), DSI, or DPI. Up to 3840x1080@60fps resolution
* Integrated Giga-bit Ethernet switch supporting up to a total of two external ports (TSN capable).
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC).
Quoted 8 lines
* 7xUARTs, 3xSPI, 5xI2C, 2xUSB2, 2xCAN-FD, 3xMMC and SD, GPMC for NAND/FPGA connection, OSPI memory controller, 5xMcASP for audio, 4xCSI-RX for Camera, 1 PCIe Gen3 controller, eCAP/eQEP, ePWM, among other peripherals.
* Dedicated Centralized Hardware Security Module with support for secure boot, debug security and crypto acceleration and trusted execution environment.
* One 32-bit DDR Subsystem that supports LPDDR4 memory type.
Trim this down to what is different from AM62P?
Quoted 142 lines
J722S family of SoCs is a superset of the AM62P SoC family and shares similar memory map, thus the nodes are being reused from AM62P includes instead of duplicating the definitions. Unused nodes with dependencies are kept disabled and will be enabled later when the dependencies are enabled.
For those interested, more details about this SoC can be found in the Technical Reference Manual here:
https://www.ti.com/lit/zip/sprujb3Co-developed-by Jayesh Choudhary <[email protected]>Signed-off-by Jayesh Choudhary <[email protected]>Signed-off-by Vaishnav Achath <[email protected]>---
checkpatch error is ignored for
arch/arm64/boot/dts/ti/k3-pinctrl.h:
ERROR: Macros with complex values should be enclosed in parenthesesHowever, 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.
Depends on:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/arch/arm64/boot/dts/ti/k3-j722s.dtsi | 275 +++++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-pinctrl.h | 3 + 2 files changed, 278 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j722s.dtsiarch/arm64/boot/dts/ti/k3-j722s.dtsi new file +104
-0@@ -0,0 +1,275 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for J722S SoC Family + * + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/ti,sci_pm_domain.h> + +#include "k3-pinctrl.h" + +/ { + model = "Texas Instruments K3 J722S SoC"; + compatible = "ti,j722s"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu-map { + cluster0: cluster0 { + core0 { + cpu = <&cpu0>; + }; + + core1 { + cpu = <&cpu1>; + }; + + core2 { + cpu = <&cpu2>; + }; + + core3 { + cpu = <&cpu3>; + }; + }; + }; + + cpu0: cpu@0 { + compatible = "arm,cortex-a53"; + reg = <0x000>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 135 0>; + }; + + cpu1: cpu@1 { + compatible = "arm,cortex-a53"; + reg = <0x001>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 136 0>; + }; + + cpu2: cpu@2 { + compatible = "arm,cortex-a53"; + reg = <0x002>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 137 0>; + }; + + cpu3: cpu@3 { + compatible = "arm,cortex-a53"; + reg = <0x003>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 138 0>; + };
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 114
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ }; + + l2_0: l2-cache0 { + compatible = "cache"; + cache-unified; + cache-level = <2>; + cache-size = <0x80000>; + cache-line-size = <64>; + cache-sets = <512>; + };
^^ this is a duplication of am62p5.dtsi? what about the spins with different CPUs enabled?
Quoted 21 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +21
-0+ + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + + psci: psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + }; + + a53_timer0: timer-cl0-cpu0 { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ + <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ + <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ + }; +
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 145
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ pmu: pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; + }; + + cbass_main: bus@f0000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + bootph-all;
Nope.
Quoted 64 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +64
-0+ + ranges = <0x00 0x000f0000 0x00 0x000f0000 0x00 0x00030000>, /* Main MMRs */ + <0x00 0x00420000 0x00 0x00420000 0x00 0x00001000>, /* ESM0 */ + <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */ + <0x00 0x00703000 0x00 0x00703000 0x00 0x00000200>, /* USB0 debug trace */ + <0x00 0x0070c000 0x00 0x0070c000 0x00 0x00000200>, /* USB1 debug trace */ + <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Timesync router */ + <0x00 0x01000000 0x00 0x01000000 0x00 0x01b28400>, /* First peripheral window */ + <0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */ + <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01d20000>, /* Second peripheral window */ + <0x00 0x0fd80000 0x00 0x0fd80000 0x00 0x00080000>, /* GPU */ + <0x00 0x0fd20000 0x00 0x0fd20000 0x00 0x00000100>, /* JPEGENC0_CORE */ + <0x00 0x0fd20200 0x00 0x0fd20200 0x00 0x00000200>, /* JPEGENC0_CORE_MMU */ + <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */ + <0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */ + <0x00 0x301C0000 0x00 0x301C0000 0x00 0x00001000>, /* DPHY-TX */ + <0x00 0x30101000 0x00 0x30101000 0x00 0x00080100>, /* CSI window */ + <0x00 0x30200000 0x00 0x30200000 0x00 0x00010000>, /* DSS */ + <0x00 0x30210000 0x00 0x30210000 0x00 0x00010000>, /* VPU */ + <0x00 0x30220000 0x00 0x30220000 0x00 0x00010000>, /* DSS1 */ + <0x00 0x30270000 0x00 0x30270000 0x00 0x00010000>, /* DSI-base1 */ + <0x00 0x30500000 0x00 0x30500000 0x00 0x00100000>, /* DSI-base2 */ + <0x00 0x31000000 0x00 0x31000000 0x00 0x00050000>, /* USB0 DWC3 Core window */ + <0x00 0x31200000 0x00 0x31200000 0x00 0x00040000>, /* USB1 DWC3 Core window */ + <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */ + <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */ + <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ + <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */ + <0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */ + <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */ + <0x00 0x70000000 0x00 0x70000000 0x00 0x00040000>, /* OCSRAM */ + <0x00 0x78400000 0x00 0x78400000 0x00 0x00008000>, /* MAIN R5FSS0 ATCM */ + <0x00 0x78500000 0x00 0x78500000 0x00 0x00008000>, /* MAIN R5FSS0 BTCM */ + <0x00 0x7e000000 0x00 0x7e000000 0x00 0x00200000>, /* C7X_0 L2SRAM */ + <0x00 0x7e200000 0x00 0x7e200000 0x00 0x00200000>, /* C7X_1 L2SRAM */ + <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ + <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */ + + /* MCU Domain Range */ + <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, + <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, + <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, + <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, + <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>, + + /* Wakeup Domain Range */ + <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; + + cbass_mcu: bus@4000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, /* Peripheral window */ + <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */ + <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */ + <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */ + <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */ + bootph-all; + }; +
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 219
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ cbass_wakeup: bus@b00000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */ + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* WKUP CTRL MMR */ + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ + bootph-all;
Not in the bus nodes.. only in the leaf nodes please.
Also what is wrong with expanding the am62p to include the missing bus segments instead of duplicating all of them?
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 223
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +4
-0+ }; + }; + + #include "k3-am62p-thermal.dtsi"
Is this correct?
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +4
-0+}; + +/* + * Include peripherals for each bus segment derived
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 237
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ * from AM62P and overrides specific to J722S. + */ +#include "k3-am62p-main.dtsi" +#include "k3-am62p-mcu.dtsi" +#include "k3-am62p-wakeup.dtsi" + +/* Main domain overrides */ + +&cpsw3g { + status = "disabled";
here and rest: Why disabled?
Quoted 55 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +38
-0+}; + +&inta_main_dmss { + ti,interrupt-ranges = <5 69 35>; +}; + +&mailbox0_cluster0 { + status = "disabled"; +}; + +&mailbox0_cluster1 { + status = "disabled"; +}; + +&mailbox0_cluster2 { + status = "disabled"; +}; + +&mailbox0_cluster3 { + status = "disabled"; +}; + +&oc_sram { + reg = <0x00 0x70000000 0x00 0x40000>; + ranges = <0x00 0x00 0x70000000 0x40000>; +}; + +/* MCU domain overrides */ + +&mcu_r5fss0 { + status = "disabled"; +}; + +/* wakeup domain overrides */ + +&wkup_r5fss0 { + status = "disabled"; +};arch/arm64/boot/dts/ti/k3-pinctrl.h +3
-0@@ -59,6 +59,9 @@#define J721S2_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J721S2_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_MCU_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J784S4_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J784S4_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))Signature · 1 line
2.17.1
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH 2/3] arm64: dts: ti: Introduce J722S family of SoCs
Hi Nishanth,
Quoted 34 lines · Nishanth Menon
Quoted 7 lines · Vaishnav Achath
The J722S is a family of application processors built for Automotive and Linux Application development. Scalable Arm Cortex-A53 performance and embedded features, such as multi high-definition display support, 3D-graphics acceleration, 4K video acceleration, and extensive peripherals make the J722S well-suited for a broad range of automation and industrial application, including automotive digital instrumentation, automotive displays, industrial HMI, and more.
Trim this down please
Quoted 15 lines
Some highlights of J722S SoC are:
* Quad-Cortex-A53s (running up to 1.4GHz) in a single cluster.
* One Device manager Cortext-R5F for system power and resource management, two Cortex-R5F for Functional Safety or general-purpose usage and two C7x floating point vector DSPs with Matrix Multiply Accelerator(MMA) for deep learning.
* One 3D GPU up to 50 GLFOPS
* H.264/H.265, JPEG Video Encode/Decode.
* Display support: 3x display support over OLDI/LVDS (1x OLDI-DL, 1x or 2x OLDI-SL), DSI, or DPI. Up to 3840x1080@60fps resolution
* Integrated Giga-bit Ethernet switch supporting up to a total of two external ports (TSN capable).
* Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC).Quoted 8 lines
* 7xUARTs, 3xSPI, 5xI2C, 2xUSB2, 2xCAN-FD, 3xMMC and SD, GPMC for NAND/FPGA connection, OSPI memory controller, 5xMcASP for audio, 4xCSI-RX for Camera, 1 PCIe Gen3 controller, eCAP/eQEP, ePWM, among other peripherals.
* Dedicated Centralized Hardware Security Module with support for secure boot, debug security and crypto acceleration and trusted execution environment.
* One 32-bit DDR Subsystem that supports LPDDR4 memory type.
Quoted 2 lines
Trim this down to what is different from AM62P?
Thanks for the review, I will trim this down in next revision, but the above is just a summary of the main features of this SoC, pointing to AM62P feature set here seems confusing to me. why does a new user/developer using J722S need to be aware of the existence of AM62P to just understand a high level summary about this device?
Quoted 147 lines
Quoted 147 lines
J722S family of SoCs is a superset of the AM62P SoC family and shares similar memory map, thus the nodes are being reused from AM62P includes instead of duplicating the definitions. Unused nodes with dependencies are kept disabled and will be enabled later when the dependencies are enabled.
For those interested, more details about this SoC can be found in the Technical Reference Manual here:
https://www.ti.com/lit/zip/sprujb3Co-developed-by Jayesh Choudhary <[email protected]>Signed-off-by Jayesh Choudhary <[email protected]>Signed-off-by Vaishnav Achath <[email protected]>---
checkpatch error is ignored for
arch/arm64/boot/dts/ti/k3-pinctrl.h:
ERROR: Macros with complex values should be enclosed in parenthesesHowever, 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.
Depends on:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/arch/arm64/boot/dts/ti/k3-j722s.dtsi | 275 +++++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-pinctrl.h | 3 + 2 files changed, 278 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j722s.dtsiarch/arm64/boot/dts/ti/k3-j722s.dtsi new file +109
-0@@ -0,0 +1,275 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for J722S SoC Family + * + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/soc/ti,sci_pm_domain.h> + +#include "k3-pinctrl.h" + +/ { + model = "Texas Instruments K3 J722S SoC"; + compatible = "ti,j722s"; + interrupt-parent = <&gic500>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu-map { + cluster0: cluster0 { + core0 { + cpu = <&cpu0>; + }; + + core1 { + cpu = <&cpu1>; + }; + + core2 { + cpu = <&cpu2>; + }; + + core3 { + cpu = <&cpu3>; + }; + }; + }; + + cpu0: cpu@0 { + compatible = "arm,cortex-a53"; + reg = <0x000>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 135 0>; + }; + + cpu1: cpu@1 { + compatible = "arm,cortex-a53"; + reg = <0x001>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 136 0>; + }; + + cpu2: cpu@2 { + compatible = "arm,cortex-a53"; + reg = <0x002>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 137 0>; + }; + + cpu3: cpu@3 { + compatible = "arm,cortex-a53"; + reg = <0x003>; + device_type = "cpu"; + enable-method = "psci"; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_0>; + clocks = <&k3_clks 138 0>; + }; + }; + + l2_0: l2-cache0 { + compatible = "cache"; + cache-unified;
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 114
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +5
-0+ cache-level = <2>; + cache-size = <0x80000>; + cache-line-size = <64>; + cache-sets = <512>; + };^^ this is a duplication of
am62p5.dtsi? what about the spins with different CPUs enabled?
Yes it is a duplicate, as of now we are not aware of plan for spins with cores disabled, so just followed the pattern followed for other Jacinto devices (J721e, J7200, J721s2, J784s4).
Quoted 25 lines
Quoted 25 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +25
-0+ + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + + psci: psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + }; + + a53_timer0: timer-cl0-cpu0 { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, /* cntpsirq */ + <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, /* cntpnsirq */ + <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, /* cntvirq */ + <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>; /* cnthpirq */ + }; + + pmu: pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; + };
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 145
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +6
-0+ + cbass_main: bus@f0000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + bootph-all;Nope.
Sorry I missed this, will fix here and in all other places (including comments in patch 3/3).
Quoted 78 lines
Quoted 64 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +64
-0+ + ranges = <0x00 0x000f0000 0x00 0x000f0000 0x00 0x00030000>, /* Main MMRs */ + <0x00 0x00420000 0x00 0x00420000 0x00 0x00001000>, /* ESM0 */ + <0x00 0x00600000 0x00 0x00600000 0x00 0x00001100>, /* GPIO */ + <0x00 0x00703000 0x00 0x00703000 0x00 0x00000200>, /* USB0 debug trace */ + <0x00 0x0070c000 0x00 0x0070c000 0x00 0x00000200>, /* USB1 debug trace */ + <0x00 0x00a40000 0x00 0x00a40000 0x00 0x00000800>, /* Timesync router */ + <0x00 0x01000000 0x00 0x01000000 0x00 0x01b28400>, /* First peripheral window */ + <0x00 0x08000000 0x00 0x08000000 0x00 0x00200000>, /* Main CPSW */ + <0x00 0x0e000000 0x00 0x0e000000 0x00 0x01d20000>, /* Second peripheral window */ + <0x00 0x0fd80000 0x00 0x0fd80000 0x00 0x00080000>, /* GPU */ + <0x00 0x0fd20000 0x00 0x0fd20000 0x00 0x00000100>, /* JPEGENC0_CORE */ + <0x00 0x0fd20200 0x00 0x0fd20200 0x00 0x00000200>, /* JPEGENC0_CORE_MMU */ + <0x00 0x20000000 0x00 0x20000000 0x00 0x0a008000>, /* Third peripheral window */ + <0x00 0x30040000 0x00 0x30040000 0x00 0x00080000>, /* PRUSS-M */ + <0x00 0x301C0000 0x00 0x301C0000 0x00 0x00001000>, /* DPHY-TX */ + <0x00 0x30101000 0x00 0x30101000 0x00 0x00080100>, /* CSI window */ + <0x00 0x30200000 0x00 0x30200000 0x00 0x00010000>, /* DSS */ + <0x00 0x30210000 0x00 0x30210000 0x00 0x00010000>, /* VPU */ + <0x00 0x30220000 0x00 0x30220000 0x00 0x00010000>, /* DSS1 */ + <0x00 0x30270000 0x00 0x30270000 0x00 0x00010000>, /* DSI-base1 */ + <0x00 0x30500000 0x00 0x30500000 0x00 0x00100000>, /* DSI-base2 */ + <0x00 0x31000000 0x00 0x31000000 0x00 0x00050000>, /* USB0 DWC3 Core window */ + <0x00 0x31200000 0x00 0x31200000 0x00 0x00040000>, /* USB1 DWC3 Core window */ + <0x00 0x40900000 0x00 0x40900000 0x00 0x00030000>, /* SA3UL */ + <0x00 0x43600000 0x00 0x43600000 0x00 0x00010000>, /* SA3 sproxy data */ + <0x00 0x44043000 0x00 0x44043000 0x00 0x00000fe0>, /* TI SCI DEBUG */ + <0x00 0x44860000 0x00 0x44860000 0x00 0x00040000>, /* SA3 sproxy config */ + <0x00 0x48000000 0x00 0x48000000 0x00 0x06408000>, /* DMSS */ + <0x00 0x60000000 0x00 0x60000000 0x00 0x08000000>, /* FSS0 DAT1 */ + <0x00 0x70000000 0x00 0x70000000 0x00 0x00040000>, /* OCSRAM */ + <0x00 0x78400000 0x00 0x78400000 0x00 0x00008000>, /* MAIN R5FSS0 ATCM */ + <0x00 0x78500000 0x00 0x78500000 0x00 0x00008000>, /* MAIN R5FSS0 BTCM */ + <0x00 0x7e000000 0x00 0x7e000000 0x00 0x00200000>, /* C7X_0 L2SRAM */ + <0x00 0x7e200000 0x00 0x7e200000 0x00 0x00200000>, /* C7X_1 L2SRAM */ + <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ + <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */ + + /* MCU Domain Range */ + <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, + <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, + <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, + <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, + <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>, + + /* Wakeup Domain Range */ + <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; + + cbass_mcu: bus@4000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>, /* Peripheral window */ + <0x00 0x79000000 0x00 0x79000000 0x00 0x00008000>, /* MCU R5 ATCM */ + <0x00 0x79020000 0x00 0x79020000 0x00 0x00008000>, /* MCU R5 BTCM */ + <0x00 0x79100000 0x00 0x79100000 0x00 0x00040000>, /* MCU IRAM0 */ + <0x00 0x79140000 0x00 0x79140000 0x00 0x00040000>; /* MCU IRAM1 */ + bootph-all; + }; +arch/arm64/boot/dts/ti/k3-j722s.dtsi line 219
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ cbass_wakeup: bus@b00000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */ + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* WKUP CTRL MMR */ + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ + bootph-all;Not in the bus nodes.. only in the leaf nodes please.
Quoted 3 lines
Also what is wrong with expanding the am62p to include the missing bus segments instead of duplicating all of them?
We can do that, but the same would be true for AM625, AM62A and AM62P families and also for (J721E, J7200), since all these SoCs introduced new dtsi instead of resuing existing ones, I thought there would be some valid reason to have separate dtsi and just followed the same pattern, please let know if we need to reuse from AM62P here also.
Quoted 7 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 223
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +4
-0+ }; + }; + + #include "k3-am62p-thermal.dtsi"Is this correct?
I think it would be preferred to have a duplicate for J722S here as users may want to customize the trip points as per system and doing that without affecting AM62P would be preferred, but the initial information here would be same for J722S.
Quoted 8 lines
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +8
-0+}; + +/* + * Include peripherals for each bus segment derived + * from AM62P and overrides specific to J722S. + */ +#include "k3-am62p-main.dtsi" +#include "k3-am62p-mcu.dtsi"
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 237
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +6
-0+#include "k3-am62p-wakeup.dtsi" + +/* Main domain overrides */ + +&cpsw3g { + status = "disabled";here and rest: Why disabled?
These nodes seems to have dependencies that are not merged already and would throw errors during boot, AM62P SoC dtsi seems to have these enabled by default without these dependencies met and have errors like below during boot (seen on AM62P with 6.7.0-rc4-next-20231211).
[ 17.869092] platform 8000000.ethernet: deferred probe pending:
am65-cpsw-nuss: Failed to request tx dma channel
Quoted 14 lines
Quoted 14 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +14
-0+}; + +&inta_main_dmss { + ti,interrupt-ranges = <5 69 35>; +}; + +&mailbox0_cluster0 { + status = "disabled"; +}; + +&mailbox0_cluster1 { + status = "disabled"; +}; +
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 259
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +8
-0+&mailbox0_cluster2 { + status = "disabled"; +}; + +&mailbox0_cluster3 { + status = "disabled"; +}; +
[ 7.198470] omap-mailbox 29020000.mailbox: no available mbox devices found [ 7.210411] omap-mailbox 29030000.mailbox: no available mbox devices found
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 269
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+&oc_sram { + reg = <0x00 0x70000000 0x00 0x40000>; + ranges = <0x00 0x00 0x70000000 0x40000>; +}; + +/* MCU domain overrides */ + +&mcu_r5fss0 { + status = "disabled"; +};
[ 7.492406] platform 79000000.r5f: configured R5F for remoteproc mode [ 7.499887] platform 79000000.r5f: device does not have reserved memory regions, ret = -22 [ 7.508271] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: reserved memory init failed, ret = -22 [ 7.517549] remoteproc remoteproc0: releasing 79000000.r5f [ 7.523338] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 [ 7.532993] k3_r5_rproc: probe of bus@f0000:bus@4000000:r5fss@79000000 failed
with error -22
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 275
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +6
-0+ +/* wakeup domain overrides */ + +&wkup_r5fss0 { + status = "disabled"; +};
[ 7.576576] platform 78000000.r5f: configured R5F for IPC-only mode [ 7.605535] platform 78000000.r5f: device does not have reserved memory regions, ret = -22 [ 7.613942] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: reserved memory init failed, ret = -22 [ 7.635990] remoteproc remoteproc0: releasing 78000000.r5f [ 7.648639] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22 [ 7.664043] k3_r5_rproc: probe of bus@f0000:bus@b00000:r5fss@78000000 failed
with error -22
Quoted 14 lines
Quoted 14 lines
arch/arm64/boot/dts/ti/k3-pinctrl.h +3
-0@@ -59,6 +59,9 @@#define J721S2_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J721S2_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_MCU_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J784S4_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J784S4_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))
Quoted 3 lines
Quoted 3 lines
Signature · 1 line
2.17.1
0 - AM62P Boot logs (next-20231211) -
https://gist.github.com/vaishnavachath/7143da253bc708a1e60a13fe081d3914
To avoid these errors I am keeping these disabled, can we add support for these also as part of the initial support addition series? then there is no need for disabling these.
Thanks and Regards,
Vaishnav
Quoted 1 line
Nishanth Menon
maintainerRe: [PATCH 2/3] arm64: dts: ti: Introduce J722S family of SoCs
On 14:07-20231214, Vaishnav Achath wrote:
[..]
Quoted 8 lines
Quoted 2 lines
Trim this down to what is different from AM62P?
Thanks for the review, I will trim this down in next revision, but the above is just a summary of the main features of this SoC, pointing to AM62P feature set here seems confusing to me. why does a new user/developer using J722S need to be aware of the existence of AM62P to just understand a high level summary about this device?
Since this is a reuse device. Helps with review and focus on deltas.
[...]
Quoted 13 lines
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 114
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +8
-0+ l2_0: l2-cache0 { + compatible = "cache"; + cache-unified; + cache-level = <2>; + cache-size = <0x80000>; + cache-line-size = <64>; + cache-sets = <512>; + };^^ this is a duplication of
am62p5.dtsi? what about the spins with different CPUs enabled?
Quoted 3 lines
Yes it is a duplicate, as of now we are not aware of plan for spins with cores disabled, so just followed the pattern followed for other Jacinto devices (J721e, J7200, J721s2, J784s4).
None of the devices have been as close a reuse device as this has been. errata in one carries over to the other etc.. There are definitely some differences - for example: itap/otap delays for mmc those would be unique on this device, but overrides with documentation will make perfect sense there.
[..]
Quoted 18 lines
Quoted 14 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 219
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ cbass_wakeup: bus@b00000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */ + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* WKUP CTRL MMR */ + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ + bootph-all;Not in the bus nodes.. only in the leaf nodes please.
Quoted 3 lines
Also what is wrong with expanding the am62p to include the missing bus segments instead of duplicating all of them?
Quoted 5 lines
We can do that, but the same would be true for AM625, AM62A and AM62P families and also for (J721E, J7200), since all these SoCs introduced new dtsi instead of resuing existing ones, I thought there would be some valid reason to have separate dtsi and just followed the same pattern, please let know if we need to reuse from AM62P here also.
See above.
[...]
Quoted 9 lines
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 223
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +4
-0+ }; + }; + + #include "k3-am62p-thermal.dtsi"Is this correct?
Quoted 3 lines
I think it would be preferred to have a duplicate for J722S here as users may want to customize the trip points as per system and doing that without affecting AM62P would be preferred, but the initial information here would be same for J722S.
Please check with your hardware teams if the am62p SoC level thermal behavior will be similar to j722s or will it be different. If it is estimated to be different, then you'd prefer to hold off introducing the trips till the characterization provides you with the data.
Quoted 18 lines
Quoted 17 lines
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +4
-0+}; + +/* + * Include peripherals for each bus segment derivedarch/arm64/boot/dts/ti/k3-j722s.dtsi line 237
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ * from AM62P and overrides specific to J722S. + */ +#include "k3-am62p-main.dtsi" +#include "k3-am62p-mcu.dtsi" +#include "k3-am62p-wakeup.dtsi" + +/* Main domain overrides */ + +&cpsw3g { + status = "disabled";here and rest: Why disabled?
Quoted 7 lines
These nodes seems to have dependencies that are not merged already and would throw errors during boot, AM62P SoC dtsi seems to have these enabled by default without these dependencies met and have errors like below during boot (seen on AM62P with 6.7.0-rc4-next-20231211).
[ 17.869092] platform 8000000.ethernet: deferred probe pending:am65-cpsw-nuss: Failed to request tx dma channel
OK - lets get the dependencies sorted out before merging then. I though all the dependencies were indicated in the cover letter.
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +17
-0+}; + +&inta_main_dmss { + ti,interrupt-ranges = <5 69 35>; +}; + +&mailbox0_cluster0 { + status = "disabled"; +}; + +&mailbox0_cluster1 { + status = "disabled"; +}; + +&mailbox0_cluster2 { + status = "disabled"; +};
Quoted 8 lines
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 259
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +5
-0+ +&mailbox0_cluster3 { + status = "disabled"; +}; +[ 7.198470] omap-mailbox 29020000.mailbox: no available mbox devices found [ 7.210411] omap-mailbox 29030000.mailbox: no available mbox devices found
You might want to dig into why..
Quoted 21 lines
Quoted 11 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 269
Quoted 11 lines
+&oc_sram {
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +9
-0+ reg = <0x00 0x70000000 0x00 0x40000>; + ranges = <0x00 0x00 0x70000000 0x40000>; +}; + +/* MCU domain overrides */ + +&mcu_r5fss0 { + status = "disabled"; +};[ 7.492406] platform 79000000.r5f: configured R5F for remoteproc mode [ 7.499887] platform 79000000.r5f: device does not have reserved memory regions, ret = -22 [ 7.508271] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: reserved memory init failed, ret = -22 [ 7.517549] remoteproc remoteproc0: releasing 79000000.r5f [ 7.523338] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 [ 7.532993] k3_r5_rproc: probe of bus@f0000:bus@4000000:r5fss@79000000 failed
Quoted 1 line
with error -22
Yes, and the approach should rather be to disable the remote procs in
the board or at the SoC dtsi in a consistent manner. I had previously suggested to do that SoC level (which means at am62p dtsi) since the remoteprocs have direct dependency on how the memory layouts are partitioned in board.dts - but
i had asked folks working on remote procs to do that consistently across SoCs. I don't see that having been done so far.
Quoted 17 lines
Quoted 7 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 275
Quoted 7 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +6
-0+ +/* wakeup domain overrides */ + +&wkup_r5fss0 { + status = "disabled"; +};[ 7.576576] platform 78000000.r5f: configured R5F for IPC-only mode [ 7.605535] platform 78000000.r5f: device does not have reserved memory regions, ret = -22 [ 7.613942] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: reserved memory init failed, ret = -22 [ 7.635990] remoteproc remoteproc0: releasing 78000000.r5f [ 7.648639] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22 [ 7.664043] k3_r5_rproc: probe of bus@f0000:bus@b00000:r5fss@78000000 failed
Quoted 1 line
with error -22
See above.
Quoted 22 lines
Quoted 15 lines
Quoted 15 lines
arch/arm64/boot/dts/ti/k3-pinctrl.h +3
-0@@ -59,6 +59,9 @@#define J721S2_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J721S2_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_MCU_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J784S4_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J784S4_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))Quoted 3 lines
Quoted 3 lines
Signature · 1 line
2.17.10 - AM62P Boot logs (next-20231211) -
https://gist.github.com/vaishnavachath/7143da253bc708a1e60a13fe081d3914
Quoted 3 lines
To avoid these errors I am keeping these disabled, can we add support for these also as part of the initial support addition series? then there is no need for disabling these.
Fix them, then introduce j722s.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH 2/3] arm64: dts: ti: Introduce J722S family of SoCs
Quoted 28 lines · Nishanth Menon
On 14:07-20231214, Vaishnav Achath wrote:
[..]Quoted 8 lines
Quoted 2 lines
Trim this down to what is different from AM62P?
Thanks for the review, I will trim this down in next revision, but the above is just a summary of the main features of this SoC, pointing to AM62P feature set here seems confusing to me. why does a new user/developer using J722S need to be aware of the existence of AM62P to just understand a high level summary about this device?
Since this is a reuse device. Helps with review and focus on deltas.
[...]
Quoted 13 lines
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 114
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +8
-0+ l2_0: l2-cache0 { + compatible = "cache"; + cache-unified; + cache-level = <2>; + cache-size = <0x80000>; + cache-line-size = <64>; + cache-sets = <512>; + };^^ this is a duplication of
am62p5.dtsi? what about the spins with different CPUs enabled?
Quoted 5 lines
Quoted 3 lines
Yes it is a duplicate, as of now we are not aware of plan for spins with cores disabled, so just followed the pattern followed for other Jacinto devices (J721e, J7200, J721s2, J784s4).
None of the devices have been as close a reuse device as this has been.
I'd argue J721e and J7200 are more similar in terms of reuse. It was a mistake to model them as simple super/subsets of each other, only causes confusion later. Let's keep at least this top level file, we will end up using it more as more features/deltas are enabled/found.
Quoted 133 lines
errata in one carries over to the other etc.. There are definitely some differences - for example: itap/otap delays for mmc those would be unique on this device, but overrides with documentation will make perfect sense there.
[..]
Quoted 18 lines
Quoted 14 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 219
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ cbass_wakeup: bus@b00000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x00 0x00b00000 0x00 0x00b00000 0x00 0x00002400>, /* VTM */ + <0x00 0x2b000000 0x00 0x2b000000 0x00 0x00300400>, /* Peripheral Window */ + <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>, /* WKUP CTRL MMR */ + <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, /* DM R5 ATCM*/ + <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; /* DM R5 BTCM*/ + bootph-all;Not in the bus nodes.. only in the leaf nodes please.
Quoted 3 lines
Also what is wrong with expanding the am62p to include the missing bus segments instead of duplicating all of them?
Quoted 5 lines
We can do that, but the same would be true for AM625, AM62A and AM62P families and also for (J721E, J7200), since all these SoCs introduced new dtsi instead of resuing existing ones, I thought there would be some valid reason to have separate dtsi and just followed the same pattern, please let know if we need to reuse from AM62P here also.
See above.
[...]
Quoted 9 lines
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 223
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +4
-0+ }; + }; + + #include "k3-am62p-thermal.dtsi"Is this correct?
Quoted 3 lines
I think it would be preferred to have a duplicate for J722S here as users may want to customize the trip points as per system and doing that without affecting AM62P would be preferred, but the initial information here would be same for J722S.
Please check with your hardware teams if the am62p SoC level thermal behavior will be similar to j722s or will it be different. If it is estimated to be different, then you'd prefer to hold off introducing the trips till the characterization provides you with the data.
Quoted 18 lines
Quoted 17 lines
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +4
-0+}; + +/* + * Include peripherals for each bus segment derivedarch/arm64/boot/dts/ti/k3-j722s.dtsi line 237
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +10
-0+ * from AM62P and overrides specific to J722S. + */ +#include "k3-am62p-main.dtsi" +#include "k3-am62p-mcu.dtsi" +#include "k3-am62p-wakeup.dtsi" + +/* Main domain overrides */ + +&cpsw3g { + status = "disabled";here and rest: Why disabled?
Quoted 7 lines
These nodes seems to have dependencies that are not merged already and would throw errors during boot, AM62P SoC dtsi seems to have these enabled by default without these dependencies met and have errors like below during boot (seen on AM62P with 6.7.0-rc4-next-20231211).
[ 17.869092] platform 8000000.ethernet: deferred probe pending:am65-cpsw-nuss: Failed to request tx dma channel
OK - lets get the dependencies sorted out before merging then. I though all the dependencies were indicated in the cover letter.
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +17
-0+}; + +&inta_main_dmss { + ti,interrupt-ranges = <5 69 35>; +}; + +&mailbox0_cluster0 { + status = "disabled"; +}; + +&mailbox0_cluster1 { + status = "disabled"; +}; + +&mailbox0_cluster2 { + status = "disabled"; +};Quoted 8 lines
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 259
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +5
-0+ +&mailbox0_cluster3 { + status = "disabled"; +}; +[ 7.198470] omap-mailbox 29020000.mailbox: no available mbox devices found [ 7.210411] omap-mailbox 29030000.mailbox: no available mbox devices foundYou might want to dig into why..
Quoted 21 lines
Quoted 11 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 269
Quoted 11 lines
+&oc_sram {
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +9
-0+ reg = <0x00 0x70000000 0x00 0x40000>; + ranges = <0x00 0x00 0x70000000 0x40000>; +}; + +/* MCU domain overrides */ + +&mcu_r5fss0 { + status = "disabled"; +};[ 7.492406] platform 79000000.r5f: configured R5F for remoteproc mode [ 7.499887] platform 79000000.r5f: device does not have reserved memory regions, ret = -22 [ 7.508271] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: reserved memory init failed, ret = -22 [ 7.517549] remoteproc remoteproc0: releasing 79000000.r5f [ 7.523338] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 [ 7.532993] k3_r5_rproc: probe of bus@f0000:bus@4000000:r5fss@79000000 failedQuoted 1 line
with error -22
Quoted 7 lines
Yes, and the approach should rather be to disable the remote procs in
the board or at the SoC dtsi in a consistent manner. I had previously suggested to do that SoC level (which means at am62p dtsi) since the remoteprocs have direct dependency on how the memory layouts are partitioned inboard.dts- but
i had asked folks working on remote procs to do that consistently across SoCs. I don't see that having been done so far.
I fixed this for a couple SoCs way back last year (7e48b665100ee), seems folks kept adding mailboxes/rprocs un-disabled in the base .dtbi for new SoCs anyway :( This needs fixed in AM62p .dtsi first, then these disables can be removed from here.
Andrew
Quoted 49 lines
Quoted 17 lines
Quoted 7 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 275
Quoted 7 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +6
-0+ +/* wakeup domain overrides */ + +&wkup_r5fss0 { + status = "disabled"; +};[ 7.576576] platform 78000000.r5f: configured R5F for IPC-only mode [ 7.605535] platform 78000000.r5f: device does not have reserved memory regions, ret = -22 [ 7.613942] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: reserved memory init failed, ret = -22 [ 7.635990] remoteproc remoteproc0: releasing 78000000.r5f [ 7.648639] k3_r5_rproc bus@f0000:bus@b00000:r5fss@78000000: k3_r5_cluster_rproc_init failed, ret = -22 [ 7.664043] k3_r5_rproc: probe of bus@f0000:bus@b00000:r5fss@78000000 failedQuoted 1 line
with error -22
See above.
Quoted 22 lines
Quoted 15 lines
Quoted 15 lines
arch/arm64/boot/dts/ti/k3-pinctrl.h +3
-0@@ -59,6 +59,9 @@#define J721S2_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J721S2_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J722S_MCU_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) +#define J784S4_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))#define J784S4_WKUP_IOPAD (pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode))Quoted 3 lines
Quoted 3 lines
Signature · 1 line
2.17.10 - AM62P Boot logs (next-20231211) -
https://gist.github.com/vaishnavachath/7143da253bc708a1e60a13fe081d3914Quoted 3 lines
To avoid these errors I am keeping these disabled, can we add support for these also as part of the initial support addition series? then there is no need for disabling these.
Fix them, then introduce j722s.
Nishanth Menon
maintainerRe: [PATCH 2/3] arm64: dts: ti: Introduce J722S family of SoCs
Quoted 33 lines · Andrew Davis
Quoted 32 lines · Nishanth Menon
On 14:07-20231214, Vaishnav Achath wrote:
[..]Quoted 8 lines
Quoted 2 lines
Trim this down to what is different from AM62P?
Thanks for the review, I will trim this down in next revision, but the above is just a summary of the main features of this SoC, pointing to AM62P feature set here seems confusing to me. why does a new user/developer using J722S need to be aware of the existence of AM62P to just understand a high level summary about this device?
Since this is a reuse device. Helps with review and focus on deltas.
[...]
Quoted 16 lines
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi line 114
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-j722s.dtsi new file +8
-0+ l2_0: l2-cache0 { + compatible = "cache"; + cache-unified; + cache-level = <2>; + cache-size = <0x80000>; + cache-line-size = <64>; + cache-sets = <512>; + };^^ this is a duplication of
am62p5.dtsi? what about the spins with different CPUs enabled?Yes it is a duplicate, as of now we are not aware of plan for spins with cores disabled, so just followed the pattern followed for other Jacinto devices (J721e, J7200, J721s2, J784s4).
Quoted 7 lines
Quoted 1 line
None of the devices have been as close a reuse device as this has been.
I'd argue J721e and J7200 are more similar in terms of reuse. It was a mistake to model them as simple super/subsets of each other, only causes confusion later. Let's keep at least this top level file, we will end up using it more as more features/deltas are enabled/found.
yes, we do need a top level dtsi for the SoC. just minimize the amount of duplication.
[...]
Quoted 20 lines
Quoted 12 lines
Quoted 11 lines
[ 7.492406] platform 79000000.r5f: configured R5F for remoteproc mode [ 7.499887] platform 79000000.r5f: device does not have reserved memory regions, ret = -22 [ 7.508271] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: reserved memory init failed, ret = -22 [ 7.517549] remoteproc remoteproc0: releasing 79000000.r5f [ 7.523338] k3_r5_rproc bus@f0000:bus@4000000:r5fss@79000000: k3_r5_cluster_rproc_init failed, ret = -22 [ 7.532993] k3_r5_rproc: probe of bus@f0000:bus@4000000:r5fss@79000000 failedwith error -22
Quoted 7 lines
Yes, and the approach should rather be to disable the remote procs in
the board or at the SoC dtsi in a consistent manner. I had previously suggested to do that SoC level (which means at am62p dtsi) since the remoteprocs have direct dependency on how the memory layouts are partitioned inboard.dts- but
i had asked folks working on remote procs to do that consistently across SoCs. I don't see that having been done so far.
Quoted 5 lines
I fixed this for a couple SoCs way back last year (
7e48b665100ee), seems folks kept adding mailboxes/rprocs un-disabled in the base .dtbi for new SoCs anyway :( This needs fixed in AM62p .dtsi first, then these disables can be removed from here.
Yes, hence blocking it from here on. Cleanup, then add.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
PATCH 3/3 arm64: dts: ti: Add support for TI J722S Evaluation Module
In reply to Vaishnav AchathAdd basic support for the J722S EVM with UART console and MMC SD as rootfs.
Schematics are available at:
https://www.ti.com/lit/zip/sprr495
--- arch/arm64/boot/dts/ti/Makefile | 3 + arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 253 ++++++++++++++++++++++++ 2 files changed, 256 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j722s-evm.dts
arch/arm64/boot/dts/ti/Makefile +3 -0
@@ -76,6 +76,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm-gesi-exp-board.dtbo k3-j721s2-evm-dtbs := k3-j721s2-common-proc-board.dtb k3-j721s2-evm-gesi-exp-board.dtbo dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm.dtb +# Boards with J722s SoC +dtb-$(CONFIG_ARCH_K3) += k3-j722s-evm.dtb + # Boards with J784s4 SoC dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb
arch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +253 -0
253 lines not on this page · raw message
Signature · 1 line
2.17.1
Nishanth Menon
maintainerRe: [PATCH 3/3] arm64: dts: ti: Add support for TI J722S Evaluation Module
Quoted 152 lines · Vaishnav Achath
Add basic support for the J722S EVM with UART console and MMC SD as rootfs.
Schematics are available at:
https://www.ti.com/lit/zip/sprr495Co-developed-by Jayesh Choudhary <[email protected]>Signed-off-by Jayesh Choudhary <[email protected]>Signed-off-by Vaishnav Achath <[email protected]>--- arch/arm64/boot/dts/ti/Makefile | 3 + arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 253 ++++++++++++++++++++++++ 2 files changed, 256 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j722s-evm.dtsarch/arm64/boot/dts/ti/Makefile +3
-0@@ -76,6 +76,9 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm-gesi-exp-board.dtbo k3-j721s2-evm-dtbs := k3-j721s2-common-proc-board.dtb k3-j721s2-evm-gesi-exp-board.dtbo dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm.dtb +# Boards with J722s SoC +dtb-$(CONFIG_ARCH_K3) += k3-j722s-evm.dtb + # Boards with J784s4 SoC dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtbarch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +117
-0@@ -0,0 +1,253 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree file for the J722S-EVM + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + * + * Schematics: https://www.ti.com/lit/zip/sprr495 + */ + +/dts-v1/; + +#include "k3-j722s.dtsi" + +/ { + compatible = "ti,j722s-evm", "ti,j722s"; + model = "Texas Instruments J722S EVM"; + + aliases { + serial0 = &wkup_uart0; + serial2 = &main_uart0; + mmc0 = &sdhci0; + mmc1 = &sdhci1; + }; + + chosen { + stdout-path = &main_uart0; + }; + + memory@80000000 { + /* 8G RAM */ + reg = <0x00000000 0x80000000 0x00000000 0x80000000>, + <0x00000008 0x80000000 0x00000001 0x80000000>; + device_type = "memory"; + bootph-pre-ram; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + secure_tfa_ddr: tfa@9e780000 { + reg = <0x00 0x9e780000 0x00 0x80000>; + no-map; + }; + + secure_ddr: optee@9e800000 { + reg = <0x00 0x9e800000 0x00 0x01800000>; + no-map; + }; + + wkup_r5fss0_core0_memory_region: r5f-memory@a0100000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa0100000 0x00 0xf00000>; + no-map; + }; + + }; + + vmain_pd: regulator-0 { + /* TPS65988 PD CONTROLLER OUTPUT */ + compatible = "regulator-fixed"; + regulator-name = "vmain_pd"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + bootph-all; + }; + + vsys_5v0: regulator-vsys5v0 { + /* Output of LM5140 */ + compatible = "regulator-fixed"; + regulator-name = "vsys_5v0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vmain_pd>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_mmc1: regulator-mmc1 { + /* TPS22918DBVR */ + compatible = "regulator-fixed"; + regulator-name = "vdd_mmc1"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + enable-active-high; + gpio = <&exp1 15 GPIO_ACTIVE_HIGH>; + bootph-all; + }; + + vdd_sd_dv: regulator-TLV71033 { + compatible = "regulator-gpio"; + regulator-name = "tlv71033"; + pinctrl-names = "default"; + pinctrl-0 = <&vdd_sd_dv_pins_default>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + vin-supply = <&vsys_5v0>; + gpios = <&main_gpio0 70 GPIO_ACTIVE_HIGH>; + states = <1800000 0x0>, + <3300000 0x1>; + }; + + vsys_io_1v8: regulator-vsys-io-1v8 { + compatible = "regulator-fixed"; + regulator-name = "vsys_io_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + vsys_io_1v2: regulator-vsys-io-1v2 { + compatible = "regulator-fixed";
arch/arm64/boot/dts/ti/k3-j722s-evm.dts line 127
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +10
-0+ regulator-name = "vsys_io_1v2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; +}; + +&main_pmx0 { + bootph-all;
Only in leaf nodes.
Quoted 41 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +41
-0+ + main_i2c0_pins_default: main-i2c0-default-pins { + pinctrl-single,pins = < + J722S_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D23) I2C0_SCL */ + J722S_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (B22) I2C0_SDA */ + >; + bootph-all; + }; + + main_uart0_pins_default: main-uart0-default-pins { + pinctrl-single,pins = < + J722S_IOPAD(0x1c8, PIN_INPUT, 0) /* (A22) UART0_RXD */ + J722S_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (B22) UART0_TXD */ + >; + bootph-all; + }; + + vdd_sd_dv_pins_default: vdd-sd-dv-default-pins { + pinctrl-single,pins = < + J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */ + >; + bootph-all; + }; + + main_mmc1_pins_default: main-mmc1-default-pins { + pinctrl-single,pins = < + J722S_IOPAD(0x023c, PIN_INPUT, 0) /* (H22) MMC1_CMD */ + J722S_IOPAD(0x0234, PIN_OUTPUT, 0) /* (H24) MMC1_CLK */ + J722S_IOPAD(0x0230, PIN_INPUT, 0) /* (H23) MMC1_DAT0 */ + J722S_IOPAD(0x022c, PIN_INPUT_PULLUP, 0) /* (H20) MMC1_DAT1 */ + J722S_IOPAD(0x0228, PIN_INPUT_PULLUP, 0) /* (J23) MMC1_DAT2 */ + J722S_IOPAD(0x0224, PIN_INPUT_PULLUP, 0) /* (H25) MMC1_DAT3 */ + J722S_IOPAD(0x0240, PIN_INPUT, 0) /* (B24) MMC1_SDCD */ + >; + bootph-all; + }; +}; + +&main_gpio1 { + status = "okay"; +};
arch/arm64/boot/dts/ti/k3-j722s-evm.dts line 178
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +10
-0+ +&main_uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&main_uart0_pins_default>; + status = "okay"; + bootph-all; +}; + +&mcu_pmx0 { + bootph-all;
Same..
Quoted 78 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +75
-0+ + wkup_uart0_pins_default: wkup-uart0-default-pins { + pinctrl-single,pins = < + J722S_MCU_IOPAD(0x02c, PIN_INPUT, 0) /* (C7) WKUP_UART0_CTSn */ + J722S_MCU_IOPAD(0x030, PIN_OUTPUT, 0) /* (C6) WKUP_UART0_RTSn */ + J722S_MCU_IOPAD(0x024, PIN_INPUT, 0) /* (D8) WKUP_UART0_RXD */ + J722S_MCU_IOPAD(0x028, PIN_OUTPUT, 0) /* (D7) WKUP_UART0_TXD */ + >; + bootph-all; + }; + + wkup_i2c0_pins_default: wkup-i2c0-default-pins { + pinctrl-single,pins = < + J722S_MCU_IOPAD(0x04c, PIN_INPUT_PULLUP, 0) /* (C7) WKUP_I2C0_SCL */ + J722S_MCU_IOPAD(0x050, PIN_INPUT_PULLUP, 0) /* (C6) WKUP_I2C1_SDA */ + >; + bootph-all; + }; +}; + +&wkup_uart0 { + /* WKUP UART0 is used by DM firmware */ + pinctrl-names = "default"; + pinctrl-0 = <&wkup_uart0_pins_default>; + status = "reserved"; + bootph-all; +}; + +&wkup_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_i2c0_pins_default>; + clock-frequency = <400000>; + bootph-all; +}; + +&main_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c0_pins_default>; + clock-frequency = <400000>; + bootph-all; + + exp1: gpio@23 { + compatible = "ti,tca6424"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "TRC_MUX_SEL", "OSPI/ONAND_MUX_SEL", + "MCASP1_FET_SEL", "CTRL_PM_I2C_OE#", + "CSI_VIO_SEL", "USB2.0_MUX_SEL", + "CSI01_MUX_SEL_2", "CSI23_MUX_SEL_2", + "LMK1_OE1", "LMK1_OE0", + "LMK2_OE0", "LMK2_OE1", + "GPIO_RGMII1_RST#", "GPIO_AUD_RSTn", + "GPIO_eMMC_RSTn", "GPIO_uSD_PWR_EN", + "USER_LED2", "MCAN0_STB", + "PCIe0_1L_RC_RSTz", "PCIe0_1L_PRSNT#", + "ENET1_EXP_SPARE2", "ENET1_EXP_PWRDN", + "PD_I2ENET1_I2CMUX_SELC_IRQ", "ENET1_EXP_RESETZ"; + }; +}; + +&sdhci1 { + /* SD/MMC */ + status = "okay"; + vmmc-supply = <&vdd_mmc1>; + vqmmc-supply = <&vdd_sd_dv>; + pinctrl-names = "default"; + pinctrl-0 = <&main_mmc1_pins_default>; + ti,driver-strength-ohm = <50>; + disable-wp; + no-1-8-v; + bootph-all; +};Signature · 1 line
2.17.1
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH 3/3] arm64: dts: ti: Add support for TI J722S Evaluation Module
In reply to Vaishnav AchathHi Vaishnav
Quoted 11 lines · Vaishnav Achath
Add basic support for the J722S EVM with UART console and MMC SD as rootfs.
Schematics are available at:
https://www.ti.com/lit/zip/sprr495Co-developed-by Jayesh Choudhary <[email protected]>Signed-off-by Jayesh Choudhary <[email protected]>Signed-off-by Vaishnav Achath <[email protected]>---
[..]
arch/arm64/boot/dts/ti/k3-j722s-evm.dts line 55
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +6
-0+ + wkup_r5fss0_core0_memory_region: r5f-memory@a0100000 { + compatible = "shared-dma-pool"; + reg = <0x00 0xa0100000 0x00 0xf00000>; + no-map; + };
Do you think, we should have some reserve memory for dma area as well
Something like wkup_r5fss0_core0_dma_memory_region
Quoted 3 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts new file +3
-0+ + }; + [..]