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

dt-bindings: reset: Convert i.MX7 reset to json-schema

Convert the i.MX7 reset binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Anson Huang and committed by
Philipp Zabel
3b9164c0 20c1b699

+58 -56
-56
Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
··· 1 - Freescale i.MX7 System Reset Controller 2 - ====================================== 3 - 4 - Please also refer to reset.txt in this directory for common reset 5 - controller binding usage. 6 - 7 - Required properties: 8 - - compatible: 9 - - For i.MX7 SoCs should be "fsl,imx7d-src", "syscon" 10 - - For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon" 11 - - For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon" 12 - - For i.MX8MN SoCs should be "fsl,imx8mn-src", "fsl,imx8mq-src", "syscon" 13 - - For i.MX8MP SoCs should be "fsl,imx8mp-src", "syscon" 14 - - reg: should be register base and length as documented in the 15 - datasheet 16 - - interrupts: Should contain SRC interrupt 17 - - #reset-cells: 1, see below 18 - 19 - example: 20 - 21 - src: reset-controller@30390000 { 22 - compatible = "fsl,imx7d-src", "syscon"; 23 - reg = <0x30390000 0x2000>; 24 - interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; 25 - #reset-cells = <1>; 26 - }; 27 - 28 - 29 - Specifying reset lines connected to IP modules 30 - ============================================== 31 - 32 - The system reset controller can be used to reset various set of 33 - peripherals. Device nodes that need access to reset lines should 34 - specify them as a reset phandle in their corresponding node as 35 - specified in reset.txt. 36 - 37 - Example: 38 - 39 - pcie: pcie@33800000 { 40 - 41 - ... 42 - 43 - resets = <&src IMX7_RESET_PCIEPHY>, 44 - <&src IMX7_RESET_PCIE_CTRL_APPS_EN>; 45 - reset-names = "pciephy", "apps"; 46 - 47 - ... 48 - }; 49 - 50 - 51 - For list of all valid reset indices see 52 - <dt-bindings/reset/imx7-reset.h> for i.MX7, 53 - <dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and 54 - <dt-bindings/reset/imx8mq-reset.h> for i.MX8MM and 55 - <dt-bindings/reset/imx8mq-reset.h> for i.MX8MN and 56 - <dt-bindings/reset/imx8mp-reset.h> for i.MX8MP
+58
Documentation/devicetree/bindings/reset/fsl,imx7-src.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/reset/fsl,imx7-src.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale i.MX7 System Reset Controller 8 + 9 + maintainers: 10 + - Andrey Smirnov <andrew.smirnov@gmail.com> 11 + 12 + description: | 13 + The system reset controller can be used to reset various set of 14 + peripherals. Device nodes that need access to reset lines should 15 + specify them as a reset phandle in their corresponding node as 16 + specified in reset.txt. 17 + 18 + For list of all valid reset indices see 19 + <dt-bindings/reset/imx7-reset.h> for i.MX7, 20 + <dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ, i.MX8MM and i.MX8MN, 21 + <dt-bindings/reset/imx8mp-reset.h> for i.MX8MP. 22 + 23 + properties: 24 + compatible: 25 + items: 26 + - enum: 27 + - fsl,imx7d-src 28 + - fsl,imx8mq-src 29 + - fsl,imx8mp-src 30 + - const: syscon 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + interrupts: 36 + maxItems: 1 37 + 38 + '#reset-cells': 39 + const: 1 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - interrupts 45 + - '#reset-cells' 46 + 47 + additionalProperties: false 48 + 49 + examples: 50 + - | 51 + #include <dt-bindings/interrupt-controller/arm-gic.h> 52 + 53 + reset-controller@30390000 { 54 + compatible = "fsl,imx7d-src", "syscon"; 55 + reg = <0x30390000 0x2000>; 56 + interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; 57 + #reset-cells = <1>; 58 + };