Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1254279ybl; Fri, 23 Aug 2019 16:16:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxb/j4iRt8xXo2p7sGkqW4UCLlvJ7/DuHyWB0F7XdO/3MxCBpdWNG82LD0Q73m6F+b5fJRk X-Received: by 2002:a63:1908:: with SMTP id z8mr5831389pgl.433.1566602180185; Fri, 23 Aug 2019 16:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602180; cv=none; d=google.com; s=arc-20160816; b=R8Z+0KgmGyZsi7cquxFEZM9lRIN5bpDAM0nd9IszW2wCRTzzi/3uxk2aHPJjHcIGU1 /lNIxxX6Fv0hoftz9CZcq9Azzibty3tt2N3WIqaNXHG6OTvM3Ctr8QWuotTWY6lYb20S 1GRz+IJStF8HAnjK8YzqmhJsadTnUS4y/fPGvUHyZ15AlyQ4japWHs6Jt15sFufhABJc IFsJVnCgK1T7sVrK/ZkFf3aWaTecGx+95JCsxrAlejA0YZRVJliAKTptlbufrr3K2sKN +TVdChXBU8wRTOERsKkbGamZIebW0LcuLWA0UHPLZoV2fO1QuZArn9iJf1N+lyLG+UzZ KBzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KPpGmBi/lUbFaSa6Vb69brR4dD41LMnHtfF4Wa74zhE=; b=ixBrULwsB9Ql+3GS4/nXna0LJoN3Bs4Zj8sbEwW6MtwMKbz5j7aXvVQDi3S/Q+B6dG 7bRZ0FCE/JswzqEzRVK0bBb4GJy6iFIbDzPjKvnjs9f4lyV7m7UXDypQgWbF6ngisv4m HFLQYHeOH21rc2hJJyH0IA20yvgunTh9S+GYWKSbKv1MJ6bhE/N+R3x+F1vQh54Sx6PI 7xB8hyhYnshhDvuaP4ccjmaJyBQa6Xsaad2wx4rylXTu6EYzPF3+tnduAcXoEJ/jxN9K QG3NK5gRA9ZMFsFctIP4/wpfaAHtb11Iv5dKDKkh4kthM9Jv+vF0CGiFGkssgadh0ilp 9p4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tDsKSTc7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si2953865pgv.530.2019.08.23.16.16.05; Fri, 23 Aug 2019 16:16:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tDsKSTc7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2392322AbfHWMZn (ORCPT + 99 others); Fri, 23 Aug 2019 08:25:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:33526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732221AbfHWMZn (ORCPT ); Fri, 23 Aug 2019 08:25:43 -0400 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF53B22CE3; Fri, 23 Aug 2019 12:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566563142; bh=g5FCobcLXbFWD1bY0xj5Ltqc0DHt00eTk6b7TbAqkL4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tDsKSTc7Pq6mv0Fb5A+C8soRQPOrS/jACL/AZ63MamUPdYVDbbqyGeMiv7oo1j90v AkJffzmtTA4Oj01DMNU6GQOCTNHbwh3eUQ3oj3wh8JRPbwHeI/NOcOYdGMsKDutVYj GzBy8i+0rvmVcGpLKahhtGQgaBphnre2iYLa2Xkw= Received: by mail-qt1-f170.google.com with SMTP id x4so10957940qts.5; Fri, 23 Aug 2019 05:25:41 -0700 (PDT) X-Gm-Message-State: APjAAAUEwfkqi9ZWTYcJZMZLF3KVPOdWHkmWbbyUOAeKZZk+BgdDnMCQ Y1x8KpxGnlu7ym+4hh5mSGnvxpx1skvE3+TVmQ== X-Received: by 2002:ac8:44c4:: with SMTP id b4mr4355900qto.224.1566563141086; Fri, 23 Aug 2019 05:25:41 -0700 (PDT) MIME-Version: 1.0 References: <42039170811f798b8edc66bf85166aefe7dbc903.1566531960.git.eswara.kota@linux.intel.com> In-Reply-To: <42039170811f798b8edc66bf85166aefe7dbc903.1566531960.git.eswara.kota@linux.intel.com> From: Rob Herring Date: Fri, 23 Aug 2019 07:25:29 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: reset: Add YAML schemas for the Intel Reset controller To: Dilip Kota Cc: Philipp Zabel , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , cheol.yong.kim@intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 23, 2019 at 12:28 AM Dilip Kota wrote: > > Add YAML schemas for the reset controller on Intel > Lightening Mountain (LGM) SoC. > > Signed-off-by: Dilip Kota > --- > Changes on v2: > Address review comments > Update the compatible property definition > Add description for reset-cells > Add 'additionalProperties: false' property > > .../bindings/reset/intel,syscon-reset.yaml | 53 ++++++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/reset/intel,syscon-reset.yaml > > diff --git a/Documentation/devicetree/bindings/reset/intel,syscon-reset.yaml b/Documentation/devicetree/bindings/reset/intel,syscon-reset.yaml > new file mode 100644 > index 000000000000..3403a967190a > --- /dev/null > +++ b/Documentation/devicetree/bindings/reset/intel,syscon-reset.yaml > @@ -0,0 +1,53 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/reset/intel,syscon-reset.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Intel Lightening Mountain SoC System Reset Controller > + > +maintainers: > + - Dilip Kota > + > +properties: > + compatible: > + items: > + - const: intel,rcu-lgm > + - const: syscon > + > + reg: > + description: Reset controller register base address and size > + > + intel,global-reset: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: Global reset register offset and bit offset. > + > + "#reset-cells": > + const: 2 > + description: | > + The 1st cell is the register offset. > + The 2nd cell is the bit offset in the register. > + > +required: > + - compatible > + - reg > + - intel,global-reset > + - "#reset-cells" > + > +additionalProperties: false > + > +examples: > + - | > + rcu0: reset-controller@00000000 { > + compatible = "intel,rcu-lgm", "syscon"; > + reg = <0x000000 0x80000>; > + intel,global-reset = <0x10 30>; > + #reset-cells = <2>; > + }; > + > + pcie_phy0: pciephy@... { > + ... You need to run 'make dt_binding_check' and fix the warnings. The example has to be buildable and it is not. > + /* address offset: 0x10, bit offset: 12 */ > + resets = <&rcu0 0x10 12>; > + ... > + }; > -- > 2.11.0 >