Skip to contentSkip to conversation

dt-bindings: mediatek: hdmi-ddc: Correct the compatibles for mt7623-mt8167

PATCH RESEND Applied Luca Leonardo Scorcia 3 participants 3 messages Sep 8 – Sep 15

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 dt-bindings: mediatek: hdmi-ddc: Correct the compatibles for mt7623-mt8167

The HDMI DDC driver for both mt7623 and mt8167 is actually the same as mt8173-hdmi-ddc and the mt7623n.dtsi board include file already uses mt8173-hdmi-ddc compatible as a fallback, but the documentation lists them as separate entries. Correct the binding by adding the correct fallback.

---
Fixes the following dtbs_check error in mt7623n-rfb-emmc.dts and mt7623n-bananapi-bpi-r2.dts:

i2c@11013000 (mediatek,mt7623-hdmi-ddc): compatible:
['mediatek,mt7623-hdmi-ddc', 'mediatek,mt8173-hdmi-ddc'] is too long

 .../bindings/display/mediatek/mediatek,hdmi-ddc.yaml  | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/display/mediatek/mediatek,hdmi-ddc.yaml +7 -4
index bd8f7b8ae0ff..966127e1ee63 100644
@@ -15,10 +15,13 @@ description: |
 
 properties:
   compatible:
-    enum:
-      - mediatek,mt7623-hdmi-ddc
-      - mediatek,mt8167-hdmi-ddc
-      - mediatek,mt8173-hdmi-ddc
+    oneOf:
+      - const: mediatek,mt8173-hdmi-ddc
+      - items:
+          - enum:
+              - mediatek,mt7623-hdmi-ddc
+              - mediatek,mt8167-hdmi-ddc
+          - const: mediatek,mt8173-hdmi-ddc
 
   reg:
     maxItems: 1
Signature · 1 line
2.43.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 8 lines · Luca Leonardo Scorcia

The HDMI DDC driver for both mt7623 and mt8167 is actually the same as mt8173-hdmi-ddc and the mt7623n.dtsi board include file already uses mt8173-hdmi-ddc compatible as a fallback, but the documentation lists them as separate entries. Correct the binding by adding the correct fallback.

Quoted 32 lines

---
Fixes the following dtbs_check error in mt7623n-rfb-emmc.dts and mt7623n-bananapi-bpi-r2.dts:

i2c@11013000 (mediatek,mt7623-hdmi-ddc): compatible:

   ['mediatek,mt7623-hdmi-ddc', 'mediatek,mt8173-hdmi-ddc'] is too long
  .../bindings/display/mediatek/mediatek,hdmi-ddc.yaml  | 11 +++++++----
  1 file changed, 7 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/display/mediatek/mediatek,hdmi-ddc.yaml +7 -4
index bd8f7b8ae0ff..966127e1ee63 100644
@@ -15,10 +15,13 @@ description: |
 
  properties:
    compatible:
-    enum:
-      - mediatek,mt7623-hdmi-ddc
-      - mediatek,mt8167-hdmi-ddc
-      - mediatek,mt8173-hdmi-ddc
+    oneOf:
+      - const: mediatek,mt8173-hdmi-ddc
+      - items:
+          - enum:
+              - mediatek,mt7623-hdmi-ddc
+              - mediatek,mt8167-hdmi-ddc
+          - const: mediatek,mt8173-hdmi-ddc
 
    reg:
      maxItems: 1
maintainer Applied
#2 lore raw
In reply to Luca Leonardo Scorcia
Quoted 12 lines · Luca Leonardo Scorcia

The HDMI DDC driver for both mt7623 and mt8167 is actually the same as mt8173-hdmi-ddc and the mt7623n.dtsi board include file already uses mt8173-hdmi-ddc compatible as a fallback, but the documentation lists them as separate entries. Correct the binding by adding the correct fallback.

---
Fixes the following dtbs_check error in mt7623n-rfb-emmc.dts and mt7623n-bananapi-bpi-r2.dts:

Quoted 6 lines

i2c@11013000 (mediatek,mt7623-hdmi-ddc): compatible:
['mediatek,mt7623-hdmi-ddc', 'mediatek,mt8173-hdmi-ddc'] is too long

 .../bindings/display/mediatek/mediatek,hdmi-ddc.yaml  | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Applied, thanks!