* [PATCH v3 0/2] Add support for K3 BIST @ 2025-05-14 7:20 Neha Malcom Francis 2025-05-14 7:20 ` [PATCH v3 1/2] dt-bindings: soc: ti: bist: Add BIST for K3 devices Neha Malcom Francis 2025-05-14 7:20 ` [PATCH v3 2/2] arm64: dts: ti: k3-j784s4-main: Add PBIST_14 node Neha Malcom Francis 0 siblings, 2 replies; 5+ messages in thread From: Neha Malcom Francis @ 2025-05-14 7:20 UTC (permalink / raw) To: nm, vigneshr, kristo, robh, krzk+dt, conor+dt Cc: linux-arm-kernel, devicetree, linux-kernel, u-kumar1, n-francis BIST (Built-In Self Test) is an IP responsible for triggering hardware circuitry tests on both logic as well as memory blocks. This driver is currently being upstreamed in U-Boot [1] and triggers these tests on cores. This patch series adds the dt-binding as well as a node for BIST on J784S4. Changes since v2: https://lore.kernel.org/all/20250328111439.374748-1-n-francis@ti.com/ - Krzysztof - use existing common definition (ti,sci-dev-id) for grabbing the device ID instead of redefining properties Changes since v1: https://lore.kernel.org/all/20241128140825.263216-1-n-francis@ti.com/ - Krzysztof - move from misc/ to soc/ti/ - minor property changes - drop ti,bist-instance and instead opt for ti,bist-under-test - correct example dt [1] https://lore.kernel.org/all/20250204123147.939917-1-n-francis@ti.com/ Neha Malcom Francis (2): dt-bindings: soc: ti: bist: Add BIST for K3 devices arm64: dts: ti: k3-j784s4-main: Add PBIST_14 node .../bindings/soc/ti/ti,j784s4-bist.yaml | 63 +++++++++++++++++++ arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 11 ++++ 2 files changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/ti/ti,j784s4-bist.yaml -- 2.34.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 1/2] dt-bindings: soc: ti: bist: Add BIST for K3 devices 2025-05-14 7:20 [PATCH v3 0/2] Add support for K3 BIST Neha Malcom Francis @ 2025-05-14 7:20 ` Neha Malcom Francis 2025-05-19 8:41 ` Krzysztof Kozlowski 2025-05-14 7:20 ` [PATCH v3 2/2] arm64: dts: ti: k3-j784s4-main: Add PBIST_14 node Neha Malcom Francis 1 sibling, 1 reply; 5+ messages in thread From: Neha Malcom Francis @ 2025-05-14 7:20 UTC (permalink / raw) To: nm, vigneshr, kristo, robh, krzk+dt, conor+dt Cc: linux-arm-kernel, devicetree, linux-kernel, u-kumar1, n-francis Document the binding for TI K3 BIST (Built-In Self Test) block. Signed-off-by: Neha Malcom Francis <n-francis@ti.com> --- Changes since v2: - move from redefining ti,bist-under-test to using existing ti,sci-dev-id .../bindings/soc/ti/ti,j784s4-bist.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/ti/ti,j784s4-bist.yaml diff --git a/Documentation/devicetree/bindings/soc/ti/ti,j784s4-bist.yaml b/Documentation/devicetree/bindings/soc/ti/ti,j784s4-bist.yaml new file mode 100644 index 000000000000..a73691cf5624 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/ti/ti,j784s4-bist.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2025 Texas Instruments Incorporated +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/ti/ti,j784s4-bist.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments K3 BIST + +maintainers: + - Neha Malcom Francis <n-francis@ti.com> + +allOf: + - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# + +description: + The BIST (Built-In Self Test) module is an IP block present in K3 devices + that support triggering of BIST tests, both PBIST (Memory BIST) and LBIST + (Logic BIST) on a core. Both tests are destructive in nature. At boot, BIST + is executed by hardware for the MCU domain automatically as part of HW POST. + +properties: + compatible: + const: ti,j784s4-bist + + reg: + maxItems: 2 + + reg-names: + items: + - const: cfg + - const: ctrl_mmr + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - ti,sci-dev-id + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/soc/ti,sci_pm_domain.h> + bus { + #address-cells = <2>; + #size-cells = <2>; + safety-selftest@33c0000 { + compatible = "ti,j784s4-bist"; + reg = <0x00 0x033c0000 0x00 0x400>, + <0x00 0x0010c1a0 0x00 0x01c>; + reg-names = "cfg", "ctrl_mmr"; + clocks = <&k3_clks 237 7>; + power-domains = <&k3_pds 237 TI_SCI_PD_EXCLUSIVE>; + ti,sci-dev-id = <234>; + }; + }; -- 2.34.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: soc: ti: bist: Add BIST for K3 devices 2025-05-14 7:20 ` [PATCH v3 1/2] dt-bindings: soc: ti: bist: Add BIST for K3 devices Neha Malcom Francis @ 2025-05-19 8:41 ` Krzysztof Kozlowski 0 siblings, 0 replies; 5+ messages in thread From: Krzysztof Kozlowski @ 2025-05-19 8:41 UTC (permalink / raw) To: Neha Malcom Francis Cc: nm, vigneshr, kristo, robh, krzk+dt, conor+dt, linux-arm-kernel, devicetree, linux-kernel, u-kumar1 On Wed, May 14, 2025 at 12:50:55PM GMT, Neha Malcom Francis wrote: > Document the binding for TI K3 BIST (Built-In Self Test) block. > > Signed-off-by: Neha Malcom Francis <n-francis@ti.com> > --- > Changes since v2: > - move from redefining ti,bist-under-test to using existing ti,sci-dev-id > > .../bindings/soc/ti/ti,j784s4-bist.yaml | 63 +++++++++++++++++++ > 1 file changed, 63 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/ti/ti,j784s4-bist.yaml Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 2/2] arm64: dts: ti: k3-j784s4-main: Add PBIST_14 node 2025-05-14 7:20 [PATCH v3 0/2] Add support for K3 BIST Neha Malcom Francis 2025-05-14 7:20 ` [PATCH v3 1/2] dt-bindings: soc: ti: bist: Add BIST for K3 devices Neha Malcom Francis @ 2025-05-14 7:20 ` Neha Malcom Francis 2025-05-23 9:32 ` Kumar, Udit 1 sibling, 1 reply; 5+ messages in thread From: Neha Malcom Francis @ 2025-05-14 7:20 UTC (permalink / raw) To: nm, vigneshr, kristo, robh, krzk+dt, conor+dt Cc: linux-arm-kernel, devicetree, linux-kernel, u-kumar1, n-francis Add DT node for PBIST_14 that is responsible for triggering the PBIST self-tests for the MAIN_R5_2_x cores. Signed-off-by: Neha Malcom Francis <n-francis@ti.com> --- Changes since v2: - remove ti,bist-under-test property and use ti,sci-dev-id arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index 0160fe0da983..fd098aac3989 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -113,6 +113,17 @@ serdes2: serdes@5020000 { status = "disabled"; }; }; + + bist_main14: bist@33c0000 { + compatible = "ti,j784s4-bist"; + reg = <0x00 0x033c0000 0x00 0x400>, + <0x00 0x0010c1a0 0x00 0x01c>; + reg-names = "cfg", "ctrl_mmr"; + clocks = <&k3_clks 237 7>; + power-domains = <&k3_pds 237 TI_SCI_PD_EXCLUSIVE>; + bootph-pre-ram; + ti,sci-dev-id = <234>; + }; }; &scm_conf { -- 2.34.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 2/2] arm64: dts: ti: k3-j784s4-main: Add PBIST_14 node 2025-05-14 7:20 ` [PATCH v3 2/2] arm64: dts: ti: k3-j784s4-main: Add PBIST_14 node Neha Malcom Francis @ 2025-05-23 9:32 ` Kumar, Udit 0 siblings, 0 replies; 5+ messages in thread From: Kumar, Udit @ 2025-05-23 9:32 UTC (permalink / raw) To: Neha Malcom Francis, nm, vigneshr, kristo, robh, krzk+dt, conor+dt Cc: linux-arm-kernel, devicetree, linux-kernel, u-kumar1 Hello Neha On 5/14/2025 12:50 PM, Neha Malcom Francis wrote: > Add DT node for PBIST_14 that is responsible for triggering the PBIST > self-tests for the MAIN_R5_2_x cores. > > Signed-off-by: Neha Malcom Francis <n-francis@ti.com> > --- > Changes since v2: > - remove ti,bist-under-test property and use ti,sci-dev-id > > arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > index 0160fe0da983..fd098aac3989 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > @@ -113,6 +113,17 @@ serdes2: serdes@5020000 { > status = "disabled"; > }; > }; > + > + bist_main14: bist@33c0000 { > + compatible = "ti,j784s4-bist"; > + reg = <0x00 0x033c0000 0x00 0x400>, > + <0x00 0x0010c1a0 0x00 0x01c>; > + reg-names = "cfg", "ctrl_mmr"; > + clocks = <&k3_clks 237 7>; > + power-domains = <&k3_pds 237 TI_SCI_PD_EXCLUSIVE>; > + bootph-pre-ram; > + ti,sci-dev-id = <234>; > + }; Please extend this support to j742s2 SOC as well. With above change Reviewed-by: Udit Kumar <u-kumar1@ti.com> > }; > > &scm_conf { ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-23 9:32 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-05-14 7:20 [PATCH v3 0/2] Add support for K3 BIST Neha Malcom Francis 2025-05-14 7:20 ` [PATCH v3 1/2] dt-bindings: soc: ti: bist: Add BIST for K3 devices Neha Malcom Francis 2025-05-19 8:41 ` Krzysztof Kozlowski 2025-05-14 7:20 ` [PATCH v3 2/2] arm64: dts: ti: k3-j784s4-main: Add PBIST_14 node Neha Malcom Francis 2025-05-23 9:32 ` Kumar, Udit
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox