Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp41825pxb; Tue, 12 Apr 2022 16:14:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH+JiuDBLYXTkRd55HnuXztkOrXjRVJcbGOgXRNnnMb2j/pa7unnBNw9YNnrX8gqb5+xh5 X-Received: by 2002:a63:af06:0:b0:378:3582:a49f with SMTP id w6-20020a63af06000000b003783582a49fmr32570018pge.125.1649805257744; Tue, 12 Apr 2022 16:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649805257; cv=none; d=google.com; s=arc-20160816; b=sbf1b3XSpNICJoYg/mvnm3yu2oFD5rdvnZwJQIloq2ZVR29+XJFyMh/gI3XkRYGHGR jFntjrS3dF0tk1zqovfTmWCxlM49HURuexB2DY92V+HoSQEeb8ja2uoQ2sJLkb7OGWjw TGNAb5uam5dPMaGonEqilbsmaQysBpOL4ixDGHX16a1NOBCqD8PJTZ/N27F0e0CJDEn6 JWCEjZHGYf5WU52nPjXVLgT+fX+S85cU7MNy4i5yMvH6/zX6+5ZiDpDBdyeYH/AePuuP zD/n9AUIVp9YjAXrT8bP4j9Pxbly6OEUI1BDyKYSjqRnhl+IVOa/88oVay8De9ZLhTIt /urw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TIvV9HUS6U5uZnee53C8qefZW/ieHFeAYqZWIX5PS5Y=; b=SM2t+13jv/xZIFjxwCMR5CyVTwkhf+R6aDWRiXtkp7CZYx2S0lsDczr6C6zZO9bnin +Rzlofshjef+6CRUJiup1ObtaToEWTJNYpy8LLE0WYzeB/Gk9CaKU9ClfOSwjFZmGJ+M XBziQzwdXGfZrNpSqzGVbOQ+YINHrYY15sP//SjKQZ3J585ecdfQSC9dPdU8Lcaim154 aRTNEnFF3Oq/RH/0PNsK38oPfGVioI1zR1cIU7MdjUvWP377cLrW94Moypm67DLM/1L/ CXEHdiognUyhJEOxgGtg6JKYw2HvzFDSqIUehgj7O3VTv5o84jDYEMyeMsOPUCbr+fHc 1ZMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SzRXWvWD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y18-20020a17090322d200b00156db89bde3si2760933plg.25.2022.04.12.16.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SzRXWvWD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C5CB82128E8; Tue, 12 Apr 2022 14:57:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241946AbiDINUk (ORCPT + 99 others); Sat, 9 Apr 2022 09:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241945AbiDINUd (ORCPT ); Sat, 9 Apr 2022 09:20:33 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FFF93CFE0 for ; Sat, 9 Apr 2022 06:18:26 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id bg10so22320866ejb.4 for ; Sat, 09 Apr 2022 06:18:26 -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:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=TIvV9HUS6U5uZnee53C8qefZW/ieHFeAYqZWIX5PS5Y=; b=SzRXWvWDjWrGNzjafa7OdZ7o4vH48igNd7Ks1ce5EJ7N6I4dXV5MDU1qtLQ2jzFovL ITZxvtYVCEWld541IVMPomLfM7UzhLXw82SzeUPQnhw4WGEsRDV9ynC/d7wOvDiSXJL1 6jWU5rE5JqUyBNCOGagVZAOxv/7xgYkhbgIhc2wsa+5ndvp2bQHfNZvryIrFBmfygBKi zkwOQ21EPtH3azxG3YsXTBM08W7eBDA/ho0x6AFGZtYQlBQMuR6pbVJOwTW4c/OXpzke X8yuVBwVlsTBhY50urMq1+Js4wjTcDwbXW3/4yv9CApFeW+n0Qmc7RDDK1Eyym7GsGeQ LrZQ== 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:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=TIvV9HUS6U5uZnee53C8qefZW/ieHFeAYqZWIX5PS5Y=; b=mZXroiEBhY/oNzxuS/MSFvFClYD8jnV5AYHL4Su2Tf1S8GAU/9e0NqqcLgpnyy6g7a vpIXuYSCVT7BUhMvN5ziwyG+PUtWsFqseYNz5TCD8lIzK6tTJJJajcZ1w3cf85q3K00I n0ahhR2rLV01+iL6Og1YBwLD6D5McQZQ38gGO1oAFhFwnQMqxwsXDaQ6sANmq+FpUPDa hQbj025SEMJ+SUHUUQ00xhQH1vrInqwvAx81oOE0iei4w8v5MfRonzdwqlC7aJZdjwEM y9N6sBNthZVL+wxNSnW3IxSB9VwdcHRtsb+J7EJufhqqQcpNWQldmbYYlpsu9ug2UjJw 58hg== X-Gm-Message-State: AOAM530XwWrpArQtdCXfBmpjYJPDyhnEcUkwOwDhqFC8jMSeDuztDxUs mviHRq0/UHMhfDSsfXl6mtdn7g== X-Received: by 2002:a17:906:d924:b0:6e8:6a04:c1bc with SMTP id rn4-20020a170906d92400b006e86a04c1bcmr4257899ejb.720.1649510304986; Sat, 09 Apr 2022 06:18:24 -0700 (PDT) Received: from [192.168.0.188] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id sh31-20020a1709076e9f00b006e8289e5836sm3550229ejc.117.2022.04.09.06.18.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 Apr 2022 06:18:24 -0700 (PDT) Message-ID: <99a97b0f-19a5-136d-9160-c9fde6f3548c@linaro.org> Date: Sat, 9 Apr 2022 15:18:23 +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 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> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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:09, H. Nikolaus Schaller wrote: > > >> Am 09.04.2022 um 13:26 schrieb Krzysztof Kozlowski : >> >> On 08/04/2022 20:37, H. Nikolaus Schaller wrote: >>> jz4780-nemc needs to be compatible to simple-mfd as well or we get >>> >>> arch/mips/boot/dts/ingenic/ci20.dtb: memory-controller@13410000: compatible: 'oneOf' conditional failed, one must be fixed: >>> ['ingenic,jz4780-nemc', 'simple-mfd'] is too long >>> 'ingenic,jz4725b-nemc' was expected >>> 'ingenic,jz4740-nemc' was expected >>> From schema: Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml >>> >>> Signed-off-by: H. Nikolaus Schaller >>> --- >>> .../devicetree/bindings/memory-controllers/ingenic,nemc.yaml | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml >>> index 24f9e19820282..3b1116588de3d 100644 >>> --- a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml >>> +++ b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml >>> @@ -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. It's not how we code it. Please do not introduce inconsistent - even if valid - blocks. > >> The true question is whether you need simple-mfd. Isn't the binding (and >> the driver) expected to instantiate its children? > > I had expected that but current ingenic,jz4780-nemc code doesn't. Paul provided good reason for the simple-mfd. Use this one instead of dt check warning. DT check warning means nothing, does not bring the actual answer to "why", because it is artificial tool. The answer to "why" is in what Paul wrote. Best regards, Krzysztof