Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp670287ybl; Thu, 23 Jan 2020 05:46:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzh5gmPPY9zEymiXWiOWIy1LOiFJgYn+l3BmRXhsLmsmGFBGkepG5t4cjlYrL59roKdf5ny X-Received: by 2002:a9d:730e:: with SMTP id e14mr10944489otk.62.1579787175798; Thu, 23 Jan 2020 05:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579787175; cv=none; d=google.com; s=arc-20160816; b=OF+vXE6DpEyDkskSjnHD3JFgL2jA0OEXBP87VT110KNBn8q9CuXZiA5zhIeTT55lzq WtNO3S/sq6XzDFPHBi9PpNPtVW/O9unlplptQb6y9qSdNuDsJrJDPv3KgUOx4xUQw82s jAPgjBpjtKhIbvm0nmur6scwD3VEyy32uyMd9aQJTJi6kZCVjzJOcFmRfIfitJN1Yseo OXDY+fA3JsNipaLp8mrh/nW+fIGEnTCg4mgYi3JUDpcMigrE30boiHz33pueJ47RUsgH 2EXFcpfO5tKl8DXC3AjeSmyzdRuEXMh0zIbi+JTPqWhC4OKfllJH61nPCZWN7PjafMwR Ba1A== 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=yI/0H736yZs9GASzTfMva00q9faPZ1ARZV3Ofbpdgow=; b=aN2izIMPW6lizh/UY32q5h+np13ttKvI2rS4OF235Rz0gnsET3OQAOetmz818TYKH1 m7PIyOa2Y3C+2PEbw0HDzxkrnNJQIQtferu2f2tbNXTSr91hn6KIIwcaPcb81AJISgK1 LSCHCDNB7dEfJf2LVqWn0l/uE71IP5ZlmCfZSgjYX9CcYI4hGZaFKkWkL1Vvx6qAYZSw SlI5OiudosvEjSma4GXRkw3sGHEF6luWONakh9YMsdfdarvMav2egEhprbjDVcaOFFRv 04Y7K98IkHtk3kwZlwpw67wUOWt37KYqhHlHUeYAKZ6TEoSHk6gaAcVPsltPckqjp3FD Fiew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f6itICyE; 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 w7si833601oie.196.2020.01.23.05.46.03; Thu, 23 Jan 2020 05:46:15 -0800 (PST) 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=f6itICyE; 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 S1728899AbgAWNor (ORCPT + 99 others); Thu, 23 Jan 2020 08:44:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:33630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbgAWNoq (ORCPT ); Thu, 23 Jan 2020 08:44:46 -0500 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (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 2C9E024688; Thu, 23 Jan 2020 13:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579787085; bh=ehtW9l9ACdNUpNo6gsMIkwoNpfOA6s3D+OSmNLbylzQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=f6itICyEccPeU2EkmbAw44eFVsEnQiCvVRTYc3RMmfw1f5V5rghHrFdF6dnC+r1wV LW0nDwCzxH/GTTtVFZtYGJLOP+nJu1VWepUnkNyHvE63DC36JQuxG/BFcyxUuYXolx hnkuLUgk7s2DCpWGgBq76zQCpyZ5Of2xjyCLBDDQ= Received: by mail-qk1-f169.google.com with SMTP id c17so3403985qkg.7; Thu, 23 Jan 2020 05:44:45 -0800 (PST) X-Gm-Message-State: APjAAAVGqpIIeB5KV3T+3vZXkfcRfIR9lYyS07oqlxR+975ItnwWTjCS hGYipOYanfuv1/Pzjs8/SQjtSXIWl9u92Es0lQ== X-Received: by 2002:a05:620a:1eb:: with SMTP id x11mr16326677qkn.254.1579787084251; Thu, 23 Jan 2020 05:44:44 -0800 (PST) MIME-Version: 1.0 References: <09a2fe69-842f-01cf-1cfa-d5fc639b158a@gmail.com> In-Reply-To: <09a2fe69-842f-01cf-1cfa-d5fc639b158a@gmail.com> From: Rob Herring Date: Thu, 23 Jan 2020 07:44:32 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v10 1/2] dt-bindings: edac: dmc-520.yaml To: Shiping Ji Cc: Borislav Petkov , James Morse , Mark Rutland , devicetree@vger.kernel.org, LKML , linux-edac , Mauro Carvalho Chehab , Sasha Levin , hangl@microsoft.com, Lei Wang , ruizhao@microsoft.com, shji@microsoft.com, Scott Branden , Yuqing Shen 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 Wed, Jan 22, 2020 at 6:31 PM Shiping Ji wrote: > > This is the device tree bindings for new EDAC driver dmc520_edac.c. > > From: Lei Wang > > Signed-off-by: Lei Wang > Signed-off-by: Shiping Ji > Reviewed-by: James Morse > > --- > Changes in v10: > - Convert to the YAML format for binding description > > --- > .../devicetree/bindings/edac/dmc-520.yaml | 56 +++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/edac/dmc-520.yaml > > diff --git a/Documentation/devicetree/bindings/edac/dmc-520.yaml b/Documentation/devicetree/bindings/edac/dmc-520.yaml > new file mode 100644 > index 000000000000..dd5982b227b2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/edac/dmc-520.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings please: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/edac/dmc-520.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ARM DMC-520 EDAC bindings > + > +maintainers: > + - Lei Wang > + > +description: |+ > + DMC-520 node is defined to describe DRAM error detection and correction. > + > + https://static.docs.arm.com/100000/0200/corelink_dmc520_trm_100000_0200_01_en.pdf > + > +properties: > + compatible: > + items: > + - const: brcm,dmc-520 > + - const: arm,dmc-520 > + > + reg: > + maxItems: 1 > + > + interrupts: > + minItems: 1 > + > + interrupt-names: > + minItems: 1 > + items: > + - const: ram_ecc_errc > + - const: ram_ecc_errd > + - const: dram_ecc_errc > + - const: dram_ecc_errd > + - const: failed_access > + - const: failed_prog > + - const: link_err > + - const: temperature_event > + - const: arch_fsm > + - const: phy_request This defines not just the names, but the index they must be at which I don't think you want. minItems: 1 maxItems: 10 items: enum: - ram_ecc_errc - ram_ecc_errd ... Note the lack of '-' under 'items' making it a schema that applies to all items. Run 'make dt_binding_check' as that would have caught this issue on the example. Rob