Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6688697ybe; Wed, 18 Sep 2019 07:31:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR/ZYEqphORp2RinvVDqkD/b4YQwC5BuKEAe0KhujWNz/hV65Nx2EPixWNGJLuQAF1Wuv+ X-Received: by 2002:a50:a0e2:: with SMTP id 89mr10551414edo.118.1568817115269; Wed, 18 Sep 2019 07:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568817115; cv=none; d=google.com; s=arc-20160816; b=bJaaKw5VgtgO0PPW4s8+bPkYwMizRrmVJ+zu0Vuw3dn57wN44LX/LkTy+6KOWTAR7/ ZwJ1Y6OdL408ed+HhzpImAEI0A1SLe/avPTBA4XCFSZFW1/K62JMXHo1DMVdEV8sPtSg xl6IAqFxMXfbf+txC8xP2NzRy1PiW1MPLdT05gN/IiJDxWrZGfXG/EJsc1gYHPxcS19C rtQsWLteCegs4Yq/v1EFPxpn4YnhtNJ68rH62iK+Ls4SCm2FheMwjOfU+0d21+bKITfa 8m8EkN9yciQD4zZ+Ol0ZQTXmZgai4kWsgrPnNz+lmFXf7WoO0a2YZgF+EH631aL8Ndz8 tgBw== 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=J5/WMo00SIJFtzzAA6QZDs2syJS9AzLNNILHsi5O7hs=; b=i4TGaXcWdQgAAa0L6ZMkJNQCTK/3eTgxKPd5MApTGnjdO4EgbEsPcU7yPC16h7BT3i N1qv4WYe0E5dksirkAKUkAuLmhG1Hme0cASwH0gAR9rBU4hsvLe+XbzvCH9+11T2Mz7b QIbd50OHR0M7nXfk38BQfVPe6VijNYSLFoucX4gKuqGcezb1UfBdLeu5pkKbr7CWd60D RACRjogzdApBdTIiu0RYsrakT0OgEdK6IirIkejPovOX6az8A7PxbwB7Yk7X2OUP7L94 Vm+gtkQJl95odJbnmwLzfszEOyV6urxaCr6HJPUofdiv7W2svTKquof0XdFW0D/adYqu U8jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ba4o1lo7; 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 a23si3719814edj.201.2019.09.18.07.31.25; Wed, 18 Sep 2019 07:31:55 -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=Ba4o1lo7; 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 S1730496AbfIRO2I (ORCPT + 99 others); Wed, 18 Sep 2019 10:28:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:41310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbfIRO2H (ORCPT ); Wed, 18 Sep 2019 10:28:07 -0400 Received: from mail-yw1-f52.google.com (mail-yw1-f52.google.com [209.85.161.52]) (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 B54C021924; Wed, 18 Sep 2019 14:28:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568816886; bh=5q3vXpVfMLjl2YjmXJxZQQGV0EcKWrcgUz73C6x30T8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ba4o1lo7H5M0Bkey9QjJgKlytYEold2+Tr92Oqq0XjWXTRuMaQk4ECpE4Bcym2OoU VgOzQtw36JtjoKjet0E68dqGZP8Nd3HV/mWlk4cC+CsLkHv+QLhsQue6x3PVcQ+B85 f0mQW+XOismF1Y0ZPox7DdF9Sw0qS7H7gFEP7r7M= Received: by mail-yw1-f52.google.com with SMTP id x64so10239ywg.3; Wed, 18 Sep 2019 07:28:06 -0700 (PDT) X-Gm-Message-State: APjAAAVBmvHxHJu/K8/0KIsv4ylPxJncORXqSL0I7nJriNi4F03ySc4t wsBp/hgI1MW+a/YS6fDgCOJiiDt/7G7YOI+RrQ== X-Received: by 2002:a0d:ddc9:: with SMTP id g192mr3210591ywe.281.1568816885977; Wed, 18 Sep 2019 07:28:05 -0700 (PDT) MIME-Version: 1.0 References: <1568815340-30401-1-git-send-email-pragnesh.patel@sifive.com> In-Reply-To: <1568815340-30401-1-git-send-email-pragnesh.patel@sifive.com> From: Rob Herring Date: Wed, 18 Sep 2019 09:27:53 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] regulator: dt-bindings: Fix building error for dt_binding_check To: Pragnesh Patel Cc: Liam Girdwood , Mark Brown , Mark Rutland , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org 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, Sep 18, 2019 at 9:02 AM Pragnesh Patel wrote: > The subject could be more specific rather than being one that applies to any dt_binding_check breakage in regulators. > Compatible property is not of type 'string' so replace enum > with items. > > Signed-off-by: Pragnesh Patel > --- > Documentation/devicetree/bindings/regulator/fixed-regulator.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml > index a78150c..8d4a7b2 100644 > --- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml > @@ -29,7 +29,7 @@ if: > > properties: > compatible: > - enum: > + items: > - const: regulator-fixed > - const: regulator-fixed-clock This means you expect: compatible = "regulator-fixed", "regulator-fixed-clock"; Did you actually run 'dt_binding_check' because it should fail on the example? I gave you exact change to make. Just remove 'const: ' on each entry. Rob