Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: clk: imx: Add fsl,scu-clk yaml file

In order to replace the fsl,scu txt file from bindings/arm/freescale,
we need to split it between the right subsystems. This patch documents
separately the 'clock' child node of the SCU main node.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Abel Vesa and committed by
Shawn Guo
9056aa04 20a051cd

+43 -31
-31
Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
··· 79 79 See detailed Resource ID list from: 80 80 include/dt-bindings/firmware/imx/rsrc.h 81 81 82 - Clock bindings based on SCU Message Protocol 83 - ------------------------------------------------------------ 84 - 85 - This binding uses the common clock binding[1]. 86 - 87 - Required properties: 88 - - compatible: Should be one of: 89 - "fsl,imx8dxl-clk" 90 - "fsl,imx8qm-clk" 91 - "fsl,imx8qxp-clk" 92 - followed by "fsl,scu-clk" 93 - - #clock-cells: Should be 2. 94 - Contains the Resource and Clock ID value. 95 - - clocks: List of clock specifiers, must contain an entry for 96 - each required entry in clock-names 97 - - clock-names: Should include entries "xtal_32KHz", "xtal_24MHz" 98 - 99 - The clock consumer should specify the desired clock by having the clock 100 - ID in its "clocks" phandle cell. 101 - 102 - See the full list of clock IDs from: 103 - include/dt-bindings/clock/imx8qxp-clock.h 104 - 105 82 Pinctrl bindings based on SCU Message Protocol 106 83 ------------------------------------------------------------ 107 84 ··· 104 127 Please refer to i.MX8QXP Reference Manual for detailed 105 128 CONFIG settings. 106 129 107 - [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 108 130 [2] Documentation/devicetree/bindings/power/power-domain.yaml 109 131 [3] Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt 110 132 ··· 184 208 &lsio_mu1 1 3 185 209 &lsio_mu1 3 3>; 186 210 187 - clk: clk { 188 - compatible = "fsl,imx8qxp-clk", "fsl,scu-clk"; 189 - #clock-cells = <2>; 190 - }; 191 - 192 211 iomuxc { 193 212 compatible = "fsl,imx8qxp-iomuxc"; 194 213 ··· 236 265 ... 237 266 pinctrl-names = "default"; 238 267 pinctrl-0 = <&pinctrl_lpuart0>; 239 - clocks = <&uart0_clk IMX_SC_R_UART_0 IMX_SC_PM_CLK_PER>; 240 - clock-names = "ipg"; 241 268 power-domains = <&pd IMX_SC_R_UART_0>; 242 269 };
+43
Documentation/devicetree/bindings/clock/fsl,scu-clk.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/fsl,scu-clk.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: i.MX SCU Client Device Node - Clock bindings based on SCU Message Protocol 8 + 9 + maintainers: 10 + - Abel Vesa <abel.vesa@nxp.com> 11 + 12 + description: i.MX SCU Client Device Node 13 + Client nodes are maintained as children of the relevant IMX-SCU device node. 14 + This binding uses the common clock binding. 15 + (Documentation/devicetree/bindings/clock/clock-bindings.txt) 16 + The clock consumer should specify the desired clock by having the clock 17 + ID in its "clocks" phandle cell. See the full list of clock IDs from 18 + include/dt-bindings/clock/imx8qxp-clock.h 19 + 20 + properties: 21 + compatible: 22 + items: 23 + - enum: 24 + - fsl,imx8dxl-clk 25 + - fsl,imx8qm-clk 26 + - fsl,imx8qxp-clk 27 + - const: fsl,scu-clk 28 + 29 + '#clock-cells': 30 + const: 2 31 + 32 + required: 33 + - compatible 34 + - '#clock-cells' 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + clock-controller { 41 + compatible = "fsl,imx8qxp-clk", "fsl,scu-clk"; 42 + #clock-cells = <2>; 43 + };