Re: [PATCH v4 09/14] Documentation: bindings: clk: Add bindings for i.MX BLK_CTL

2020-10-28 Thread Rob Herring
On Mon, 26 Oct 2020 21:32:25 +0200, Abel Vesa wrote:
> Document the i.MX BLK_CTL with its devicetree properties.
> 
> Signed-off-by: Abel Vesa 
> Reviewed-by: Dong Aisheng 
> ---
>  .../devicetree/bindings/clock/fsl,imx-blk-ctl.yaml | 60 
> ++
>  1 file changed, 60 insertions(+)
>  create mode 100644 
> Documentation/devicetree/bindings/clock/fsl,imx-blk-ctl.yaml
> 

Reviewed-by: Rob Herring 


[PATCH v4 09/14] Documentation: bindings: clk: Add bindings for i.MX BLK_CTL

2020-10-26 Thread Abel Vesa
Document the i.MX BLK_CTL with its devicetree properties.

Signed-off-by: Abel Vesa 
Reviewed-by: Dong Aisheng 
---
 .../devicetree/bindings/clock/fsl,imx-blk-ctl.yaml | 60 ++
 1 file changed, 60 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/fsl,imx-blk-ctl.yaml

diff --git a/Documentation/devicetree/bindings/clock/fsl,imx-blk-ctl.yaml 
b/Documentation/devicetree/bindings/clock/fsl,imx-blk-ctl.yaml
new file mode 100644
index ..5e9eb40
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/fsl,imx-blk-ctl.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/fsl,imx-blk-ctl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP i.MX BLK_CTL
+
+maintainers:
+  - Abel Vesa 
+
+description:
+  i.MX BLK_CTL is a conglomerate of different GPRs that are
+  dedicated to a specific subsystem. Because it usually contains
+  clocks amongst other things, it needs access to the i.MX clocks
+  API. All the other functionalities it provides can work just fine
+  from the clock subsystem tree.
+
+properties:
+  compatible:
+items:
+  - enum:
+ - fsl,imx8mp-audio-blk-ctl
+ - fsl,imx8mp-hdmi-blk-ctl
+ - fsl,imx8mp-media-blk-ctl
+  - const: syscon
+
+  reg:
+maxItems: 1
+
+  power-domains:
+maxItems: 1
+
+  '#clock-cells':
+const: 1
+
+  '#reset-cells':
+const: 1
+
+required:
+  - compatible
+  - reg
+  - power-domains
+  - '#clock-cells'
+  - '#reset-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+#include 
+
+audio_blk_ctl: clock-controller@30e2 {
+   compatible = "fsl,imx8mp-audio-blk-ctl", "syscon";
+   reg = <0x30e2 0x1>;
+   power-domains = <_pd>;
+
+   #clock-cells = <1>;
+   #reset-cells = <1>;
+};
-- 
2.7.4