mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
a29be9185d
When specifying external clock inputs to the CCM the current code requires the clocks to be in a "clocks" child node of the DT root. This is not really conformant with DT best practices. To avoid the need to deviate from those best practices, allow the clock inputs to be specified via standard clock handles. This is in line with how drivers of the later CCM driver revisions on newer i.MX SoCs handle this. As we can't retroactively change the DT binding, allow this as an option with a fallback to the old way of how this has been handled. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
* Clock bindings for Freescale i.MX6 Quad
|
|
|
|
Required properties:
|
|
- compatible: Should be "fsl,imx6q-ccm"
|
|
- reg: Address and length of the register set
|
|
- interrupts: Should contain CCM interrupt
|
|
- #clock-cells: Should be <1>
|
|
|
|
Optional properties:
|
|
- fsl,pmic-stby-poweroff: Configure CCM to assert PMIC_STBY_REQ signal
|
|
on power off.
|
|
Use this property if the SoC should be powered off by external power
|
|
management IC (PMIC) triggered via PMIC_STBY_REQ signal.
|
|
Boards that are designed to initiate poweroff on PMIC_ON_REQ signal should
|
|
be using "syscon-poweroff" driver instead.
|
|
- clocks: list of clock specifiers, must contain an entry for each entry
|
|
in clock-names
|
|
- clock-names: valid names are "osc", "ckil", "ckih1", "anaclk1" and "anaclk2"
|
|
|
|
The clock consumer should specify the desired clock by having the clock
|
|
ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx6qdl-clock.h
|
|
for the full list of i.MX6 Quad and DualLite clock IDs.
|
|
|
|
Examples:
|
|
|
|
#include <dt-bindings/clock/imx6qdl-clock.h>
|
|
|
|
clks: ccm@20c4000 {
|
|
compatible = "fsl,imx6q-ccm";
|
|
reg = <0x020c4000 0x4000>;
|
|
interrupts = <0 87 0x04 0 88 0x04>;
|
|
#clock-cells = <1>;
|
|
};
|
|
|
|
uart1: serial@2020000 {
|
|
compatible = "fsl,imx6q-uart", "fsl,imx21-uart";
|
|
reg = <0x02020000 0x4000>;
|
|
interrupts = <0 26 0x04>;
|
|
clocks = <&clks IMX6QDL_CLK_UART_IPG>, <&clks IMX6QDL_CLK_UART_SERIAL>;
|
|
clock-names = "ipg", "per";
|
|
};
|