dt-bindings: clock: mediatek: document clk bindings mipi0a for Mediatek MT6765 SoC
authorMacpaul Lin <macpaul.lin@mediatek.com>
Fri, 21 Feb 2020 09:52:19 +0000 (17:52 +0800)
committerStephen Boyd <sboyd@kernel.org>
Fri, 29 May 2020 04:22:31 +0000 (21:22 -0700)
This patch adds the binding documentation for mipi0a.

Signed-off-by: Mars Cheng <mars.cheng@mediatek.com>
Signed-off-by: Owen Chen <owen.chen@mediatek.com>
Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://lore.kernel.org/r/1582278742-1626-3-git-send-email-macpaul.lin@mediatek.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/arm/mediatek/mediatek,mipi0a.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mipi0a.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mipi0a.txt
new file mode 100644 (file)
index 0000000..8be5978
--- /dev/null
@@ -0,0 +1,28 @@
+Mediatek mipi0a (mipi_rx_ana_csi0a) controller
+============================
+
+The Mediatek mipi0a controller provides various clocks
+to the system.
+
+Required Properties:
+
+- compatible: Should be one of:
+       - "mediatek,mt6765-mipi0a", "syscon"
+- #clock-cells: Must be 1
+
+The mipi0a controller uses the common clk binding from
+Documentation/devicetree/bindings/clock/clock-bindings.txt
+The available clocks are defined in dt-bindings/clock/mt*-clk.h.
+
+The mipi0a controller also uses the common power domain from
+Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
+The available power doamins are defined in dt-bindings/power/mt*-power.h.
+
+Example:
+
+mipi0a: clock-controller@11c10000 {
+       compatible = "mediatek,mt6765-mipi0a", "syscon";
+       reg = <0 0x11c10000 0 0x1000>;
+       power-domains = <&scpsys MT6765_POWER_DOMAIN_CAM>;
+       #clock-cells = <1>;
+};