Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp653136pxr; Mon, 11 Apr 2022 03:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3s7/6ZHMzYf6TOA+G8K27HVtHBt7uVRSsK49VYG7HFuV/LpBwP/EOrwJMtkZuVVMw/eBl X-Received: by 2002:a05:6402:3549:b0:419:343c:521 with SMTP id f9-20020a056402354900b00419343c0521mr32195520edd.85.1649674305122; Mon, 11 Apr 2022 03:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649674305; cv=none; d=google.com; s=arc-20160816; b=GyqZRHDFRdt9gY5NLwsw2bEd24MjeH2i8ICaOMX02kOJPwhH+8QW7892CJtxvpPLUV 4kL8ioOksXEvzhiCU/ioMUGjLURkWyIcGVHzOXgxNzqfQ3cb5YtFYMFDYwK3V4yZvhBn 0eUmjnZNR8GSr9svITM5a/wu9a6YBCKFZPn7CrV5759cNSt5Xq5YmEZhVJhkxJ/1tLPx xJB1nPB5sazfPKFTa0EA280oy7lU3wVdnQXO1wxyH/ldm4gJQvTbu3tKDR6VtCsivV6+ V3/rlTBhoIsyKaFYckuawv4RRsXKfBbMhcZxgW9e1/8PEPKLwiZHM3T1m6BPUBkoBnnp jCUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Ymd6ZB8X+RwTwj7uy0xGRMmhXHvaYLUxYMCOqaKXCEw=; b=aFAEQ9V7L0J+4oBT6OfLq2U/+2zWd5qlbgTF35UpbK8rZVrQJS2e0xWbMYAB2xPM/8 RepHNvKJQ0j7p+9GoO78ePWJaBnyODXr+hIR8w/ZeXEKbJ7SIudXXxXtjqbw+Vn8Yt6+ b9xXL1JWKzBrdRHghzTVRpu53hJCGEam1NRXRp4ZKQ97PVLtmuCp1aXUPv4ySVxk9Q7p yJAUNcU0xGaLRNeFLoPLK5aTIs11O0a+JjDUxKZYoTLDw72VdkAw0rdHlrhsQGDobcZz ic+D7t/u/2eqSdy1LGMJ4HQUm4s1EzQOroGxF5TJTXODlI9cOQ3FPSVCMUEHe9BH224e wdhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="q4Bwc/sQ"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh10-20020a170906a94a00b006e88cb94b9bsi2415063ejb.360.2022.04.11.03.51.20; Mon, 11 Apr 2022 03:51:44 -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; dkim=pass header.i=@linaro.org header.s=google header.b="q4Bwc/sQ"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240197AbiDJPiO (ORCPT + 99 others); Sun, 10 Apr 2022 11:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234321AbiDJPiK (ORCPT ); Sun, 10 Apr 2022 11:38:10 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8B002180A for ; Sun, 10 Apr 2022 08:35:58 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id bv19so3183179ejb.6 for ; Sun, 10 Apr 2022 08:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=Ymd6ZB8X+RwTwj7uy0xGRMmhXHvaYLUxYMCOqaKXCEw=; b=q4Bwc/sQ9eh7WrqSPQwLuUvKn+WnDSv2ZFIIv/MuoTBPXfda+uMW82lCo3xaOEkflX 6pmv0q0AHQOgD837jusI6OwhlrFVUEYHL0dljBFQdBNE/1ZPnOk+M3zO8YqwgZ37mQxe VU7sruwKrS3dPobB8x3xlPfbGgMajrUFtJxaOFPyPt/dluJmmcqkUq8XGK7hR+hDHv7M ZNabGDcgM8mIyblJbBRGqXFCKLV9nQX+1dL6jVVFY/KuP4Z5Y3LQ5i32S2Yi2TBpwaN0 FWfD8L6P9OmQoXLD0F0AexsccH08kvl2XuRP+44fG1Tdtusm81i9jioBNS5Id5tYaeyh Y6cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=Ymd6ZB8X+RwTwj7uy0xGRMmhXHvaYLUxYMCOqaKXCEw=; b=il8C49R5M2Tk6iAeF2Fiti2+DF2GrGiW5QOviT8vRVwjS+U7iwb6x3AfkXzyE0fblG wLUgsAHY3p0UZlH7QhcP8v7JDC56FIXgXmMFLN2aqWpO/WSbxF39cg135YuxhLgQuU9T 6txfTHbL7S/Czp5m8a+Bl9UFpMwbOV9CmLCHN14dbqHV1zNpF/yLAHBZmDDxNNuxxaai SCl6RIVfKTuVz3gk6D6DvtqN1uUgH+ZA/P74gUssvd1Z8pYnbc+bFuH82r4jp5EmFqZu wb5AR3YHqBW2YiMTRpUKiJ1SRKTFe3n+hvsjoT6nG0RgZn5pmchvuDqIjKzZaJkmp3cf BoMg== X-Gm-Message-State: AOAM530GT5X7xQRXIyf7zkBsfxuuPF1vj1XkIiuGN/kpV2meMsfA7JzI wnJr7fXRUdrC6lV1oE4Zq96dFA== X-Received: by 2002:a17:907:3e0a:b0:6e8:8d91:48bb with SMTP id hp10-20020a1709073e0a00b006e88d9148bbmr1964405ejc.237.1649604957362; Sun, 10 Apr 2022 08:35:57 -0700 (PDT) Received: from [192.168.0.189] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id jv20-20020a170907769400b006e7f859e683sm7386652ejc.19.2022.04.10.08.35.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 08:35:56 -0700 (PDT) Message-ID: Date: Sun, 10 Apr 2022 17:35:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 13/18] dt-bindings: fix jz4780-nemc issue as reported by dtbscheck Content-Language: en-US From: Krzysztof Kozlowski To: "H. Nikolaus Schaller" Cc: Rob Herring , Paul Cercueil , Thomas Bogendoerfer , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, letux-kernel@openphoenux.org References: <84adfe6237cd4cfd52cb9723416f69926e556e55.1649443080.git.hns@goldelico.com> <036b66b2-c221-6e9e-6a56-510e7a0d20d3@linaro.org> <99a97b0f-19a5-136d-9160-c9fde6f3548c@linaro.org> In-Reply-To: <99a97b0f-19a5-136d-9160-c9fde6f3548c@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 09/04/2022 15:18, Krzysztof Kozlowski wrote: > On 09/04/2022 15:09, H. Nikolaus Schaller wrote: (...) >>>> @@ -17,7 +17,7 @@ properties: >>>> oneOf: >>>> - enum: >>>> - >>>> - - ingenic,jz4780-nemc >>>> + - [ , simple-mfd ] >>> >>> This is not correct representation. If you really need simple-mfd, then >>> this should be a separate item below oneOf. >> >> Well, it is valid YAML syntax and seems to be accepted by dtbscheck. Minor update: Well, it is not a valid schema. Rob's checker now confirmed. If you run dt_bindings_check by yourself you will see the error: properties:compatible:oneOf:0:enum:1: ['ingenic', 'jz4780-nemc', 'simple-mfd'] is not of type 'string' Probably because enum expects string, not another enum (so enum inside enum is not correct). If you do not see the error, you might be missing some packages (mentioned in writing-schema + yamllint for a different issue) or your dtschema is old. > > It's not how we code it. Please do not introduce inconsistent - even if > valid - blocks. Best regards, Krzysztof