Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp59328pxh; Thu, 7 Apr 2022 13:57:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJnmbNTRVgogPGNZgqu1JoXZKEPBryYx+XrT/VPh44N7ZHFm5PDe77lmE0/zTfN1jjnry5 X-Received: by 2002:a63:451b:0:b0:380:b9f8:13f4 with SMTP id s27-20020a63451b000000b00380b9f813f4mr12773936pga.367.1649365041840; Thu, 07 Apr 2022 13:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365041; cv=none; d=google.com; s=arc-20160816; b=v3bIL1ftp10M8YONVab86/4geAhPDAy9oZclcl7uBOrJpJcYER9QL6cgyoY/WujHb0 ohbtpEn2DEOqRff3dS9GMEQRh/t8X/4JOcHkt9PpBSuRElUOjTBkgGytgu6OfnF89XrE fvsv3Ku4d1K2axEXUNOoccupKEwCVpyrlbje/E799ShmJT95fFMDilkCTfZZP+f1gjzA uKFMK4Gj/vDeUS5ouIiqmtpz2yhIQUztKyBufuS4hUeBqQZMGsWE+2J4r6jwEeLSMtub veaUlVZZ/aBt4PKStJQkpNod88PgwK2iyj8N4lUbnR4JKB/NvKfBXK1EXgpM4v5x+dq+ ksYw== 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=6WS55AZ5eyFS/XAKItuSDbVc2S0MEQ6V+wFDvpp9Qcg=; b=c6h+ghhWU/dLspmosti4030s+HdJzFvTW2ijtTj6Yly/Eq559l5yEih1Ufdx1nzjV5 w8rBMHHGZW8js9gLtCaco6jwsmf1vFjKr2XeooPLcbHm0+dwA9Rk5VnVgUBHXKFLUFhe QCy1OjBhhtjxD2MxnTrBlYxSf1WNFVAZcPvs0E0wIih0p0qw5xQelm/Y9Pr4jjKCdC3w r0wdluGbWYxCcGa1v9jv09np37nG8W0mBM0UwBGx5WWKokL1PGTJJ8tWx1va1r6+6SRr YOsK167GxfiMF8PELwRLhNzwIOB+pJowjH1+yp0Q/h7gW8ED8QLPVNQBin4jq/VwC++v BJBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o20-20020a056a0015d400b004fa7288d199si2541542pfu.55.2022.04.07.13.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:57:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 13CAB410A62; Thu, 7 Apr 2022 13:00:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345189AbiDGPrE (ORCPT + 99 others); Thu, 7 Apr 2022 11:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243109AbiDGPqN (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 9DE84C1CBD for ; Thu, 7 Apr 2022 08:44:07 -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 1ncUIk-0007bF-LO; Thu, 07 Apr 2022 17:44:02 +0200 From: Philipp Zabel To: devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Neil Armstrong , linux-kernel@vger.kernel.org, Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair Subject: [PATCH 06/14] dt-bindings: reset: nuvoton,npcm-reset: Convert to yaml Date: Thu, 7 Apr 2022 17:43:30 +0200 Message-Id: <20220407154338.4190674-6-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 Nuvoton NPCM reset controller to YAML schema to allow participating in DT validation. Signed-off-by: Philipp Zabel Cc: Avi Fishman Cc: Tomer Maimon Cc: Tali Perry Cc: Patrick Venture Cc: Nancy Yuen Cc: Benjamin Fair --- .../bindings/reset/nuvoton,npcm-reset.txt | 32 ------------ .../bindings/reset/nuvoton,npcm750-reset.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 32 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/nuvoton,npcm-reset.txt create mode 100644 Documentation/devicetree/bindings/reset/nuvoton,npcm750-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/nuvoton,npcm-reset.txt b/Documentation/devicetree/bindings/reset/nuvoton,npcm-reset.txt deleted file mode 100644 index 17b7a6a43a29..000000000000 --- a/Documentation/devicetree/bindings/reset/nuvoton,npcm-reset.txt +++ /dev/null @@ -1,32 +0,0 @@ -Nuvoton NPCM Reset controller - -Required properties: -- compatible : "nuvoton,npcm750-reset" for NPCM7XX BMC -- reg : specifies physical base address and size of the register. -- #reset-cells: must be set to 2 - -Optional property: -- nuvoton,sw-reset-number - Contains the software reset number to restart the SoC. - NPCM7xx contain four software reset that represent numbers 1 to 4. - - If 'nuvoton,sw-reset-number' is not specified software reset is disabled. - -Example: - rstc: rstc@f0801000 { - compatible = "nuvoton,npcm750-reset"; - reg = <0xf0801000 0x70>; - #reset-cells = <2>; - nuvoton,sw-reset-number = <2>; - }; - -Specifying reset lines connected to IP NPCM7XX modules -====================================================== -example: - - spi0: spi@..... { - ... - resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>; - ... - }; - -The index could be found in . diff --git a/Documentation/devicetree/bindings/reset/nuvoton,npcm750-reset.yaml b/Documentation/devicetree/bindings/reset/nuvoton,npcm750-reset.yaml new file mode 100644 index 000000000000..fa5e4ea6400e --- /dev/null +++ b/Documentation/devicetree/bindings/reset/nuvoton,npcm750-reset.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/nuvoton,npcm750-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM Reset controller + +maintainers: + - Tomer Maimon + +properties: + compatible: + const: nuvoton,npcm750-reset + + reg: + maxItems: 1 + + '#reset-cells': + const: 2 + + nuvoton,sw-reset-number: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + maximum: 4 + description: | + Contains the software reset number to restart the SoC. + If not specified, software reset is disabled. + +required: + - compatible + - reg + - '#reset-cells' + +additionalProperties: false + +examples: + - | + #include + rstc: rstc@f0801000 { + compatible = "nuvoton,npcm750-reset"; + reg = <0xf0801000 0x70>; + #reset-cells = <2>; + nuvoton,sw-reset-number = <2>; + }; + + // Specifying reset lines connected to IP NPCM7XX modules + spi0: spi { + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>; + }; -- 2.30.2