Skip to contentSkip to conversation

media: dt-bindings: adv7180: Document 'adi,force-bt656-4'

PATCH Superseded Fabio Estevam 2 participants 8 messages Oct 23, 2024 – Oct 24, 2024

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/3 media: dt-bindings: adv7180: Document 'adi,force-bt656-4'

From: Fabio Estevam <[email protected]>

The "adv,force-bt656-4" compatible string causes several dt-schema warnings because 'adv' is not a valid vendor prefix defined in vendor-prefixes.yaml:

adv7280@21: 'adv,force-bt656-4' does not match any of the regexes: '^#.*'...

The correct vendor prefix for Analog Devices is 'adi', so change the property name to 'adi,force-bt656-4'.

Keep the old property for old DTB compatibility and mark it as deprecated.

---
 Documentation/devicetree/bindings/media/i2c/adv7180.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/media/i2c/adv7180.yaml +6 -0
index c8d887eee3bb..4371a0ef2761 100644
@@ -39,6 +39,12 @@ properties:
     maxItems: 1
 
   adv,force-bt656-4:
+    deprecated: true
+    description:
+      Indicates that the output is a BT.656-4 compatible stream.
+    type: boolean
+
+  adi,force-bt656-4:
     description:
       Indicates that the output is a BT.656-4 compatible stream.
     type: boolean
Signature · 1 line
2.34.1
author reviewer
#1 lore raw

PATCH 2/3 media: adv7180: Also check for "adi,force-bt656-4"

From: Fabio Estevam <[email protected]>

According to adv7180.yaml, the correct property name is "adi,force-bt656-4".

Expand the check to also test against the "adi,force-bt656-4" compatible string.

---
 drivers/media/i2c/adv7180.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/i2c/adv7180.c +2 -1
index 819ff9f7c90f..ff7dfa0278a7 100644
@@ -1440,7 +1440,8 @@ static int adv7180_probe(struct i2c_client *client)
 		return ret;
 	}
 
-	if (of_property_read_bool(np, "adv,force-bt656-4"))
+	if (of_property_read_bool(np, "adv,force-bt656-4") ||
+	    of_property_read_bool(np, "adi,force-bt656-4"))
 		state->force_bt656_4 = true;
 
 	if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) {
Signature · 1 line
2.34.1
author reviewer
#3 lore raw

PATCH 3/3 ARM: dts: imx6qdl-apalis: Change to "adi,force-bt656-4"

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

According to adv7180.yaml, the correct property name is "adi,force-bt656-4".

Update it accordingly to fix several dt-schema warnings:

adv7280@21: 'adv,force-bt656-4' does not match any of the regexes: ...

---
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi +1 -1
index 1c72da417011..dffab5aa8b9c 100644
@@ -691,7 +691,7 @@ &i2c3 {
 
 	adv_7280: adv7280@21 {
 		compatible = "adi,adv7280";
-		adv,force-bt656-4;
+		adi,force-bt656-4;
 		pinctrl-names = "default";
 		pinctrl-0 = <&pinctrl_ipu1_csi0>;
 		reg = <0x21>;
Signature · 1 line
2.34.1
Reviewed-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] media: adv7180: Also check for "adi,force-bt656-4"

In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

According to adv7180.yaml, the correct property name is "adi,force-bt656-4".

Expand the check to also test against the "adi,force-bt656-4" compatible string.

Best regards,
Krzysztof

#4 lore raw

Re: [PATCH 3/3] ARM: dts: imx6qdl-apalis: Change to "adi,force-bt656-4"

In reply to Fabio Estevam
Quoted 5 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

According to adv7180.yaml, the correct property name is "adi,force-bt656-4".

Quoted 9 lines

Update it accordingly to fix several dt-schema warnings:

adv7280@21: 'adv,force-bt656-4' does not match any of the regexes: ...

---
 arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This will affect other users of this DTS, which we try to avoid. Some sort of analysis if this is used in BSD would be useful.

Best regards,
Krzysztof

author reviewer
#5 lore raw

Re: [PATCH 3/3] ARM: dts: imx6qdl-apalis: Change to "adi,force-bt656-4"

Hi Krzysztof,

Quoted 2 lines · Krzysztof Kozlowski

This will affect other users of this DTS, which we try to avoid. Some sort of analysis if this is used in BSD would be useful.

Thanks for the suggestion.

I checked the BSD source code and there is no adv7180 driver available.

#6 lore raw

Re: [PATCH 3/3] ARM: dts: imx6qdl-apalis: Change to "adi,force-bt656-4"

Quoted 10 lines · Fabio Estevam

Hi Krzysztof,

Quoted 2 lines · Krzysztof Kozlowski

This will affect other users of this DTS, which we try to avoid. Some sort of analysis if this is used in BSD would be useful.

Thanks for the suggestion.

I checked the BSD source code and there is no adv7180 driver available.

OK, thanks. I think it would be useful to add above to commit msg.

Best regards,
Krzysztof