fix some binding check errors for marvell
Subsystems (4)
cover fix some binding check errors for marvell
From: Frank Wunderlich <[email protected]>
Thies series fixes some Errors reported by dtbs_check. First part is taken from my old series [1] where i converted sata-platform txt binding to yaml because it wasn't picked up.
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
Frank Wunderlich (3):
arm64: dts: marvell: Fix anyOf conditional failed
arm64: dts: marvell: drop additional phy-names for sata
dt-bindings: ata: ahci-platform: add missing iommus property
Documentation/devicetree/bindings/ata/ahci-platform.yaml | 3 +++ arch/arm64/boot/dts/marvell/armada-7040-db.dts | 1 + arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts | 2 ++ arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 1 + arch/arm64/boot/dts/marvell/armada-8040-db.dts | 5 +++-- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi | 3 +-- arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts | 2 ++ arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 2 ++ arch/arm64/boot/dts/marvell/cn9130-crb-B.dts | 1 + arch/arm64/boot/dts/marvell/cn9131-db.dtsi | 1 + arch/arm64/boot/dts/marvell/cn9132-db.dtsi | 1 + 11 files changed, 18 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/3 arm64: dts: marvell: Fix anyOf conditional failed
From: Frank Wunderlich <[email protected]>
after converting the ahci-platform binding to yaml the following files reporting "'anyOf' conditional failed" on
sata@540000: sata-port@0
armada-7040-db.dtsarmada-8040-clearfog-gt-8k.dtsarmada-8040-mcbin.dtsarmada-8040-mcbin-singleshot.dtscn9130-db.dtscn9130-db-B.dtscn9131-db.dtscn9131-db-B.dtscn9132-db.dtscn9132-db-B.dts
the following files reporting 'anyOf' conditional failed on
sata@540000: sata-port@1
cn9132-db.dtscn9132-db-B.dtscn9130-crb-B.dts
'phys' is a required property
'target-supply' is a required property
From schema: Documentation/devicetree/bindings/ata/ahci-platform.yaml
This is caused by defining sata-ports incomplete in armada-cp11x.dtsi and overriding only a subset of ports with the needed phys/target-supply property.
Fix this by disabling the node-templates and enabling the needed nodes.
---
v7:
- rebase on mvebu/dt64
- drop fixes tag
i only try to fix binding-check errors.
as i cannot test it on hardware, please verify my changes are correct
there are still some there, but they should be fixed by someone having the hardware.
v5: add fixes-tag
the dtsi uses a macro for the node-label defined in armada-common.dtsi
CP11X_LABEL(sata0): sata@540000 {
so i hope i catched all right nodes to be enabled... have enabled all cpX_sata0 sata-portY childs
--- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 1 + arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts | 2 ++ arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts | 1 + arch/arm64/boot/dts/marvell/armada-8040-db.dts | 3 +++ arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi | 1 + arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts | 2 ++ arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 2 ++ arch/arm64/boot/dts/marvell/cn9130-crb-B.dts | 1 + arch/arm64/boot/dts/marvell/cn9131-db.dtsi | 1 + arch/arm64/boot/dts/marvell/cn9132-db.dtsi | 1 + 10 files changed, 15 insertions(+)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +1 -0
@@ -214,6 +214,7 @@ &cp0_sata0 { sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +2 -0
@@ -433,11 +433,13 @@ &cp0_sata0 { /* 7 + 12 SATA connector (J24) */ sata-port@0 { phys = <&cp0_comphy2 0>; + status = "okay"; }; /* M.2-2250 B-key (J39) */ sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dts +1 -0
@@ -475,6 +475,7 @@ &cp1_sata0 { sata-port@1 { phys = <&cp1_comphy0 1>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/armada-8040-db.dts +3 -0
@@ -145,9 +145,12 @@ &cp0_sata0 { sata-port@0 { phys = <&cp0_comphy1 0>; + status = "okay"; }; + sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +1 -0
@@ -245,6 +245,7 @@ &cp0_sata0 { /* CPM Lane 5 - U29 */ sata-port@1 { phys = <&cp0_comphy5 1>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts +2 -0
@@ -408,10 +408,12 @@ &cp0_sata0 { sata-port@0 { phys = <&cp0_comphy2 0>; + status = "okay"; }; sata-port@1 { phys = <&cp0_comphy5 1>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +2 -0
@@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 { sata-port@0 { reg = <0>; + status = "disabled"; }; sata-port@1 { reg = <1>; + status = "disabled"; }; };
arch/arm64/boot/dts/marvell/cn9130-crb-B.dts +1 -0
@@ -28,6 +28,7 @@ sata-port@0 { status = "okay"; /* Generic PHY, providing serdes lanes */ phys = <&cp0_comphy2 0>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/cn9131-db.dtsi +1 -0
@@ -127,6 +127,7 @@ &cp1_sata0 { sata-port@1 { /* Generic PHY, providing serdes lanes */ phys = <&cp1_comphy5 1>; + status = "okay"; }; };
arch/arm64/boot/dts/marvell/cn9132-db.dtsi +1 -0
@@ -175,6 +175,7 @@ &cp2_sata0 { sata-port@0 { /* Generic PHY, providing serdes lanes */ phys = <&cp2_comphy2 0>; + status = "okay"; }; };
Signature · 1 line
2.43.0
Andrew Lunn
maintainerRe: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
Quoted 41 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
after converting the ahci-platform binding to yaml the following files reporting "'anyOf' conditional failed" on
sata@540000: sata-port@0
arch/arm64/boot/dts/marvell/armada-7040-db.dts +1
-0@@ -214,6 +214,7 @@ &cp0_sata0 { sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +2
-0@@ -433,11 +433,13 @@ &cp0_sata0 { /* 7 + 12 SATA connector (J24) */ sata-port@0 { phys = <&cp0_comphy2 0>; + status = "okay"; }; /* M.2-2250 B-key (J39) */ sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +0
-0
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi CP11X_LABEL(sata0): sata@540000 { · line 351
Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +1
-0@@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 { sata-port@0 { reg = <0>; + status = "disabled"; };
I don't know the yaml too well, but it is not obvious how adding a few status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
Maybe you can expand the explanation a bit?
Andrew
Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
Quoted 51 lines · Frank Wunderlich
Quoted 41 lines
From: Frank Wunderlich <[email protected]>
after converting the ahci-platform binding to yaml the following files reporting "'anyOf' conditional failed" on
sata@540000: sata-port@0
arch/arm64/boot/dts/marvell/armada-7040-db.dts +1
-0@@ -214,6 +214,7 @@ &cp0_sata0 { sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +2
-0@@ -433,11 +433,13 @@ &cp0_sata0 { /* 7 + 12 SATA connector (J24) */ sata-port@0 { phys = <&cp0_comphy2 0>; + status = "okay"; }; /* M.2-2250 B-key (J39) */ sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +0
-0arch/arm64/boot/dts/marvell/armada-cp11x.dtsi CP11X_LABEL(sata0): sata@540000 { · line 351
Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +1
-0@@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 { sata-port@0 { reg = <0>; + status = "disabled"; };I don't know the yaml too well, but it is not obvious how adding a few status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
Quoted 3 lines
Maybe you can expand the explanation a bit?
Andrew
Hi angelo,
I guess the dtbs_check only checks required properties from yaml if the node is enabled.
As you know, phys that can supply different types (sata,usb,pcie,*gmii,...),but only one mode can be used per phy. So only one controller can be used with it,the other(s) can not. I do not know marvell,but there are similar in mediatek (xsphy) and rockchip (combphy).
From my PoV it makes sense to check only enabled nodes for required properties,but i do not know internals of dtbs_check. This patch is 2 years old and i only rebased it and run dtbs check with the others to have a clean result...i can test again without this one to check if anyOf is shown again.
regards Frank
Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
> Gesendet: Sonntag, 10. November 2024 um 10:25
> Von: "Frank Wunderlich" <[email protected]>
> Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
> >On Sat, Nov 09, 2024 at 10:46:19AM +0100, Frank Wunderlich wrote:
> >> From: Frank Wunderlich <[email protected]>
> >>
> >> after converting the ahci-platform binding to yaml the following files
> >> reporting "'anyOf' conditional failed" on
> >>
> >> sata@540000: sata-port@0
...
> >
> >I don't know the yaml too well, but it is not obvious how adding a few
> >status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
> >
> >Maybe you can expand the explanation a bit?
> >
> > Andrew
>
> Hi angelo,
>
> I guess the dtbs_check only checks required properties from yaml if the node is enabled.
>
> As you know, phys that can supply different types (sata,usb,pcie,*gmii,...),but only one mode can be used per phy. So only one controller can be used with it,the other(s) can not. I do not know marvell,but there are similar in mediatek (xsphy) and rockchip (combphy). >
> From my PoV it makes sense to check only enabled nodes for required properties,but i do not know internals of dtbs_check. This patch is 2 years old and i only rebased it and run dtbs check with the others to have a clean result...i can test again without this one to check if anyOf is shown again. >
> regards Frank
Hi
issue is still there and patch is still needed...without it i get these messages:
$ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/ata/ahci-platform.yaml UPD include/config/kernel.release DTC [C] arch/arm64/boot/dts/marvell/armada-7040-db.dtb arch/arm64/boot/dts/marvell/armada-7040-db.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/armada-7040-mochabin.dtb DTC [C] arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dtb arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/armada-8040-db.dtb DTC [C] arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtb arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dtb arch/arm64/boot/dts/marvell/armada-8040-mcbin-singleshot.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dtb DTC [C] arch/arm64/boot/dts/marvell/cn9130-db.dtb arch/arm64/boot/dts/marvell/cn9130-db.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9130-db-B.dtb arch/arm64/boot/dts/marvell/cn9130-db-B.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9131-db.dtb arch/arm64/boot/dts/marvell/cn9131-db.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# /media/data_ext/git/kernel/BPI-R2-4.14/arch/arm64/boot/dts/marvell/cn9131-db.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9131-db-B.dtb arch/arm64/boot/dts/marvell/cn9131-db-B.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# arch/arm64/boot/dts/marvell/cn9131-db-B.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9132-db.dtb arch/arm64/boot/dts/marvell/cn9132-db.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# arch/arm64/boot/dts/marvell/cn9132-db.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# arch/arm64/boot/dts/marvell/cn9132-db.dtb: sata@540000: sata-port@1: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9132-db-B.dtb arch/arm64/boot/dts/marvell/cn9132-db-B.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# arch/arm64/boot/dts/marvell/cn9132-db-B.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# arch/arm64/boot/dts/marvell/cn9132-db-B.dtb: sata@540000: sata-port@1: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9130-crb-A.dtb DTC [C] arch/arm64/boot/dts/marvell/cn9130-crb-B.dtb arch/arm64/boot/dts/marvell/cn9130-crb-B.dtb: sata@540000: sata-port@1: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/ac5x-rd-carrier-cn9131.dtb arch/arm64/boot/dts/marvell/ac5x-rd-carrier-cn9131.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# arch/arm64/boot/dts/marvell/ac5x-rd-carrier-cn9131.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9130-cf-base.dtb arch/arm64/boot/dts/marvell/cn9130-cf-base.dtb: sata@540000: sata-port@1: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9130-cf-pro.dtb arch/arm64/boot/dts/marvell/cn9130-cf-pro.dtb: sata@540000: sata-port@1: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dtb arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dtb: sata@540000: sata-port@0: 'anyOf' conditional failed, one must be fixed: 'phys' is a required property 'target-supply' is a required property from schema $id: http://devicetree.org/schemas/ata/ahci-platform.yaml# DTC [C] arch/arm64/boot/dts/marvell/cn9132-clearfog.dtb
that imho confirms my guess that only enabled nodes are checked and without the disabled this node is always enabled and by disabling the SoC-node and enabling at board-level let the others (here printed) disabled and so not need the required properties.
i can try to add short description about it, something like this:
The dtbs-check only checks enabled nodes and there required nodes must be present. Nodes are enabled by default (current state for sata@540000 node), but some boards seem to use the phy somewhere else or just not want to use the sata contoller and so miss the required properties 'phys' and 'target-supply'. So disable the sata@540000 node at SoC level and enable it where it is filled with required properties.
maybe adding this phrase to commit is enough?
regards Frank</[email protected]></[email protected]></[email protected]>
Rob Herring
maintainerRe: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
In reply to Frank WunderlichQuoted 53 lines · Frank Wunderlich
Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
Quoted 51 lines · Frank Wunderlich
Quoted 41 lines
From: Frank Wunderlich <[email protected]>
after converting the ahci-platform binding to yaml the following files reporting "'anyOf' conditional failed" on
sata@540000: sata-port@0
arch/arm64/boot/dts/marvell/armada-7040-db.dts +1
-0@@ -214,6 +214,7 @@ &cp0_sata0 { sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +2
-0@@ -433,11 +433,13 @@ &cp0_sata0 { /* 7 + 12 SATA connector (J24) */ sata-port@0 { phys = <&cp0_comphy2 0>; + status = "okay"; }; /* M.2-2250 B-key (J39) */ sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +0
-0arch/arm64/boot/dts/marvell/armada-cp11x.dtsi CP11X_LABEL(sata0): sata@540000 { · line 351
Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +1
-0@@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 { sata-port@0 { reg = <0>; + status = "disabled"; };I don't know the yaml too well, but it is not obvious how adding a few status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
Quoted 7 lines
Quoted 3 lines
Maybe you can expand the explanation a bit?
Andrew
Hi angelo,
I guess the
dtbs_checkonly checks required properties from yaml if the node is enabled.
Yes, that is exactly how it works.
Rob
Andrew Lunn
maintainerRe: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
Quoted 57 lines · Rob Herring
Quoted 55 lines · Frank Wunderlich
Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
Quoted 53 lines · Frank Wunderlich
Quoted 41 lines
From: Frank Wunderlich <[email protected]>
after converting the ahci-platform binding to yaml the following files reporting "'anyOf' conditional failed" on
sata@540000: sata-port@0
arch/arm64/boot/dts/marvell/armada-7040-db.dts +1
-0@@ -214,6 +214,7 @@ &cp0_sata0 { sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +2
-0@@ -433,11 +433,13 @@ &cp0_sata0 { /* 7 + 12 SATA connector (J24) */ sata-port@0 { phys = <&cp0_comphy2 0>; + status = "okay"; }; /* M.2-2250 B-key (J39) */ sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +0
-0arch/arm64/boot/dts/marvell/armada-cp11x.dtsi CP11X_LABEL(sata0): sata@540000 { · line 351
Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +1
-0@@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 { sata-port@0 { reg = <0>; + status = "disabled"; };I don't know the yaml too well, but it is not obvious how adding a few status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
Maybe you can expand the explanation a bit?
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Andrew
Hi angelo,
I guess the
dtbs_checkonly checks required properties from yaml if the node is enabled.Yes, that is exactly how it works.
So from this, can i imply that phys is a required property?
Looking at the above patch, it appears that for armada-*.dts, sata-port@0 always uses phys = <&cp0_comphy2 0> and sata-port@1 uses phys = <&cp0_comphy3 1>. Is this an actual SoC property? Could it be moved up into the .dtsi file? Or is it really a board property?
Andrew
Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
> Gesendet: Montag, 11. November 2024 um 18:15
> Von: "Andrew Lunn" <[email protected]>
> An: "Rob Herring" <[email protected]>
> CC: [email protected], "Frank Wunderlich" <[email protected]>, "Damien Le Moal" <[email protected]>, "Niklas Cassel" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Conor Dooley" <[email protected]>, "Gregory Clement" <[email protected]>, "Sebastian Hesselbarth" <[email protected]>, "Russell King" <[email protected]>, "Hans de Goede" <[email protected]>, "Jens Axboe" <[email protected]>, [email protected], [email protected], [email protected], [email protected] > Betreff: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
>
> On Mon, Nov 11, 2024 at 10:25:12AM -0600, Rob Herring wrote:
> > On Sun, Nov 10, 2024 at 3:25 AM Frank Wunderlich
> > <[email protected]> wrote:
> > >
> > > Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
> > > >On Sat, Nov 09, 2024 at 10:46:19AM +0100, Frank Wunderlich wrote:
> > > >> From: Frank Wunderlich <[email protected]>
> > > >>
> > > >> after converting the ahci-platform binding to yaml the following files
> > > >> reporting "'anyOf' conditional failed" on
> > > >>
> > > >> sata@540000: sata-port@0
> > > >> diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
> > > >> index 1e0ab35cc686..2b5e45d2c5a6 100644
> > > >> --- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts
> > > >> +++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
> > > >> @@ -214,6 +214,7 @@ &cp0_sata0 {
> > > >>
> > > >> sata-port@1 {
> > > >> phys = <&cp0_comphy3 1>;
> > > >> + status = "okay";
> > > >> };
> > > >> };
> > > >
> > > >>
> > > >> diff --git a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
> > > >> index 7af949092b91..6bdc4f1e6939 100644
> > > >> --- a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
> > > >> +++ b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
> > > >> @@ -433,11 +433,13 @@ &cp0_sata0 {
> > > >> /* 7 + 12 SATA connector (J24) */
> > > >> sata-port@0 {
> > > >> phys = <&cp0_comphy2 0>;
> > > >> + status = "okay";
> > > >> };
> > > >>
> > > >> /* M.2-2250 B-key (J39) */
> > > >> sata-port@1 {
> > > >> phys = <&cp0_comphy3 1>;
> > > >> + status = "okay";
> > > >> };
> > > >> };
> > > >> diff --git a/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
> > > >> index 7e595ac80043..161beec0b6b0 100644
> > > >> --- a/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
> > > >> +++ b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
> > > >> @@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 {
> > > >>
> > > >> sata-port@0 {
> > > >> reg = <0>;
> > > >> + status = "disabled";
> > > >> };
> > > >
> > > >I don't know the yaml too well, but it is not obvious how adding a few
> > > >status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
> > > >
> > > >Maybe you can expand the explanation a bit?
> > > >
> > > > Andrew
> > >
> > > Hi angelo,
> > >
> > > I guess the dtbs_check only checks required properties from yaml if the node is enabled.
> >
> > Yes, that is exactly how it works.
>
> So from this, can i imply that phys is a required property?
>
> Looking at the above patch, it appears that for armada-*.dts,
> sata-port@0 always uses phys = <&cp0_comphy2 0> and sata-port@1 uses
> phys = <&cp0_comphy3 1>. Is this an actual SoC property? Could it be
> moved up into the .dtsi file? Or is it really a board property?
as i said the phy may operate in different modes (not know marvell here, but on other vendors phys are defined at board level), maybe the boards where the phy is missing the phy is used in another mode. Without knowing the SoC and boards disable it at SoC-level and enable only the nodes containing a phys property is all i can do here to fix the issue. Imho it is always a good idea to enable only the conrollers a board will use.
> Andrew
> </[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]>
Rob Herring
maintainerRe: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
In reply to Andrew LunnQuoted 64 lines · Andrew Lunn
Quoted 63 lines · Rob Herring
Quoted 60 lines · Frank Wunderlich
Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
Quoted 51 lines · Frank Wunderlich
Quoted 41 lines
From: Frank Wunderlich <[email protected]>
after converting the ahci-platform binding to yaml the following files reporting "'anyOf' conditional failed" on
sata@540000: sata-port@0
arch/arm64/boot/dts/marvell/armada-7040-db.dts +1
-0@@ -214,6 +214,7 @@ &cp0_sata0 { sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts +2
-0@@ -433,11 +433,13 @@ &cp0_sata0 { /* 7 + 12 SATA connector (J24) */ sata-port@0 { phys = <&cp0_comphy2 0>; + status = "okay"; }; /* M.2-2250 B-key (J39) */ sata-port@1 { phys = <&cp0_comphy3 1>; + status = "okay"; }; };arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +0
-0arch/arm64/boot/dts/marvell/armada-cp11x.dtsi CP11X_LABEL(sata0): sata@540000 { · line 351
Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +1
-0@@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 { sata-port@0 { reg = <0>; + status = "disabled"; };I don't know the yaml too well, but it is not obvious how adding a few status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
Quoted 3 lines
Maybe you can expand the explanation a bit?
Andrew
Hi angelo,
I guess the
dtbs_checkonly checks required properties from yaml if the node is enabled.
Quoted 8 lines
Quoted 1 line
Yes, that is exactly how it works.
So from this, can i imply that phys is a required property?
Looking at the above patch, it appears that for armada-*.dts, sata-port@0 always uses phys = <
&cp0_comphy20> and sata-port@1 uses phys = <&cp0_comphy31>. Is this an actual SoC property? Could it be moved up into the .dtsi file? Or is it really a board property?
Depends if the phy connection/assignment is really fixed or all boards so far just happen to use the same one. If it is fixed and it's just a matter of only one user can be active at a time, then yes, moving to the SoC dtsi makes sense. The connection in the h/w is there, enabled or not. Also, then the board is only dealing with "status" like many of the blocks.
Rob
Niklas Cassel
maintainerRe: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
In reply to Rob HerringQuoted 8 lines · Rob Herring
Quoted 8 lines
Quoted 7 lines
I don't know the yaml too well, but it is not obvious how adding a few status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
Maybe you can expand the explanation a bit?
Andrew
Quoted 7 lines
Quoted 3 lines
Hi angelo,
I guess the
dtbs_checkonly checks required properties from yaml if the node is enabled.Yes, that is exactly how it works.
Rob
Hello Rob,
If we look at e.g. this binding:Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml
We can see that it does not define iommu-map in the binding, likewise the binding does have:
unevaluatedProperties: false
If I apply my patch that adds iommu-map for e.g. the pcie2x1l0 node:
(the patch does not add anything to the binding above):
https://lore.kernel.org/linux-rockchip/[email protected]/
If look at the pcie2x1l0 node, it is marked as status = "disabled" in arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi
but is marked as status = "enabled"
in arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
If I run CHECK_DTBS for this dts/dtb:
$ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CHECK_DTBS=y rockchip/rk3588-rock-5b.dtb DTC [C] arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dtb $
No warnings.
What am I missing?
Considering the warning in this series where the binding also had unevaluatedProperties: false
I would have expected the same error for the pcie2x1l0 node.
(And if I look at most PCI controler bindings, they actually do define iommu-map, so it seems a requirement for it to be defined if used.)
Kind regards,
Niklas
Niklas Cassel
maintainerRe: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
Quoted 45 lines · Niklas Cassel
Quoted 8 lines · Rob Herring
Quoted 8 lines
Quoted 7 lines
I don't know the yaml too well, but it is not obvious how adding a few status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
Maybe you can expand the explanation a bit?
Andrew
Quoted 7 lines
Quoted 3 lines
Hi angelo,
I guess the
dtbs_checkonly checks required properties from yaml if the node is enabled.Yes, that is exactly how it works.
Rob
Hello Rob,
If we look at e.g. this binding:
Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yamlWe can see that it does not define iommu-map in the binding, likewise the binding does have:
unevaluatedProperties: falseIf I apply my patch that adds iommu-map for e.g. the pcie2x1l0 node:
(the patch does not add anything to the binding above):
https://lore.kernel.org/linux-rockchip/[email protected]/If look at the pcie2x1l0 node, it is marked as status = "disabled" in
arch/arm64/boot/dts/rockchip/rk3588-extra.dtsibut is marked as status = "enabled"
inarch/arm64/boot/dts/rockchip/rk3588-rock-5b.dtsIf I run
CHECK_DTBSfor this dts/dtb:$ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CHECK_DTBS=y rockchip/rk3588-rock-5b.dtb DTC [C] arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dtb $No warnings.
Quoted 9 lines
What am I missing?
Considering the warning in this series where the binding also had unevaluatedProperties: false
I would have expected the same error for the pcie2x1l0 node.(And if I look at most PCI controler bindings, they actually do define iommu-map, so it seems a requirement for it to be defined if used.)
Or perhaps the question should have been, if iommu-map is an exception, why isn't iommus also an exception?
Kind regards,
Niklas
Rob Herring
maintainerRe: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
In reply to Frank WunderlichQuoted 1 line · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
Thanks for reviving these.
Quoted 2 lines
after converting the ahci-platform binding to yaml the following files reporting "'anyOf' conditional failed" on
Here and the subject, "fixing anyOf" isn't very specific and is just an implementation detail of the schema. "Add missing required 'phys' property" would be more exact.
Rob
Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
> Gesendet: Montag, 11. November 2024 um 21:36
> Von: "Rob Herring" <[email protected]>
> An: "Frank Wunderlich" <[email protected]>
> CC: "Damien Le Moal" <[email protected]>, "Niklas Cassel" <[email protected]>, "Krzysztof Kozlowski" <[email protected]>, "Conor Dooley" <[email protected]>, "Andrew Lunn" <[email protected]>, "Gregory Clement" <[email protected]>, "Sebastian Hesselbarth" <[email protected]>, "Russell King" <[email protected]>, "Frank Wunderlich" <[email protected]>, "Hans de Goede" <[email protected]>, "Jens Axboe" <[email protected]>, [email protected], [email protected], [email protected], [email protected] > Betreff: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
>
> On Sat, Nov 09, 2024 at 10:46:19AM +0100, Frank Wunderlich wrote:
> > From: Frank Wunderlich <[email protected]>
>
> Thanks for reviving these.
>
> > after converting the ahci-platform binding to yaml the following files
> > reporting "'anyOf' conditional failed" on
>
> Here and the subject, "fixing anyOf" isn't very specific and is just an
> implementation detail of the schema. "Add missing required 'phys'
> property" would be more exact.
imho it does not match what patch does...i do not add required phys...i just disable the nodes and enable them only where phys is set.
> Rob
> </[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]></[email protected]>
Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
In reply to Rob HerringHi,
just a gentle ping to have it finally merged
regards Frank
Aw: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
is there any new state here? got no answer for my last 2 Messages
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
sorry for the html-entities...they came from my gmx webmailer, it is reported multiple times, but i cannot do more here :(
regards Frank
Quoted 8 lines
Gesendet: Montag, 2. Dezember 2024 um 12:19
Betreff: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failedHi,
just a gentle ping to have it finally merged
regards Frank
Niklas Cassel
maintainerRe: Aw: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
Quoted 6 lines · Frank Wunderlich
is there any new state here? got no answer for my last 2 Messages
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
sorry for the html-entities...they came from my gmx webmailer, it is reported multiple times, but i cannot do more here :(
Since this is a marvell change, I expect it to go via marvell / mvebu tree.
Kind regards,
Niklas
Rob Herring
maintainerRe: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
In reply to Frank WunderlichQuoted 6 lines · Frank Wunderlich
is there any new state here? got no answer for my last 2 Messages
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
sorry for the html-entities...they came from my gmx webmailer, it is reported multiple times, but i cannot do more here :(
As a maintainer, when I see any discussion or comments, I drop the patch from my queue. That may have happened here. It is best to resend if it's been more than 2 weeks. Though Marvell maintainer response times are often longer than that sadly.
You haven't addressed my comment either. The subject needs work. If you don't like my suggestion, then come up with your own.
Rob
Re: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
Am 2. Januar 2025 20:46:05 MEZ schrieb Rob Herring <[email protected]>:
Quoted 9 lines
Quoted 6 lines · Frank Wunderlich
is there any new state here? got no answer for my last 2 Messages
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
sorry for the html-entities...they came from my gmx webmailer, it is reported multiple times, but i cannot do more here :(
Quoted 7 lines
As a maintainer, when I see any discussion or comments, I drop the patch from my queue. That may have happened here. It is best to resend if it's been more than 2 weeks. Though Marvell maintainer response times are often longer than that sadly.
You haven't addressed my comment either. The subject needs work. If you don't like my suggestion, then come up with your own.
I have addressed your comment:
Quoted 4 lines
Quoted 3 lines
Here and the subject, "fixing anyOf" isn't very specific and is just an implementation detail of the schema. "Add missing required 'phys' property" would be more exact.
imho it does not match what patch does...i do not add required phys...i just disable the nodes and enable them only where phys is set.
But maybe i can name it better.
Maybe something like this:
"Fix binding error caused by incomplete nodes."
Quoted 1 line
Rob
regards Frank
Gregory CLEMENT
maintainerRe: Aw: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
In reply to Frank WunderlichHello Frank,
Quoted 1 line
is there any new state here? got no answer for my last 2 Messages
Actually I waited for a new version following the review and I didn't saw it. Maybe I missed it.
Grégory
Quoted 16 lines
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
sorry for the html-entities...they came from my gmx webmailer, it is reported multiple times, but i cannot do more here :(
regards Frank
Quoted 8 lines
Gesendet: Montag, 2. Dezember 2024 um 12:19
Betreff: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failedHi,
just a gentle ping to have it finally merged
regards Frank
Signature · 3 lines
Grégory CLEMENT, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: Aw: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
Am 6. Januar 2025 16:28:57 MEZ schrieb Gregory CLEMENT <[email protected]>:
Quoted 6 lines
Hello Frank,
Quoted 1 line
is there any new state here? got no answer for my last 2 Messages
Actually I waited for a new version following the review and I didn't saw it. Maybe I missed it.
No,sent v2 last days as the suggestion from rob was imho not matching what the patch does (i do not add phys property). So i wrote back, but there it hangs.
I hope new title is better.
<https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/>
Anyone with marvell boards have tested it?
Quoted 1 line
Grégory
regards Frank
PATCH 2/3 arm64: dts: marvell: drop additional phy-names for sata
In reply to Frank WunderlichFrom: Frank Wunderlich <[email protected]>
Commit facbe7092f8a ("arm64: dts: marvell: Drop undocumented SATA phy names") drops some phy-names from devicetrees but misses some. Drop them too.
--- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 2 -- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi | 2 -- 2 files changed, 4 deletions(-)
arch/arm64/boot/dts/marvell/armada-8040-db.dts +0 -2
@@ -307,11 +307,9 @@ &cp1_sata0 { sata-port@0 { phys = <&cp1_comphy1 0>; - phy-names = "cp1-sata0-0-phy"; }; sata-port@1 { phys = <&cp1_comphy3 1>; - phy-names = "cp1-sata0-1-phy"; }; };
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +0 -2
@@ -345,13 +345,11 @@ &cp1_sata0 { /* CPS Lane 1 - U32 */ sata-port@0 { phys = <&cp1_comphy1 0>; - phy-names = "cp1-sata0-0-phy"; }; /* CPS Lane 3 - U31 */ sata-port@1 { phys = <&cp1_comphy3 1>; - phy-names = "cp1-sata0-1-phy"; }; };
Signature · 1 line
2.43.0
Re: [PATCH v1 2/3] arm64: dts: marvell: drop additional phy-names for sata
Quoted 6 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
Commit
facbe7092f8a("arm64: dts: marvell: Drop undocumented SATA phy names") drops some phy-names from devicetrees but misses some. Drop them too.Signed-off-by Frank Wunderlich <[email protected]>
Andrew
Damien Le Moal
maintainerRe: [PATCH v1 2/3] arm64: dts: marvell: drop additional phy-names for sata
In reply to Frank WunderlichQuoted 3 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
Commit
facbe7092f8a("arm64: dts: marvell: Drop undocumented SATA phy names")
Isn't a Fixes tag for the above commit desired here ?
Quoted 42 lines
drops some phy-names from devicetrees but misses some. Drop them too.
Signed-off-by Frank Wunderlich <[email protected]>--- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 2 -- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi | 2 -- 2 files changed, 4 deletions(-)arch/arm64/boot/dts/marvell/armada-8040-db.dts +0
-2@@ -307,11 +307,9 @@ &cp1_sata0 { sata-port@0 { phys = <&cp1_comphy1 0>; - phy-names = "cp1-sata0-0-phy"; }; sata-port@1 { phys = <&cp1_comphy3 1>; - phy-names = "cp1-sata0-1-phy"; }; };arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +0
-2@@ -345,13 +345,11 @@ &cp1_sata0 { /* CPS Lane 1 - U32 */ sata-port@0 { phys = <&cp1_comphy1 0>; - phy-names = "cp1-sata0-0-phy"; }; /* CPS Lane 3 - U31 */ sata-port@1 { phys = <&cp1_comphy3 1>; - phy-names = "cp1-sata0-1-phy"; }; };
Signature · 2 lines
Damien Le Moal Western Digital Research
Re: [PATCH v1 2/3] arm64: dts: marvell: drop additional phy-names for sata
Hi
Am 11. November 2024 01:05:48 MEZ schrieb Damien Le Moal <[email protected]>:
Quoted 6 lines · Frank Wunderlich
Quoted 3 lines
From: Frank Wunderlich <[email protected]>
Commit
facbe7092f8a("arm64: dts: marvell: Drop undocumented SATA phy names")Isn't a Fixes tag for the above commit desired here ?
I have not added one and deopped from first part because of this:
<https://lore.kernel.org/linux-arm-kernel/20220315024952.3we7hiwrkskb4tsy@vireshk-i7/>
Quoted 3 lines
Quoted 3 lines
drops some phy-names from devicetrees but misses some. Drop them too.
Signed-off-by Frank Wunderlich <[email protected]>
regards Frank
PATCH 3/3 dt-bindings: ata: ahci-platform: add missing iommus property
In reply to Frank WunderlichFrom: Frank Wunderlich <[email protected]>
fix dtbs_check errors in following files:
arch/arm64/boot/dts/marvell/armada-7040-db.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-db.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dtb: sata@540000:
Unevaluated properties are not allowed ('iommus' was unexpected)
---
iommus seems to be added with83a3545d9c37 ("arm64: dts: marvell: add SMMU support") which seems not be documented in txt before i converted the binding.
--- Documentation/devicetree/bindings/ata/ahci-platform.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/ata/ahci-platform.yaml +3 -0
@@ -84,6 +84,9 @@ properties: minItems: 1 maxItems: 3 + iommus: + maxItems: 1 + patternProperties: "^sata-port@[0-9a-f]+$": $ref: /schemas/ata/ahci-common.yaml#/$defs/ahci-port
Signature · 1 line
2.43.0
Re: [PATCH v1 3/3] dt-bindings: ata: ahci-platform: add missing iommus property
Quoted 4 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
fix
dtbs_checkerrors in following files:
Quoted 8 lines
arch/arm64/boot/dts/marvell/armada-7040-db.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-db.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dtb: sata@540000:
Unevaluated properties are not allowed ('iommus' was unexpected)Signed-off-by Frank Wunderlich <[email protected]>
Andrew
Re: [PATCH v1 3/3] dt-bindings: ata: ahci-platform: add missing iommus property
In reply to Frank WunderlichQuoted 4 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
fix
dtbs_checkerrors in following files:
Quoted 8 lines
arch/arm64/boot/dts/marvell/armada-7040-db.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-clearfog-gt-8k.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-db.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtb: sata@540000:arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dtb: sata@540000:
Unevaluated properties are not allowed ('iommus' was unexpected)Signed-off-by Frank Wunderlich <[email protected]>
Re: (subset) [PATCH v1 0/3] fix some binding check errors for marvell
In reply to Frank WunderlichQuoted 9 lines · Frank Wunderlich
From: Frank Wunderlich <[email protected]>
Thies series fixes some Errors reported by
dtbs_check. First part is taken from my old series [1] where i converted sata-platform txt binding to yaml because it wasn't picked up.[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[...]
Applied to libata/linux.git (for-6.13), thanks!
[3/3] dt-bindings: ata: ahci-platform: add missing iommus property
https://git.kernel.org/libata/linux/c/e8a2389e
Assuming that patches 1/3 and 2/3 will go via the Marvell tree:git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu.git
Kind regards,
Niklas