Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp481735pxb; Thu, 7 Apr 2022 10:23:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH1lH51c2RDIUrh87pxW5D3jepoH0JN+W7YCUlUdFB8gsnY5BePcGqlQdoTXSuqf3NcB22 X-Received: by 2002:a17:906:6a03:b0:6e8:4144:79c3 with SMTP id qw3-20020a1709066a0300b006e8414479c3mr2161260ejc.350.1649352181424; Thu, 07 Apr 2022 10:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649352181; cv=none; d=google.com; s=arc-20160816; b=c4jCMVh/0uzZhL/5AuSS1mqLMEGuL/egnhTbWz8qVbXVR0R2GgXloqqk5Sk5y+5aYE BA1m1WGbOEoyCFGPxTvNMFOXNsH1vngPfN0WKmORgZKg/nti3YW45RaRuE2z0yLab7tx ELxYxjzuokANKEJgGzhGQhzkjNDOjAh7Pfyv9eN4EGiWySA2wvNBkiL8MER8rmcLKwfi POWCw3QwQsmasD7WbZdUtnh1uqm175KGsPuPmJ2yTIorVSZvmvASMx0wrNnAiYzt1m4o BlPsn83BqThT536GUt9fZWxdccKkP3fd3jZ+p3bKabpoK7j45eT2q0cv88YPIpo68Wtz Q9lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QP4XG7/YGkucnYqb+yfXH4miAF3SaZ4shNV5mdNGBW0=; b=WS8evX9gpCCct7D3cLaWbM6Cd534hhWTjBuZ5wZ1Rc0r6IjB2D5lcOL2ZEa7AE+5Gy Hj5Gnbwt2LZzMiLLcH5HCqi1lYQrVC2yHzAqVrTHUuFGUN6OAOjtNWgqchEnz6J1uIgl 22RFeYURy/bmWE+3HizZ6bVPtZ0uZLfwsLam7yWAAFFPm69GKbV7AzvsI8b2Kz80aedV ucvBPANfKB24dtso4uG3HdcKhas/ClS6Ffr7EqCS+cqHywwrDYg5azGdz3II5NH4tSMj 3c/9pNTwr4r7/F+yi9UeKdKi1dsoXt9WyWFAHwyCQrWV9CggwIIVqRMkTv11YG0FBq1L olbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v26-20020a170906339a00b006dfb5687a24si13723006eja.499.2022.04.07.10.22.36; Thu, 07 Apr 2022 10:23:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345096AbiDGPqe (ORCPT + 99 others); Thu, 7 Apr 2022 11:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345025AbiDGPqO (ORCPT ); Thu, 7 Apr 2022 11:46:14 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B5B6BF978 for ; Thu, 7 Apr 2022 08:44:10 -0700 (PDT) Received: from dude03.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::39]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ncUIn-0007bF-EW; Thu, 07 Apr 2022 17:44:05 +0200 From: Philipp Zabel To: devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , linux-kernel@vger.kernel.org, Eugeniy Paltsev Subject: [PATCH 08/14] dt-bindings: reset: snps,axs10x-reset: Convert to yaml Date: Thu, 7 Apr 2022 17:43:32 +0200 Message-Id: <20220407154338.4190674-8-p.zabel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220407154338.4190674-1-p.zabel@pengutronix.de> References: <20220407154338.4190674-1-p.zabel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::39 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the device tree bindings for the AXS10x reset controller to YAML schema to allow participating in DT validation. Signed-off-by: Philipp Zabel Cc: Eugeniy Paltsev --- .../bindings/reset/snps,axs10x-reset.txt | 33 ------------- .../bindings/reset/snps,axs10x-reset.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/snps,axs10x-reset.txt create mode 100644 Documentation/devicetree/bindings/reset/snps,axs10x-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/snps,axs10x-reset.txt b/Documentation/devicetree/bindings/reset/snps,axs10x-reset.txt deleted file mode 100644 index 32d8435a41df..000000000000 --- a/Documentation/devicetree/bindings/reset/snps,axs10x-reset.txt +++ /dev/null @@ -1,33 +0,0 @@ -Binding for the AXS10x reset controller - -This binding describes the ARC AXS10x boards custom IP-block which allows -to control reset signals of selected peripherals. For example DW GMAC, etc... -This block is controlled via memory-mapped register (AKA CREG) which -represents up-to 32 reset lines. - -As of today only the following lines are used: - - DW GMAC - line 5 - -This binding uses the common reset binding[1]. - -[1] Documentation/devicetree/bindings/reset/reset.txt - -Required properties: -- compatible: should be "snps,axs10x-reset". -- reg: should always contain pair address - length: for creg reset - bits register. -- #reset-cells: from common reset binding; Should always be set to 1. - -Example: - reset: reset-controller@11220 { - compatible = "snps,axs10x-reset"; - #reset-cells = <1>; - reg = <0x11220 0x4>; - }; - -Specifying reset lines connected to IP modules: - ethernet@.... { - .... - resets = <&reset 5>; - .... - }; diff --git a/Documentation/devicetree/bindings/reset/snps,axs10x-reset.yaml b/Documentation/devicetree/bindings/reset/snps,axs10x-reset.yaml new file mode 100644 index 000000000000..a75db3d405af --- /dev/null +++ b/Documentation/devicetree/bindings/reset/snps,axs10x-reset.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/snps,axs10x-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AXS10x reset controller + +maintainers: + - Eugeniy Paltsev + +description: | + This binding describes the ARC AXS10x boards custom IP-block which allows + to control reset signals of selected peripherals. For example DW GMAC, etc... + This block is controlled via memory-mapped register (AKA CREG) which + represents up-to 32 reset lines. + As of today only the following lines are used: + - DW GMAC - line 5 + +properties: + compatible: + const: snps,axs10x-reset + + reg: + maxItems: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - reg + - '#reset-cells' + +additionalProperties: false + +examples: + - | + reset: reset-controller@11220 { + compatible = "snps,axs10x-reset"; + #reset-cells = <1>; + reg = <0x11220 0x4>; + }; + + // Specifying reset lines connected to IP modules: + ethernet { + resets = <&reset 5>; + }; -- 2.30.2