Skip to contentSkip to conversation

fix some binding check errors for marvell

PATCH Applied Frank Wunderlich 8 participants 28 messages Nov 9, 2024 – Jan 6, 2025

Subsystems (4)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.dts
armada-8040-clearfog-gt-8k.dts
armada-8040-mcbin.dts
armada-8040-mcbin-singleshot.dts
cn9130-db.dts
cn9130-db-B.dts
cn9131-db.dts
cn9131-db-B.dts
cn9132-db.dts
cn9132-db-B.dts

the following files reporting 'anyOf' conditional failed on

sata@540000: sata-port@1

cn9132-db.dts
cn9132-db-B.dts
cn9130-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
index 1e0ab35cc686..2b5e45d2c5a6 100644
@@ -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
index 7af949092b91..6bdc4f1e6939 100644
@@ -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
index 7005a32a6e1e..225a54ab688d 100644
@@ -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
index 2ec19d364e62..fe5d6cb9d692 100644
@@ -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
index e88ff5b179c8..5043cf2eb33e 100644
@@ -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
index 3e5e0651ce68..9c25a88581e4 100644
@@ -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
index 7e595ac80043..161beec0b6b0 100644
@@ -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
index 0904cb0309ae..34194745f79e 100644
@@ -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
index ad7360c83048..626042fce7e2 100644
@@ -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
index e753cfdac697..f91fc69905b8 100644
@@ -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
maintainer
#2 lore raw

Re: [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
index 1e0ab35cc686..2b5e45d2c5a6 100644
@@ -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
index 7af949092b91..6bdc4f1e6939 100644
@@ -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
index 7e595ac80043..161beec0b6b0 100644

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

#3 lore raw

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
index 1e0ab35cc686..2b5e45d2c5a6 100644
@@ -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
index 7af949092b91..6bdc4f1e6939 100644
@@ -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
index 7e595ac80043..161beec0b6b0 100644

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".

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

#4 lore raw

Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

&gt; Gesendet: Sonntag, 10. November 2024 um 10:25
&gt; Von: "Frank Wunderlich" <[email protected]>
&gt; Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
&gt; &gt;On Sat, Nov 09, 2024 at 10:46:19AM +0100, Frank Wunderlich wrote:
&gt; &gt;&gt; From: Frank Wunderlich <[email protected]>
&gt; &gt;&gt;
&gt; &gt;&gt; after converting the ahci-platform binding to yaml the following files
&gt; &gt;&gt; reporting "'anyOf' conditional failed" on
&gt; &gt;&gt;
&gt; &gt;&gt; sata@540000: sata-port@0
...
&gt; &gt;
&gt; &gt;I don't know the yaml too well, but it is not obvious how adding a few
&gt; &gt;status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
&gt; &gt;
&gt; &gt;Maybe you can expand the explanation a bit?
&gt; &gt;
&gt; &gt; Andrew
&gt;
&gt; Hi angelo,
&gt;
&gt; I guess the dtbs_check only checks required properties from yaml if the node is enabled.
&gt;
&gt; 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). &gt;
&gt; 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. &gt;
&gt; 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]>

maintainer
#5 lore raw

Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

In reply to Frank Wunderlich
Quoted 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
index 1e0ab35cc686..2b5e45d2c5a6 100644
@@ -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
index 7af949092b91..6bdc4f1e6939 100644
@@ -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
index 7e595ac80043..161beec0b6b0 100644

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".

Quoted 7 lines
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.

Yes, that is exactly how it works.

Rob

maintainer
#6 lore raw

