[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200331215456.GA656@bogus>
Date: Tue, 31 Mar 2020 15:54:56 -0600
From: Rob Herring <robh@...nel.org>
To: Abel Vesa <abel.vesa@....com>
Cc: Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <kernel@...gutronix.de>,
Fabio Estevam <fabio.estevam@....com>,
Mike Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Lee Jones <lee.jones@...aro.org>,
Anson Huang <anson.huang@....com>,
Leonard Crestez <leonard.crestez@....com>,
Peng Fan <peng.fan@....com>, Jacky Bai <ping.bai@....com>,
Philipp Zabel <p.zabel@...gutronix.de>,
NXP Linux Team <linux-imx@....com>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-clk@...r.kernel.org
Subject: Re: [PATCH v2 02/13] Documentation: mfd: Add DT bindings for i.MX
Audiomix
On Wed, Mar 25, 2020 at 05:38:40PM +0200, Abel Vesa wrote:
> The i.MX Audiomix is a mix of clock gates, reset bits
> and some other i.MX audio specific functionalities.
> Add information for the MFD, its clock and reset controllers.
>
> Signed-off-by: Abel Vesa <abel.vesa@....com>
> ---
> .../devicetree/bindings/mfd/fsl,imx-audiomix.txt | 34 ++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mfd/fsl,imx-audiomix.txt
Please use DT schema format.
> diff --git a/Documentation/devicetree/bindings/mfd/fsl,imx-audiomix.txt b/Documentation/devicetree/bindings/mfd/fsl,imx-audiomix.txt
> new file mode 100644
> index 00000000..1622818
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/fsl,imx-audiomix.txt
> @@ -0,0 +1,34 @@
> +Freescale i.MX Audiomix
> +======================================
> +
> +Audiomix is a conglomerate of different functionalities.
> +
> +Required properties:
> +- compatible: Should be "fsl,<chip>-mix" for the MFD device
> + Should be"fsl,<chip>-audiomix-clk" for the clock controller
> + Should be"fsl,<chip>-audiomix-reset" for the reset controller
> + Some functionalities of the audiomix will be registered as syscon.
> +- reg: should be register base and length as documented in the
> + datasheet
> +
> +example:
> + audiomix: audiomix@...20000 {
> + compatible = "fsl,imx8mp-mix";
> + reg = <0x30e20000 0x10000>;
> +
> + audiomix_clk: clock-controller {
> + compatible = "fsl,imx8mp-audiomix-clk";
> + #clock-cells = <1>;
> + clocks = <&clk IMX8MP_CLK_AUDIO_ROOT>,
> + <&clk IMX8MP_CLK_AUDIO_AHB>,
> + <&clk IMX8MP_CLK_AUDIO_AXI_DIV>;
None of these clocks are needed for the other functions in this MFD.
I'm not all that convinced that these child nodes are needed. A single
node can be a clock and reset provider. If you have other things to add
to the binding, do so now even if you don't have driver support.
> + clock-names = "audio_root",
> + "audio_ahb",
> + "audio_axi_div";
> + };
> +
> + audiomix_reset: reset-controller {
> + compatible = "fsl,imx8mp-audiomix-reset";
> + #reset-cells = <1>;
> + };
> + };
> --
> 2.7.4
>
Powered by blists - more mailing lists