From: MANNURU VENKATESWARLU <v-mannuru@ti.com>
To: <krzk@kernel.org>, <robh@kernel.org>, <conor+dt@kernel.org>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<n-francis@ti.com>, <s-k6@ti.com>, <bb@ti.com>,
<v-mannuru@ti.com>
Subject: [RFC PATCH 02/22] dt-bindings: memory: ti,j7-ddrss: Add TI K3 DDRSS wrapper binding
Date: Tue, 14 Jul 2026 18:25:36 +0530 [thread overview]
Message-ID: <20260714125537.3304217-2-v-mannuru@ti.com> (raw)
In-Reply-To: <20260714125537.3304217-1-v-mannuru@ti.com>
Add device tree binding for the TI wrapper module for the Cadence
DDRSS controller in K3 SoCs.
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Signed-off-by: Gandhar Deshpande <g-deshpande@ti.com>
Signed-off-by: MANNURU VENKATESWARLU <v-mannuru@ti.com>
---
| 186 ++++++++++++++++++
1 file changed, 186 insertions(+)
create mode 100644 Documentation/devicetree/bindings/memory-controllers/ti/ti,j7-ddrss.yaml
--git a/Documentation/devicetree/bindings/memory-controllers/ti/ti,j7-ddrss.yaml b/Documentation/devicetree/bindings/memory-controllers/ti/ti,j7-ddrss.yaml
new file mode 100644
index 0000000000000..f4bebabaeb111
--- /dev/null
+++ b/Documentation/devicetree/bindings/memory-controllers/ti/ti,j7-ddrss.yaml
@@ -0,0 +1,186 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/memory-controllers/ti/ti,j7-ddrss.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI wrapper module for the Cadence DDRSS controller
+
+maintainers:
+ - Santhosh Kumar K <s-k6@ti.com>
+ - Neha Malcom Francis <n-francis@ti.com>
+
+description: |
+ The K3 DDR subsystem comprises DDR controller, DDR PHY and wrapper
+ logic to integrate these blocks in the device. The DDR subsystem is
+ used to provide an interface to external SDRAM devices which can be
+ utilized for storing program or data.
+
+properties:
+ compatible:
+ oneOf:
+ - enum:
+ - ti,j721s2-ddrss
+ - ti,j721e-ddrss
+ - ti,j7-ddrss
+ - ti,am62-ddrss
+ - ti,am62a-ddrss
+ - items:
+ - const: ti,am64-ddrss
+ - const: ti,am62-ddrss
+ - items:
+ - const: ti,am62p-ddrss
+ - const: ti,am62a-ddrss
+
+ reg:
+ minItems: 1
+ maxItems: 3
+ description: |
+ Register regions for the DDR subsystem wrapper. The number of regions
+ depends on the SoC variant:
+ - 1 region (ss_cfg): am62, am62p legacy layout
+ - 2 regions (cfg, ctrl_mmr_lp4): j7200, j721e
+ - 3 regions (cfg, ctrl_mmr_lp4, ss_cfg): j721s2, j784s4, am62a, am64
+
+ reg-names:
+ oneOf:
+ - items:
+ - const: ss_cfg
+ - items:
+ - const: cfg
+ - const: ctrl_mmr_lp4
+ - items:
+ - const: cfg
+ - const: ctrl_mmr_lp4
+ - const: ss_cfg
+
+ bootph-pre-ram: true
+
+ ranges:
+ minItems: 1
+
+ interrupts:
+ maxItems: 1
+ description: |
+ Interrupt line for the DDR subsystem controller. This interrupt is
+ typically used for temperature monitoring and error reporting.
+
+ power-domains:
+ minItems: 1
+ maxItems: 2
+ description: |
+ Power domains required by the DDR subsystem:
+ - an entry to TISCI DDR CFG device
+ - an entry to TISCI DDR DATA.
+
+ clocks:
+ minItems: 1
+ maxItems: 2
+ description: |
+ - An entry to DDRSS clock
+ - An entry to SoC bypass clock
+
+ ti,ddr-freq0:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Initial DDR frequency in Hz before frequency switching. Present on
+ SoCs with three-frequency operation (j721s2, j784s4).
+
+ ti,ddr-freq1:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: |
+ Primary DDR frequency setting in Hz. This value is used for
+ normal operation of the DDR subsystem.
+
+ ti,ddr-freq2:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: |
+ Secondary DDR frequency setting in Hz. This value can be used
+ for power saving or performance modes.
+
+ ti,ddr-fhs-cnt:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: |
+ Frequency handover sequence count. This value defines how many
+ steps to use when switching between frequency settings.
+
+ instance:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Zero-based index identifying this DDR subsystem instance. Required on
+ multi-DDR SoCs (j721s2, j784s4) where two or more instances exist.
+
+ '#address-cells':
+ const: 2
+
+ '#size-cells':
+ const: 2
+
+patternProperties:
+ "^ddr@":
+ type: object
+
+ "^ddr-pmu@":
+ type: object
+ properties:
+ compatible:
+ const: ti,k3-ddr-pmu
+ reg:
+ maxItems: 1
+ required:
+ - compatible
+ - reg
+ additionalProperties: false
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - ranges
+ - interrupts
+ - power-domains
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/soc/ti,sci_pm_domain.h>
+
+ cbass_main {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ memorycontroller: memorycontroller@2980000 {
+ compatible = "ti,j721e-ddrss";
+ reg = <0x0 0x02990000 0x0 0x4000>,
+ <0x0 0x0114000 0x0 0x100>;
+ reg-names = "cfg", "ctrl_mmr_lp4";
+ power-domains = <&k3_pds 47 TI_SCI_PD_SHARED>,
+ <&k3_pds 90 TI_SCI_PD_SHARED>;
+ interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x00 0x0000 0x00 0x02990000 0x00 0x4000>;
+ ti,ddr-freq1 = <0>;
+ ti,ddr-freq2 = <0>;
+ ti,ddr-fhs-cnt = <0>;
+ clocks = <&k3_clks 47 2>, <&k3_clks 30 9>;
+ bootph-pre-ram;
+
+ ddr: ddr@0 {
+ compatible = "cdns,k3-ddr";
+ reg = <0x00 0x0000 0x00 0x72c>,
+ <0x00 0x2000 0x00 0x4b0>,
+ <0x00 0x4000 0x00 0x163c>;
+ reg-names = "ctl_cfg", "ctl_cfg_pi", "ctl_cfg_phy";
+ bootph-pre-ram;
+ };
+
+ ddr_pmu0: ddr-pmu@100 {
+ compatible = "ti,k3-ddr-pmu";
+ reg = <0x00 0x100 0x00 0x14>;
+ };
+ };
+ };
--
2.34.1
next prev parent reply other threads:[~2026-07-14 12:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 12:55 [RFC PATCH 01/22] dt-bindings: memory: cdns,k3-ddr: Add Cadence K3 DDR controller binding MANNURU VENKATESWARLU
2026-07-14 12:55 ` MANNURU VENKATESWARLU [this message]
2026-07-14 12:55 ` [RFC PATCH 03/22] dt-bindings: memory: ti,j721s2-msmc: Add TI K3 MSMC binding MANNURU VENKATESWARLU
2026-07-15 4:57 ` Krzysztof Kozlowski
2026-07-15 8:34 ` MANNURU VENKATESWARLU
2026-07-15 4:55 ` [RFC PATCH 01/22] dt-bindings: memory: cdns,k3-ddr: Add Cadence K3 DDR controller binding Krzysztof Kozlowski
2026-07-15 9:03 ` MANNURU VENKATESWARLU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260714125537.3304217-2-v-mannuru@ti.com \
--to=v-mannuru@ti.com \
--cc=bb@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=n-francis@ti.com \
--cc=robh@kernel.org \
--cc=s-k6@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox