From: Bhargav Joshi <j.bhargav.u@gmail.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Benoit Cousson <b-cousson@ti.com>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
goledhruva@gmail.com, m-chawdhry@ti.com,
daniel.baluta@gmail.com, simona.toaca@nxp.com,
j.bhargav.u@gmail.com
Subject: [PATCH] dt-bindings: arm: ti,omap-mpu: Convert to DT schema
Date: Tue, 18 Aug 2026 23:29:51 +0530 [thread overview]
Message-ID: <20260818-ti-mpu-v1-1-5b1c71a34669@gmail.com> (raw)
Convert TI OMAP Main Processor Unit MPU text to DT schema.
Changes from the original text binding during conversion:
- Mark ti,hwmods as deprecated, as it is longer needed.
- The pm-sram property name is kept as-is without a vendor prefix
ti,pm-sram to maintain backward compatibility with older device trees
and the existing pm33xx driver.
Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
---
Documentation/devicetree/bindings/arm/omap/mpu.txt | 54 --------------------
.../devicetree/bindings/arm/ti/ti,omap-mpu.yaml | 58 ++++++++++++++++++++++
2 files changed, 58 insertions(+), 54 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/omap/mpu.txt b/Documentation/devicetree/bindings/arm/omap/mpu.txt
deleted file mode 100644
index e41490e6979c..000000000000
--- a/Documentation/devicetree/bindings/arm/omap/mpu.txt
+++ /dev/null
@@ -1,54 +0,0 @@
-* TI - MPU (Main Processor Unit) subsystem
-
-The MPU subsystem contain one or several ARM cores
-depending of the version.
-The MPU contain CPUs, GIC, L2 cache and a local PRCM.
-
-Required properties:
-- compatible : Should be "ti,omap3-mpu" for OMAP3
- Should be "ti,omap4-mpu" for OMAP4
- Should be "ti,omap5-mpu" for OMAP5
-- ti,hwmods: "mpu"
-
-Optional properties:
-- sram: Phandle to the ocmcram node
-
-am335x and am437x only:
-- pm-sram: Phandles to ocmcram nodes to be used for power management.
- First should be type 'protect-exec' for the driver to use to copy
- and run PM functions, second should be regular pool to be used for
- data region for code. See Documentation/devicetree/bindings/sram/sram.yaml
- for more details.
-
-Examples:
-
-- For an OMAP5 SMP system:
-
-mpu {
- compatible = "ti,omap5-mpu";
- ti,hwmods = "mpu"
-};
-
-- For an OMAP4 SMP system:
-
-mpu {
- compatible = "ti,omap4-mpu";
- ti,hwmods = "mpu";
-};
-
-
-- For an OMAP3 monocore system:
-
-mpu {
- compatible = "ti,omap3-mpu";
- ti,hwmods = "mpu";
-};
-
-- For an AM335x system:
-
-mpu {
- compatible = "ti,omap3-mpu";
- ti,hwmods = "mpu";
- pm-sram = <&pm_sram_code
- &pm_sram_data>;
-};
diff --git a/Documentation/devicetree/bindings/arm/ti/ti,omap-mpu.yaml b/Documentation/devicetree/bindings/arm/ti/ti,omap-mpu.yaml
new file mode 100644
index 000000000000..abd8c64e8e9f
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/ti/ti,omap-mpu.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/ti/ti,omap-mpu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI MPU (Main Processor Unit) subsystem
+
+maintainers:
+ - Benoit Cousson <b-cousson@ti.com>
+
+description:
+ The MPU subsystem contains one or several ARM cores depending on the version.
+ The MPU contains CPUs, GIC, L2 cache and a local PRCM.
+
+properties:
+ compatible:
+ enum:
+ - ti,omap3-mpu
+ - ti,omap4-mpu
+ - ti,omap5-mpu
+
+ ti,hwmods:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: Name of the hwmod associated with the MPU
+ const: mpu
+ deprecated: true
+
+ sram:
+ description: ocmcram node
+
+ pm-sram:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ description: ocmcram nodes for power management. For am335x and am437x.
+ items:
+ - items:
+ - description: ocmcram node of type protect-exec for PM functions
+ - items:
+ - description: ocmcram node of regular pool to be used for data region
+
+required:
+ - compatible
+
+additionalProperties: false
+
+examples:
+ - |
+ mpu {
+ compatible = "ti,omap5-mpu";
+ ti,hwmods = "mpu";
+ };
+
+ - |
+ mpu {
+ compatible = "ti,omap3-mpu";
+ ti,hwmods = "mpu";
+ pm-sram = <&pm_sram_code &pm_sram_data>;
+ };
---
base-commit: 0f23d56f17fdfc7db69d51f64c8b91bbab947aa9
change-id: 20260818-ti-mpu-22219dfde742
Best regards,
--
Bhargav
next reply other threads:[~2026-08-18 18:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 17:59 Bhargav Joshi [this message]
2026-08-18 18:09 ` [PATCH] dt-bindings: arm: ti,omap-mpu: Convert to DT schema sashiko-bot
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=20260818-ti-mpu-v1-1-5b1c71a34669@gmail.com \
--to=j.bhargav.u@gmail.com \
--cc=b-cousson@ti.com \
--cc=conor+dt@kernel.org \
--cc=daniel.baluta@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=goledhruva@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m-chawdhry@ti.com \
--cc=robh@kernel.org \
--cc=simona.toaca@nxp.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