Re: [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
index 1e0ab35cc686..2b5e45d2c5a6 100644
@@ -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
index 7af949092b91..6bdc4f1e6939 100644
@@ -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
index 7e595ac80043..161beec0b6b0 100644

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?

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

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?

Andrew

#7 lore raw

Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

&gt; Gesendet: Montag, 11. November 2024 um 18:15
&gt; Von: "Andrew Lunn" <[email protected]>
&gt; An: "Rob Herring" <[email protected]>
&gt; 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] &gt; Betreff: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
&gt;
&gt; On Mon, Nov 11, 2024 at 10:25:12AM -0600, Rob Herring wrote:
&gt; &gt; On Sun, Nov 10, 2024 at 3:25 AM Frank Wunderlich
&gt; &gt; <[email protected]> wrote:
&gt; &gt; &gt;
&gt; &gt; &gt; Am 9. November 2024 18:29:44 MEZ schrieb Andrew Lunn <[email protected]>:
&gt; &gt; &gt; &gt;On Sat, Nov 09, 2024 at 10:46:19AM +0100, Frank Wunderlich wrote:
&gt; &gt; &gt; &gt;&gt; From: Frank Wunderlich <[email protected]>
&gt; &gt; &gt; &gt;&gt;
&gt; &gt; &gt; &gt;&gt; after converting the ahci-platform binding to yaml the following files
&gt; &gt; &gt; &gt;&gt; reporting "'anyOf' conditional failed" on
&gt; &gt; &gt; &gt;&gt;
&gt; &gt; &gt; &gt;&gt; sata@540000: sata-port@0
&gt; &gt; &gt; &gt;&gt; diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
&gt; &gt; &gt; &gt;&gt; index 1e0ab35cc686..2b5e45d2c5a6 100644
&gt; &gt; &gt; &gt;&gt; --- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts
&gt; &gt; &gt; &gt;&gt; +++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
&gt; &gt; &gt; &gt;&gt; @@ -214,6 +214,7 @@ &amp;cp0_sata0 {
&gt; &gt; &gt; &gt;&gt;
&gt; &gt; &gt; &gt;&gt; sata-port@1 {
&gt; &gt; &gt; &gt;&gt; phys = &lt;&amp;cp0_comphy3 1&gt;;
&gt; &gt; &gt; &gt;&gt; + status = "okay";
&gt; &gt; &gt; &gt;&gt; };
&gt; &gt; &gt; &gt;&gt; };
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;&gt;
&gt; &gt; &gt; &gt;&gt; diff --git a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
&gt; &gt; &gt; &gt;&gt; index 7af949092b91..6bdc4f1e6939 100644
&gt; &gt; &gt; &gt;&gt; --- a/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
&gt; &gt; &gt; &gt;&gt; +++ b/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts
&gt; &gt; &gt; &gt;&gt; @@ -433,11 +433,13 @@ &amp;cp0_sata0 {
&gt; &gt; &gt; &gt;&gt; /* 7 + 12 SATA connector (J24) */
&gt; &gt; &gt; &gt;&gt; sata-port@0 {
&gt; &gt; &gt; &gt;&gt; phys = &lt;&amp;cp0_comphy2 0&gt;;
&gt; &gt; &gt; &gt;&gt; + status = "okay";
&gt; &gt; &gt; &gt;&gt; };
&gt; &gt; &gt; &gt;&gt;
&gt; &gt; &gt; &gt;&gt; /* M.2-2250 B-key (J39) */
&gt; &gt; &gt; &gt;&gt; sata-port@1 {
&gt; &gt; &gt; &gt;&gt; phys = &lt;&amp;cp0_comphy3 1&gt;;
&gt; &gt; &gt; &gt;&gt; + status = "okay";
&gt; &gt; &gt; &gt;&gt; };
&gt; &gt; &gt; &gt;&gt; };
&gt; &gt; &gt; &gt;&gt; diff --git a/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
&gt; &gt; &gt; &gt;&gt; index 7e595ac80043..161beec0b6b0 100644
&gt; &gt; &gt; &gt;&gt; --- a/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
&gt; &gt; &gt; &gt;&gt; +++ b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
&gt; &gt; &gt; &gt;&gt; @@ -347,10 +347,12 @@ CP11X_LABEL(sata0): sata@540000 {
&gt; &gt; &gt; &gt;&gt;
&gt; &gt; &gt; &gt;&gt; sata-port@0 {
&gt; &gt; &gt; &gt;&gt; reg = &lt;0&gt;;
&gt; &gt; &gt; &gt;&gt; + status = "disabled";
&gt; &gt; &gt; &gt;&gt; };
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;I don't know the yaml too well, but it is not obvious how adding a few
&gt; &gt; &gt; &gt;status = "disabled"; status = "okay"; fixes a "'anyOf' conditional failed".
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;Maybe you can expand the explanation a bit?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Andrew
&gt; &gt; &gt;
&gt; &gt; &gt; Hi angelo,
&gt; &gt; &gt;
&gt; &gt; &gt; I guess the dtbs_check only checks required properties from yaml if the node is enabled.
&gt; &gt;
&gt; &gt; Yes, that is exactly how it works.
&gt;
&gt; So from this, can i imply that phys is a required property?
&gt;
&gt; Looking at the above patch, it appears that for armada-*.dts,
&gt; sata-port@0 always uses phys = &lt;&amp;cp0_comphy2 0&gt; and sata-port@1 uses
&gt; phys = &lt;&amp;cp0_comphy3 1&gt;. Is this an actual SoC property? Could it be
&gt; 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.

&gt; Andrew
&gt; </[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]>

maintainer
#8 lore raw

Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

In reply to Andrew Lunn
Quoted 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
index 1e0ab35cc686..2b5e45d2c5a6 100644
@@ -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
index 7af949092b91..6bdc4f1e6939 100644
@@ -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
index 7e595ac80043..161beec0b6b0 100644

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".

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.

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_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?

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

maintainer
#9 lore raw

Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

In reply to Rob Herring
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_check only 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

maintainer
#10 lore raw

Re: [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_check only 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.

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

maintainer
#11 lore raw

Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

In reply to Frank Wunderlich
Quoted 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

#12 lore raw

Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

&gt; Gesendet: Montag, 11. November 2024 um 21:36
&gt; Von: "Rob Herring" <[email protected]>
&gt; An: "Frank Wunderlich" <[email protected]>
&gt; 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] &gt; Betreff: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed
&gt;
&gt; On Sat, Nov 09, 2024 at 10:46:19AM +0100, Frank Wunderlich wrote:
&gt; &gt; From: Frank Wunderlich <[email protected]>
&gt;
&gt; Thanks for reviving these.
&gt;
&gt; &gt; after converting the ahci-platform binding to yaml the following files
&gt; &gt; reporting "'anyOf' conditional failed" on
&gt;
&gt; Here and the subject, "fixing anyOf" isn't very specific and is just an
&gt; implementation detail of the schema. "Add missing required 'phys'
&gt; 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.

&gt; Rob
&gt; </[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]>

#14 lore raw

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 failed

Hi,

just a gentle ping to have it finally merged

regards Frank

maintainer
#15 lore raw

Re: 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

maintainer
#16 lore raw

Re: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

In reply to Frank Wunderlich
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 :(

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

#17 lore raw

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

maintainer
#18 lore raw

Re: Aw: Aw: Re: [PATCH v1 1/3] arm64: dts: marvell: Fix anyOf conditional failed

In reply to Frank Wunderlich

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.

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 failed

Hi,

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
#19 lore raw

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

#20 lore raw

PATCH 2/3 arm64: dts: marvell: drop additional phy-names for sata

In reply to 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.

---
 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
index fe5d6cb9d692..9d45e881a97d 100644
@@ -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
index 5043cf2eb33e..0d4a5fd9503f 100644
@@ -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
maintainer
#22 lore raw

Re: [PATCH v1 2/3] arm64: dts: marvell: drop additional phy-names for sata

In reply to Frank Wunderlich
Quoted 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.

---
 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
index fe5d6cb9d692..9d45e881a97d 100644
@@ -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
index 5043cf2eb33e..0d4a5fd9503f 100644
@@ -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
#23 lore raw

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.

regards Frank

#24 lore raw

PATCH 3/3 dt-bindings: ata: ahci-platform: add missing iommus property

In reply to Frank Wunderlich

From: 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 with
83a3545d9c37 ("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
index ef19468e3022..cc35cdc02840 100644
@@ -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
maintainer Reviewed-by on v1 3/3
#25 lore raw

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_check errors 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)

Andrew

Acked-by on v1 3/3
#26 lore raw

Re: [PATCH v1 3/3] dt-bindings: ata: ahci-platform: add missing iommus property

In reply to Frank Wunderlich
Quoted 4 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

fix dtbs_check errors 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)

maintainer Applied
#27 lore raw

Re: (subset) [PATCH v1 0/3] fix some binding check errors for marvell

In reply to Frank Wunderlich
Quoted 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