提交 d357b313 编写于 作者: A A.s. Dong 提交者: Shawn Guo

dt-bindings: fsl: scu: update power domain binding

Update the power domain binding with #power-domain-cells 1 format.
The first cell can be a global SCU power domain and the 2nd cell
the device ID. With this approach, we may remove all the sub power
domain nodes from device tree which can relief the device tree a lot.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Reviewed-by: NRob Herring <robh@kernel.org>
Reviewed-by: NUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: NDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: NShawn Guo <shawnguo@kernel.org>
上级 3501ce96
...@@ -58,19 +58,11 @@ This binding for the SCU power domain providers uses the generic power ...@@ -58,19 +58,11 @@ This binding for the SCU power domain providers uses the generic power
domain binding[2]. domain binding[2].
Required properties: Required properties:
- compatible: Should be "fsl,scu-pd". - compatible: Should be "fsl,imx8qxp-scu-pd".
- #address-cells: Should be 1. - #power-domain-cells: Must be 1. Contains the Resource ID used by
- #size-cells: Should be 0. SCU commands.
Required properties for power domain sub nodes:
- #power-domain-cells: Must be 0.
Optional Properties:
- reg: Resource ID of this power domain.
No exist means uncontrollable by user.
See detailed Resource ID list from: See detailed Resource ID list from:
include/dt-bindings/power/imx-rsrc.h include/dt-bindings/firmware/imx/rsrc.h
- power-domains: phandle pointing to the parent power domain.
Clock bindings based on SCU Message Protocol Clock bindings based on SCU Message Protocol
------------------------------------------------------------ ------------------------------------------------------------
...@@ -152,22 +144,9 @@ firmware { ...@@ -152,22 +144,9 @@ firmware {
... ...
}; };
imx8qx-pm { pd: imx8qx-pd {
compatible = "fsl,scu-pd"; compatible = "fsl,imx8qxp-scu-pd";
#address-cells = <1>; #power-domain-cells = <1>;
#size-cells = <0>;
pd_dma: dma-power-domain {
#power-domain-cells = <0>;
pd_dma_lpuart0: dma-lpuart0@57 {
reg = <SC_R_UART_0>;
#power-domain-cells = <0>;
power-domains = <&pd_dma>;
};
...
};
...
}; };
}; };
}; };
...@@ -179,5 +158,5 @@ serial@5a060000 { ...@@ -179,5 +158,5 @@ serial@5a060000 {
clocks = <&clk IMX8QXP_UART0_CLK>, clocks = <&clk IMX8QXP_UART0_CLK>,
<&clk IMX8QXP_UART0_IPG_CLK>; <&clk IMX8QXP_UART0_IPG_CLK>;
clock-names = "per", "ipg"; clock-names = "per", "ipg";
power-domains = <&pd_dma_lpuart0>; power-domains = <&pd IMX_SC_R_UART_0>;
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册