Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp946172pxr; Mon, 11 Apr 2022 11:00:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi+ORpzHiQCxSfPOg5lldQiR+8pHUmyN3Y6hG+/7Wp5Fgf2ojpyyK7zS+jUx/8Jni1O71a X-Received: by 2002:a17:90b:4c0f:b0:1c7:d2de:5aec with SMTP id na15-20020a17090b4c0f00b001c7d2de5aecmr429043pjb.110.1649700002211; Mon, 11 Apr 2022 11:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649700002; cv=none; d=google.com; s=arc-20160816; b=eDPPnN01v4e027/BYmPn9UuXZ9YN7gY8hnBcl013EbJSFctFgMRgIJqVDYFXCFLeKB fo0oIdObkTOYz0p/XjGoOjqNcZTCkpbnEsPZGiqzWzzTP2lwNEEepn/Ku0ZJxh8bIgQA nRoMDGjhooDx6QQLA7NAbrBZzFPGvCqX81DQakG2rsXuKu2RlBApWVrXSrcqmbHdCXCQ raGVPGDDwD0mVfpwPqbGIGyT3Imx3hcX849C4J8VmdMQLCJiDavRrNYMmGZLedDcUUh6 7lt3wZK/10p5KYhEsTEEPo7kKymy+2Asd8tp28Pi+vUkylCmHjS1Zd/YrpHIFJ1V9P6S Avfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=cQV88Wncy+sFJVshappGK0lQZjUfJDBJIGxPr0CLJDM=; b=crieh4eov9nciM8Qxlb1r03w/RdLdKkdlrYI0fR2MvUL1PsGNfirBQm0EL34Se+f+J UZpwrfgU0zVzyN/G0fz0IXQwUymipfaZn7raDoc4HcR0ZZsfJhFYtUAsr8m9avKZwqY6 yL3DvnITH581lI/7IY5SMtHrOXF6L1YgKGoKrr+Y57L/tllzuSyh6rUvi0FTstAqr5tf +kFpANdbKeDh2fhFcudky2t3DHEepMTYv7DIySU7Ump4BoGZIoqoSxWnB8CDOcm6yqUJ IdUBXKVO022E7AIYNH2ZiWlW4XM/6psleV7+A3ZyPXEX49KFFfsGIPFtjkPtL6NpNnxl z4Fg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056a0022c800b004fa843103dbsi10005196pfj.193.2022.04.11.10.59.46; Mon, 11 Apr 2022 11:00:02 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239801AbiDHVOT (ORCPT + 99 others); Fri, 8 Apr 2022 17:14:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239129AbiDHVOO (ORCPT ); Fri, 8 Apr 2022 17:14:14 -0400 Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0372B187B92; Fri, 8 Apr 2022 14:12:10 -0700 (PDT) Received: by mail-oi1-f177.google.com with SMTP id r8so10099752oib.5; Fri, 08 Apr 2022 14:12:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cQV88Wncy+sFJVshappGK0lQZjUfJDBJIGxPr0CLJDM=; b=EvzNumx+2+ci8gPLHLmrfusRorbNEvY9m/vi4bIvrHfqN6dVU9YYnXRk+gf5Zmc5pA mkAdtKChnTBzVuGxJpz53nKZVaub24VdEuiYz6vHEZw/orkYW/3ViTlhh84/cgDQfyho x3P7W9mc9BHjhmEvA8DgtFqd3xVbAVt8PgXmPd6CArz3oYn6Lk2xQTNm2RxRCwl1szbH 6qgcb4AhqU2/sqE1i0iVe7RGhPSvSw3gVMThktA9zndfps2YPM/LZMoMWuCx86J2YGhg y8ylvnCqrCkl3/nYHm6EZobJAndx+yke0RPUKUWj/IQPd5AMAUxu0x0LJctyPwIx5tkY TM7Q== X-Gm-Message-State: AOAM5322xy0z0ttlKvpxXphqKr07TVpnbEjjaquxYRztWnmh94Ip3Zhs 6BiMjzPZWLv0O2L5fYmZ8Tj/pugw6A== X-Received: by 2002:a05:6808:1281:b0:2ec:eac7:1d0d with SMTP id a1-20020a056808128100b002eceac71d0dmr781840oiw.169.1649452329113; Fri, 08 Apr 2022 14:12:09 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id j145-20020acaeb97000000b002d9f37166c1sm8991041oih.17.2022.04.08.14.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 14:12:08 -0700 (PDT) Received: (nullmailer pid 4074368 invoked by uid 1000); Fri, 08 Apr 2022 21:12:08 -0000 Date: Fri, 8 Apr 2022 16:12:08 -0500 From: Rob Herring To: Philipp Zabel Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , Neil Armstrong , linux-kernel@vger.kernel.org, Eugeniy Paltsev Subject: Re: [PATCH 10/14] dt-bindings: reset: snps,hsdk-reset: Convert to yaml Message-ID: References: <20220407154338.4190674-1-p.zabel@pengutronix.de> <20220407154338.4190674-10-p.zabel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407154338.4190674-10-p.zabel@pengutronix.de> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,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 On Thu, Apr 07, 2022 at 05:43:34PM +0200, Philipp Zabel wrote: > Convert the device tree bindings for the Synopsys HSDK reset controller > to YAML schema to allow participating in DT validation. > > Signed-off-by: Philipp Zabel > Cc: Eugeniy Paltsev > --- > .../bindings/reset/snps,hsdk-reset.txt | 28 ----------- > .../bindings/reset/snps,hsdk-reset.yaml | 47 +++++++++++++++++++ > 2 files changed, 47 insertions(+), 28 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/reset/snps,hsdk-reset.txt > create mode 100644 Documentation/devicetree/bindings/reset/snps,hsdk-reset.yaml > > diff --git a/Documentation/devicetree/bindings/reset/snps,hsdk-reset.txt b/Documentation/devicetree/bindings/reset/snps,hsdk-reset.txt > deleted file mode 100644 > index 830069b1c37c..000000000000 > --- a/Documentation/devicetree/bindings/reset/snps,hsdk-reset.txt > +++ /dev/null > @@ -1,28 +0,0 @@ > -Binding for the Synopsys HSDK reset controller > - > -This binding uses the common reset binding[1]. > - > -[1] Documentation/devicetree/bindings/reset/reset.txt > - > -Required properties: > -- compatible: should be "snps,hsdk-reset". > -- reg: should always contain 2 pairs address - length: first for reset > - configuration register and second for corresponding SW reset and status bits > - register. > -- #reset-cells: from common reset binding; Should always be set to 1. > - > -Example: > - reset: reset@880 { > - compatible = "snps,hsdk-reset"; > - #reset-cells = <1>; > - reg = <0x8A0 0x4>, <0xFF0 0x4>; > - }; > - > -Specifying reset lines connected to IP modules: > - ethernet@.... { > - .... > - resets = <&reset HSDK_V1_ETH_RESET>; > - .... > - }; > - > -The index could be found in > diff --git a/Documentation/devicetree/bindings/reset/snps,hsdk-reset.yaml b/Documentation/devicetree/bindings/reset/snps,hsdk-reset.yaml > new file mode 100644 > index 000000000000..a7cb5580c070 > --- /dev/null > +++ b/Documentation/devicetree/bindings/reset/snps,hsdk-reset.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/reset/snps,hsdk-reset.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Synopsys HSDK reset controller > + > +maintainers: > + - Eugeniy Paltsev > + > +properties: > + compatible: > + const: snps,hsdk-reset > + > + reg: > + minItems: 2 > + maxItems: 2 > + description: | > + Should always contain 2 pairs address - length: first for reset > + configuration register and second for corresponding SW reset and status > + bits register. items: - description: reset configuration register - description: corresponding SW reset and status bits register > + > + '#reset-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - '#reset-cells' > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + reset: reset@880 { > + compatible = "snps,hsdk-reset"; > + #reset-cells = <1>; > + reg = <0x8A0 0x4>, <0xFF0 0x4>; > + }; > + > + // Specifying reset lines connected to IP modules: > + ethernet { > + resets = <&reset HSDK_ETH_RESET>; > + }; No need to show the consumer side in every provider. Please drop. Rob