Thread (26 messages) 26 messages, 5 authors, 2021-02-08

Re: [PATCH next 03/15] dt-bindings: phy: mediatek: dsi-phy: modify compatible dependence

From: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Date: 2021-01-18 14:58:20
Also in: linux-arm-kernel, linux-devicetree, linux-usb, lkml

Hi, Chunfeng:

Chunfeng Yun [off-list ref] 於 2021年1月16日 週六 下午5:07寫道:
The compatilbe "mediatek,mt7623-mipi-tx" is not supported in driver,
and in fact uses "mediatek,mt2701-mipi-tx" instead on MT7623, so changes
the compatible items to make dependence clear.

And add an optional "clock-names" property, it's not used to get the clock,
but some DTS files provide it.
Separate the clock part to another patch.

Regards,
Chun-Kuang.
quoted hunk ↗ jump to hunk
Cc: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 .../bindings/phy/mediatek,dsi-phy.yaml          | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml b/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml
index 71d4acea1f66..af6e554c5b69 100644
--- a/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/mediatek,dsi-phy.yaml
@@ -19,11 +19,14 @@ properties:
     pattern: "^dsi-phy@[0-9a-f]+$"

   compatible:
-    enum:
-      - mediatek,mt2701-mipi-tx
-      - mediatek,mt7623-mipi-tx
-      - mediatek,mt8173-mipi-tx
-      - mediatek,mt8183-mipi-tx
+    oneOf:
+      - items:
+          - enum:
+              - mediatek,mt7623-mipi-tx
+          - const: mediatek,mt2701-mipi-tx
+      - const: mediatek,mt2701-mipi-tx
+      - const: mediatek,mt8173-mipi-tx
+      - const: mediatek,mt8183-mipi-tx

   reg:
     maxItems: 1
@@ -32,6 +35,10 @@ properties:
     items:
       - description: PLL reference clock

+  clock-names:
+    items:
+      - const: ref
+
   clock-output-names:
     maxItems: 1

--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help