dt-bindings: bus: omap-l3: Convert to DT schema
Subsystems (2)
v3 cover dt-bindings: bus: omap-l3: Convert to DT schema
This series converts the TI OMAP L3 binding from text to DT schema.
The text binding grouped OMAP3 (SMX IP) and OMAP4+ (Arteris NoC IP) together. split into two schemas because OMAP3 (SMX) and OMAP4+ (Arteris NoC) are different hardware IPs.
- patch 1 adds a missing unit address to the ABB regulator node in the OMAP36xx devicetree to fix a validation warning.
- patch 2 converts OMAP3 L3 SMX interconnect.
- patch 3 converts the OMAP4+ L3 NoC interconnect.
---
Changes in v3:
- Split bidning into two SMX and NOC variants.
- Fix reg maxItems to 2 for ti,dra7-l3-noc L3_MAIN_2 is a submodule of L3_MAIN_1.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Move binding to bindings/bus/
- Rebase to latest mainline rc
- Add unit address to regulator-abb-mpu node
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Bhargav Joshi (3):
ARM: dts: omap36xx: Add unit address to ABB regulator node
dt-bindings: bus: ti,omap3-l3-smx: Convert to DT schema
dt-bindings: bus: ti,omap-l3-noc: Convert to DT schema
.../devicetree/bindings/arm/omap/l3-noc.txt | 23 ------- .../devicetree/bindings/bus/ti,omap-l3-noc.yaml | 71 ++++++++++++++++++++++ .../devicetree/bindings/bus/ti,omap3-l3-smx.yaml | 68 +++++++++++++++++++++ arch/arm/boot/dts/ti/omap/omap36xx.dtsi | 2 +- 4 files changed, 140 insertions(+), 24 deletions(-)
---
base-commit: fa4ad798f6f681031775266044ba1b0cf3c670bd
change-id: 20261002-ti-l3-noc-28dfca81fdc5
Best regards,
Signature · 1 line
Bhargav
PATCH v3 1/3 ARM: dts: omap36xx: Add unit address to ABB regulator node
The ti,abb-v1 node abb_mpu_iva has a reg property but no unit address, which violates the devicetree rule that the unit address must match the first reg entry.
Add unit address to the ABB node in omap3.
--- arch/arm/boot/dts/ti/omap/omap36xx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/ti/omap/omap36xx.dtsi +1 -1
@@ -92,7 +92,7 @@ uart4: serial@49042000 { clock-frequency = <48000000>; }; - abb_mpu_iva: regulator-abb-mpu { + abb_mpu_iva: regulator-abb-mpu@483072f0 { compatible = "ti,abb-v1"; regulator-name = "abb_mpu_iva"; #address-cells = <0>;
Signature · 1 line
2.56.0
PATCH v3 2/3 dt-bindings: bus: ti,omap3-l3-smx: Convert to DT schema
In reply to Bhargav JoshiConvert TI OMAP3 L3 interconnect from text to DT schema. In text binding this was grouped with omap4+ L3 noc interconnect but since it uses different hardware IP (SMX). Add SMX variant in new schema.
--- .../devicetree/bindings/arm/omap/l3-noc.txt | 5 +- .../devicetree/bindings/bus/ti,omap3-l3-smx.yaml | 68 ++++++++++++++++++++++ 2 files changed, 70 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/arm/omap/l3-noc.txt +2 -3
@@ -4,10 +4,9 @@ This version is an implementation of the generic NoC IP provided by Arteris. Required properties: -- compatible : Should be "ti,omap3-l3-smx" for OMAP3 family - Should be "ti,omap4-l3-noc" for OMAP4 family +- compatible : Should be "ti,omap4-l3-noc" for OMAP4 family Should be "ti,omap5-l3-noc" for OMAP5 family - Should be "ti,dra7-l3-noc" for DRA7 family + Should be "ti,dra7-l3-noc" for DRA7 family Should be "ti,am4372-l3-noc" for AM43 family - reg: Contains L3 register address range for each noc domain. - ti,hwmods: "l3_main_1", ... One hwmod for each noc domain.
Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.56.0
[email protected]
AI reviewRe: [PATCH v3 2/3] dt-bindings: bus: ti,omap3-l3-smx: Convert to DT schema
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: bus: ti,omap3-l3-smx: non-canonical property order and example --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: bus: ti,omap3-l3-smx: non-canonical property order and example
--
commit 1d6cabb054788aa85ea27e9a6e910d618ff518a6
Author: Bhargav Joshi <[email protected]>
dt-bindings: bus: ti,omap3-l3-smx: Convert to DT schema
This commit splits the TI OMAP3 L3 SMX interconnect binding out of Documentation/devicetree/bindings/arm/omap/l3-noc.txt and converts it to a DT schema under Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml.
Quoted 5 lines
Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml new file +0
-0
[ ... ]
Quoted 43 lines
Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml new file +43
-0+properties: + compatible: + items: + - const: ti,omap3-l3-smx + - const: simple-bus + + reg: + maxItems: 1 + + interrupts: + items: + - description: l3-dbg-irq + - description: l3-app-irq + + ti,hwmods: + description: hwmod names for each domain. + $ref: /schemas/types.yaml#/definitions/string + const: l3_main + deprecated: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +patternProperties: + "^.*@[0-9a-f]+$": + type: object + +required: + - compatible + - reg + - interrupts + - "#address-cells" + - "#size-cells" + - ranges + +additionalProperties: false + +examples:
Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml line 68
Quoted 10 lines
Documentation/devicetree/bindings/bus/ti,omap3-l3-smx.yaml new file +10
-0+ - | + l3-noc@68000000 { + compatible = "ti,omap3-l3-smx", "simple-bus"; + reg = <0x68000000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + interrupts = <9>, <10>; + ti,hwmods = "l3_main"; + };
[Severity: Low]
Does the example pass scripts/dtc/dt-check-style --mode=strict?
Placing ranges after #address-cells and #size-cells in the example triggers a [property-order] warning from scripts/dtc/dt-check-style --mode=strict, as Documentation/devicetree/bindings/dts-coding-style.rst orders properties as compatible, reg, ranges, standard/common properties, and then vendor-specific properties. Per Documentation/devicetree/bindings/writing-schema.rst, the properties and required sections should follow this same order (moving ranges right after reg, and moving the vendor-specific ti,hwmods to the end of properties).
Also, in the example, should the node name be a generic name such as bus@68000000 (instead of l3-noc@68000000, which refers to the OMAP4+ Arteris NoC) and omit the deprecated ti,hwmods property?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
PATCH v3 3/3 dt-bindings: bus: ti,omap-l3-noc: Convert to DT schema
In reply to Bhargav JoshiConvert the TI OMAP L3 NoC binding from text to DT schema. Drop deprecated ti,hwmods as it is not used anymore.
--- .../devicetree/bindings/arm/omap/l3-noc.txt | 22 ------- .../devicetree/bindings/bus/ti,omap-l3-noc.yaml | 71 ++++++++++++++++++++++ 2 files changed, 71 insertions(+), 22 deletions(-)
Documentation/devicetree/bindings/arm/omap/l3-noc.txt deleted +0 -22
@@ -1,22 +0,0 @@ -* TI - L3 Network On Chip (NoC) - -This version is an implementation of the generic NoC IP -provided by Arteris. - -Required properties: -- compatible : Should be "ti,omap4-l3-noc" for OMAP4 family - Should be "ti,omap5-l3-noc" for OMAP5 family - Should be "ti,dra7-l3-noc" for DRA7 family - Should be "ti,am4372-l3-noc" for AM43 family -- reg: Contains L3 register address range for each noc domain. -- ti,hwmods: "l3_main_1", ... One hwmod for each noc domain. - -Examples: - -ocp { - compatible = "ti,omap4-l3-noc", "simple-bus"; - #address-cells = <1>; - #size-cells = <1>; - ranges; - ti,hwmods = "l3_main_1", "l3_main_2", "l3_main_3"; -};
Documentation/devicetree/bindings/bus/ti,omap-l3-noc.yaml new file +71 -0
71 lines not on this page · raw message
Signature · 1 line
2.56.0