Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp64698pxh; Thu, 7 Apr 2022 14:06:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFNBmS4ave4+UxYFuEI/kayszqxyevjZROEQDVebhbLVf5pbjzdnnXaWDHc/+LcrqbxWi9 X-Received: by 2002:a17:90b:3b89:b0:1c6:56a2:1397 with SMTP id pc9-20020a17090b3b8900b001c656a21397mr18037521pjb.239.1649365575914; Thu, 07 Apr 2022 14:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365575; cv=none; d=google.com; s=arc-20160816; b=EGJy0j2gIAiJ5RfN847gNcN/nDo4K0eGrYNz3jeC0JvqWv4tT6Wgc54Tjof9Cjd5O1 6PMW52FZ5RjnCHlRqlM0MxjrPqjQhyvVBLakTZZKdSFe8RFsjuRwH/t4jX4LumhNm3k3 AMkL09R0rnb4Q5gc0OXoLFz/2n7Hn/ms6J+VubgJ5SgnUL1Lg4BerF8pYwbuGulV3m/5 vIN/yoGF2RhG/VPVIE+GY8NHU01uX3zhlNNvO7UuSyKMPfbFpHg8vfGlqNQhhPxgGbQX Rv6DF3YvkLbS8NN70JIIgIhxym6v5SEGOmM6e0jueQaFWVvYI5SHaMRPDlvjH94Qgjgx X5Ew== 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=S2D7uTfddD4y/kfb2q83TdDQv6oWazlx/tcTdY30RKY=; b=a3ORH4+fVEWPBoxxibbtKQYpftqt13SqIZDAag3LtsGfDtSMehM/xj84JAYoldg/Vs wrkDwYaVUBdFXFyCPLWo50Sievw+HNiL/knkKFJYDZJlqF/Mx9svVGMP2gpW+qVQ5U4G aa33/BhXpHm0ZaNEe/OXbxU1J3mC5llfEumPE8aPd7svrKxRwh/2+vEYmgNPK8b0prJa PSdjDXGCNXC3LANqUKRMbuRrRiTnICRBqhGJusehf5HlTy55q1tgg83BcEJTqpNOnbFb 9QlBRblRRkcIDOc1iXjA0+G3waeCoVz3b2jBfsgcQd2l6+NdSxab4T6sFxbpU0Fj8NlN dryQ== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q15-20020a056a00088f00b004fe506b0a18si6302731pfj.268.2022.04.07.14.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:06:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EAD1847EF7D; Thu, 7 Apr 2022 13:12:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232111AbiDGPrO (ORCPT + 99 others); Thu, 7 Apr 2022 11:47:14 -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 S1345039AbiDGPqN (ORCPT ); Thu, 7 Apr 2022 11:46:13 -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 9BE3AC31C3 for ; Thu, 7 Apr 2022 08:44:08 -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 1ncUIl-0007bF-OE; Thu, 07 Apr 2022 17:44:03 +0200 From: Philipp Zabel To: devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , linux-kernel@vger.kernel.org Subject: [PATCH 07/14] dt-bindings: reset: oxsemi,oxnas-reset: Convert to yaml Date: Thu, 7 Apr 2022 17:43:31 +0200 Message-Id: <20220407154338.4190674-7-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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Oxford Semiconductor OXNAS reset controllers to YAML schema to allow participating in DT validation. Signed-off-by: Philipp Zabel Cc: Neil Armstrong --- .../devicetree/bindings/reset/oxnas,reset.txt | 32 ------------- .../bindings/reset/oxsemi,oxnas-reset.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 32 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/oxnas,reset.txt create mode 100644 Documentation/devicetree/bindings/reset/oxsemi,oxnas-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/oxnas,reset.txt b/Documentation/devicetree/bindings/reset/oxnas,reset.txt deleted file mode 100644 index d27ccb5d04fc..000000000000 --- a/Documentation/devicetree/bindings/reset/oxnas,reset.txt +++ /dev/null @@ -1,32 +0,0 @@ -Oxford Semiconductor OXNAS SoC Family RESET Controller -================================================ - -Please also refer to reset.txt in this directory for common reset -controller binding usage. - -Required properties: -- compatible: For OX810SE, should be "oxsemi,ox810se-reset" - For OX820, should be "oxsemi,ox820-reset" -- #reset-cells: 1, see below - -Parent node should have the following properties : -- compatible: For OX810SE, should be : - "oxsemi,ox810se-sys-ctrl", "syscon", "simple-mfd" - For OX820, should be : - "oxsemi,ox820-sys-ctrl", "syscon", "simple-mfd" - -Reset indices are in dt-bindings include files : -- For OX810SE: include/dt-bindings/reset/oxsemi,ox810se.h -- For OX820: include/dt-bindings/reset/oxsemi,ox820.h - -example: - -sys: sys-ctrl@000000 { - compatible = "oxsemi,ox810se-sys-ctrl", "syscon", "simple-mfd"; - reg = <0x000000 0x100000>; - - reset: reset-controller { - compatible = "oxsemi,ox810se-reset"; - #reset-cells = <1>; - }; -}; diff --git a/Documentation/devicetree/bindings/reset/oxsemi,oxnas-reset.yaml b/Documentation/devicetree/bindings/reset/oxsemi,oxnas-reset.yaml new file mode 100644 index 000000000000..3cd2ce85a056 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/oxsemi,oxnas-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/oxsemi,oxnas-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Oxford Semiconductor OXNAS SoC Family RESET Controller + +maintainers: + - Neil Armstrong + +description: | + Reset indices are in dt bindings include files: + - For OX810SE: include/dt-bindings/reset/oxsemi,ox810se.h + - For OX820: include/dt-bindings/reset/oxsemi,ox820.h + +properties: + compatible: + enum: + - oxsemi,ox810se-reset + - oxsemi,ox820-reset + + reg: + maxItems: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - '#reset-cells' + +additionalProperties: false + +examples: + - | + // For OX810SE: + #include + + sys: sys-ctrl@000000 { + compatible = "oxsemi,ox810se-sys-ctrl", "syscon", "simple-mfd"; + reg = <0x000000 0x100000>; + + reset: reset-controller { + compatible = "oxsemi,ox810se-reset"; + #reset-cells = <1>; + }; + }; -- 2.30.2