Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp242652ybk; Sat, 9 May 2020 01:25:43 -0700 (PDT) X-Google-Smtp-Source: APiQypLav9uA1VDDQ0stUq5l1v0AZHJAt8PWb8uIQ1e6g9Hs20XJ/xi6ralIlhSVCgW/yLdFjwDx X-Received: by 2002:a17:907:b11:: with SMTP id h17mr5422811ejl.371.1589012743599; Sat, 09 May 2020 01:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589012743; cv=none; d=google.com; s=arc-20160816; b=x+PHYrdy5Q/ECfB1WExoOH+q4amfPwFYILiFTgfc6KgjISQLbqhwXZ5JWCRVllqmkv DD2iEL+MjSKUuwW43a+UtWoJivNA5UaIkwq17JT/Qf9g4IA1GsW/kgTIW+5C4niAjXrw kMRuhC3wiNEVWRNq5KkodAqv+e7qKIRBxrpw6jPPnk0tdbXei0OWbqTt2oY8ffKhcgBM etqc/cvrdXa+RFMBd3CmeDk5ByVqVTnCAUsCApPme+oO4StN8pwldqepFBoDlcThtbHB VTbLVTy5ft8ByH+jn2RDC9OuNhI8YDeTzzufAGsNpwV496mYum9krAfamgtJh1uvZxLB SFqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=SQeyVXGYf3JomlC/BygUL2IXDCPb37tVdy4AT0HUcX8=; b=cdvmYn+H+TO/4uw6DCfMnKPrEtgasLg6lu1QW8tbwJnJnALqNvlhHU25rwVvDcZTdh txZyyEjp472WTBMlkZ4nWWvac+HowE843Acn7IF/0BnB1qgs32UUejH+MJT0yDliJOwF zi/AfU7LqMQ67j428G0kBuqhx5RN062wS2+IAb5WvVhI6LhzlkGjfg90J/xn4fVdl7WN sa0p9MtdW7iHBCLMgNSFOrb0fiLHuQ0GCveBo+Qa4UQ27VuAJWcognghuvS3POSCHG7s MlRzmfw9yXjjH2x7cbIQTTyn98uixgumtU5yVUvJPW82sZRn37z4vxI0BQa6AeGP8YEU AXnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si2385856ejq.259.2020.05.09.01.25.21; Sat, 09 May 2020 01:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727857AbgEIIX5 (ORCPT + 99 others); Sat, 9 May 2020 04:23:57 -0400 Received: from inva020.nxp.com ([92.121.34.13]:42004 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727812AbgEIIX5 (ORCPT ); Sat, 9 May 2020 04:23:57 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 925031A028B; Sat, 9 May 2020 10:23:54 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 349F91A015F; Sat, 9 May 2020 10:23:50 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id BB55D40285; Sat, 9 May 2020 16:23:44 +0800 (SGT) From: Anson Huang To: p.zabel@pengutronix.de, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] dt-bindings: reset: Convert i.MX7 reset to json-schema Date: Sat, 9 May 2020 16:14:37 +0800 Message-Id: <1589012077-12088-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the i.MX7 reset binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/reset/fsl,imx7-src.txt | 56 ------------------- .../devicetree/bindings/reset/fsl,imx7-src.yaml | 64 ++++++++++++++++++++++ 2 files changed, 64 insertions(+), 56 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/fsl,imx7-src.txt create mode 100644 Documentation/devicetree/bindings/reset/fsl,imx7-src.yaml diff --git a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt deleted file mode 100644 index e10502d..0000000 --- a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt +++ /dev/null @@ -1,56 +0,0 @@ -Freescale i.MX7 System Reset Controller -====================================== - -Please also refer to reset.txt in this directory for common reset -controller binding usage. - -Required properties: -- compatible: - - For i.MX7 SoCs should be "fsl,imx7d-src", "syscon" - - For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon" - - For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon" - - For i.MX8MN SoCs should be "fsl,imx8mn-src", "fsl,imx8mq-src", "syscon" - - For i.MX8MP SoCs should be "fsl,imx8mp-src", "syscon" -- reg: should be register base and length as documented in the - datasheet -- interrupts: Should contain SRC interrupt -- #reset-cells: 1, see below - -example: - -src: reset-controller@30390000 { - compatible = "fsl,imx7d-src", "syscon"; - reg = <0x30390000 0x2000>; - interrupts = ; - #reset-cells = <1>; -}; - - -Specifying reset lines connected to IP modules -============================================== - -The system reset controller can be used to reset various set of -peripherals. Device nodes that need access to reset lines should -specify them as a reset phandle in their corresponding node as -specified in reset.txt. - -Example: - - pcie: pcie@33800000 { - - ... - - resets = <&src IMX7_RESET_PCIEPHY>, - <&src IMX7_RESET_PCIE_CTRL_APPS_EN>; - reset-names = "pciephy", "apps"; - - ... - }; - - -For list of all valid reset indices see - for i.MX7, - for i.MX8MQ and - for i.MX8MM and - for i.MX8MN and - for i.MX8MP diff --git a/Documentation/devicetree/bindings/reset/fsl,imx7-src.yaml b/Documentation/devicetree/bindings/reset/fsl,imx7-src.yaml new file mode 100644 index 0000000..ad254ba --- /dev/null +++ b/Documentation/devicetree/bindings/reset/fsl,imx7-src.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/fsl,imx7-src.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale i.MX7 System Reset Controller + +maintainers: + - Anson Huang + +description: | + The system reset controller can be used to reset various set of + peripherals. Device nodes that need access to reset lines should + specify them as a reset phandle in their corresponding node as + specified in reset.txt. + + For list of all valid reset indices see + for i.MX7, + for i.MX8MQ and + for i.MX8MM and + for i.MX8MN and + for i.MX8MP + +properties: + compatible: + items: + - enum: + - fsl,imx7d-src + - fsl,imx8mq-src + - fsl,imx8mm-src + - fsl,imx8mn-src + - fsl,imx8mp-src + - const: syscon + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - '#reset-cells' + +additionalProperties: false + +examples: + - | + #include + + reset-controller@30390000 { + compatible = "fsl,imx7d-src", "syscon"; + reg = <0x30390000 0x2000>; + interrupts = ; + #reset-cells = <1>; + }; + +... -- 2.7.4