Thread (30 messages) 30 messages, 2 authors, 2020-09-18

Re: [PATCH v2 02/23] dt-bindings: memory: mediatek: Convert SMI to DT schema

From: Yong Wu <yong.wu@mediatek.com>
Date: 2020-09-15 05:57:20
Also in: linux-devicetree, linux-iommu, linux-mediatek, lkml

On Mon, 2020-09-14 at 17:23 -0600, Rob Herring wrote:
On Sat, Sep 05, 2020 at 04:08:59PM +0800, Yong Wu wrote:
quoted
Convert MediaTek SMI to DT schema.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
 .../mediatek,smi-common.txt                   | 49 ----------
 .../mediatek,smi-common.yaml                  | 96 +++++++++++++++++++
 .../memory-controllers/mediatek,smi-larb.txt  | 49 ----------
 .../memory-controllers/mediatek,smi-larb.yaml | 85 ++++++++++++++++
[...]
quoted
+  mediatek,smi:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    description: a phandle to the smi_common node.
+
+  mediatek,larb-id:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: the hardware id of this larb.
+      Required property for mt2701, mt2712, mt6779 and mt7623.
Is there a set of valid values?
In the patch[4/23], I change the larb_nr to 32. normally this id is from
0 to 31. I will add this in next version:

    minimum: 0
    maximum: 31
quoted
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+  - power-domains
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/mt8173-clk.h>
+    #include <dt-bindings/power/mt8173-power.h>
+
+    larb1: larb@16010000 {
+      compatible = "mediatek,mt8173-smi-larb";
+      reg = <0x16010000 0x1000>;
+      mediatek,smi = <&smi_common>;
+      power-domains = <&scpsys MT8173_POWER_DOMAIN_VDEC>;
+      clocks = <&vdecsys CLK_VDEC_CKEN>,
+               <&vdecsys CLK_VDEC_LARB_CKEN>;
+      clock-names = "apb", "smi";
+    };
+
-- 
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help