Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11702011rwl; Tue, 3 Jan 2023 03:32:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXtrgMsWmaxuiJoHYTGUdenKneoAM8dv3pl5b/cgFB0YcdfCOR6t4kfQANTyayxYxGC4REwx X-Received: by 2002:a05:6402:528f:b0:47e:eaae:9a69 with SMTP id en15-20020a056402528f00b0047eeaae9a69mr37568250edb.41.1672745572889; Tue, 03 Jan 2023 03:32:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672745572; cv=none; d=google.com; s=arc-20160816; b=ooDY08uSKgY4Mi8ikBNmyBQvlPAjlNIxm7gxB+tNeLB/M8udAi774jLNpZNNQeXwvz r46e5d292ovppEmcMTvxoguIi4jHX+y+OF4YqWrg3ILyv1eMYXnsnKnVCMbfmGpy/9E9 UyliJy0YOynkUgmoZIq8XjGFuOR7b4gwZQhIAkS7bATSkxmEqUGZTL16hLPnGY/2HXHO Y9CQ+GIKyFAO8L9tnZpvjLzpafUTdyJewQr5Q/b192tKm0gpgtTEu+ZmcEkTj5R1Ee6J uwIBRcYiwrO9mG3k3ZajmiKhdHq9plFkvojI4yWlpY5hVMWg8C8oKVFhhk4rFtJPLSfD eNkg== 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=kE4qqRxLpxxCedBuUJYA+jounttnp3G/CGQUAy2owUc=; b=UiH9zp19/sVShnkZfHOW3V+Fx7cNyx03ktBE7FLx1q8BF7vGF36Mg2UAocUr5Qffc4 N1QCFJQaM1ChcIpQpWJPfr7C3C8ptI3/fd0QrAU/rqmCMm12862Ir1bV2sP6N/jekutv 68s8FQ6JiiuThMXaBQi/7j67DZevO+kv0aVUeBeL3R4SJlv7e+HOuazgZhFPLWwOr2oY 1DfPPwpu22xLONagb3jjId8nsbd8/NSp3NlRffXxc4g6ATSHRwd3YrMylgDmvlKv/pIN ULlF6AeFD4oh7Jpu3hp2SRyyuPJr7Yv6ZSbJEi2FUDAQTzXE34IbvkeSUQtNCVJNY2dS hBXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ill95URu; 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 q16-20020a056402249000b0048567586e48si19934638eda.600.2023.01.03.03.32.37; Tue, 03 Jan 2023 03:32:52 -0800 (PST) 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=Ill95URu; 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 S233023AbjACL2T (ORCPT + 61 others); Tue, 3 Jan 2023 06:28:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232753AbjACL2Q (ORCPT ); Tue, 3 Jan 2023 06:28:16 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20975CE3B for ; Tue, 3 Jan 2023 03:28:15 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id z26so45246909lfu.8 for ; Tue, 03 Jan 2023 03:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kE4qqRxLpxxCedBuUJYA+jounttnp3G/CGQUAy2owUc=; b=Ill95URu0ok8mTKcTGS2lBtZw4eZqXOgHuXYKVuUbo61K1thYXNo+Ruh9Glym7puZ0 zX+XPzU9HkF5NtDV9G9rXGtsfzmAOJikoXWin/OvNxtIq8uqfGhYmtrAPSEAsiU7V1Y5 oLVnULMbddELmoYJH5P78lCIHYZt6Xd4d5rGEnQ+jRQhTspmocjmECdaqb2f976PdL2z TzHa+su9MOIZrwYWj4CqUurmPyIyctOCVXkevmsCzEw1W+ZEN/+9kvMz0UXZ0GelNyM3 ylERXrH6lkJrnMQzYqxWIvb8GHGOvWjgDwWntvVljGUDLd3hptx9gakn71TA3mAo2Yrd L9gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kE4qqRxLpxxCedBuUJYA+jounttnp3G/CGQUAy2owUc=; b=ow9QH/ZTWgtQaHTfBfvUvJeAcVuubbjXwbJZDQzbCBSsdEUWg16+jI9VwERC5Y8lcz rm/jDM2nwjN9giiJZ0HVlQOkD8EAgvBP6OXYmlW7TSjEGO1RB/qoteKonYCCMmFmNuE1 YOp/0lkemlM/Hf561rqpY/ikd+PftixxfYEkb7vryQJ+vIk+parCWgDECqxCpXdbMU9e FAsXYQM7iO0rp6R5R1LjVGrE3WzKd6O0Xl+8QTu1jaYJMeaBzxgcuHfpbvobJ0G8F9W+ FsBknjb6f7nLdRpbLIJyp8NKpWnAgJk41UFDx1CDgKa2AEQgPhfxTnwhk3Hmq929vPrj 7EvQ== X-Gm-Message-State: AFqh2kqyY+BFR/hAKyWoT6dn7T8d4jm3OCEAx1OTIUZPyBpjc3HjsG5L 8qEqY1UoIPQ0r5Y1oeJwuB7reA== X-Received: by 2002:a05:6512:3601:b0:4b7:13b:259d with SMTP id f1-20020a056512360100b004b7013b259dmr10839992lfs.48.1672745293524; Tue, 03 Jan 2023 03:28:13 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id o10-20020ac24e8a000000b004b4fefacd89sm4798236lfr.139.2023.01.03.03.28.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Jan 2023 03:28:13 -0800 (PST) Message-ID: <30423568-df03-1d72-81fe-3a4b33214e5c@linaro.org> Date: Tue, 3 Jan 2023 12:28:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RFC PATCH 3/4] dt-bindings: panel: Introduce dual-link LVDS panel Content-Language: en-US To: Aradhya Bhatia , Rob Herring , Krzysztof Kozlowski , Tomi Valkeinen , Jyri Sarha , David Airlie , Daniel Vetter , Laurent Pinchart , Thierry Reding , Sam Ravnborg , Maxime Ripard , Liam Girdwood , Mark Brown , Lad Prabhakar , Paul Walmsley , Palmer Dabbelt , Albert Ou , Matthias Brugger , Guo Ren Cc: DRI Development List , Devicetree List , Linux Kernel List , Linux RISC-V List , Linux ARM Kernel List , Linux Mediatek List , Linux C-SKY Arch List , Nishanth Menon , Vignesh Raghavendra , Rahul T R , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary References: <20230103064615.5311-1-a-bhatia1@ti.com> <20230103064615.5311-4-a-bhatia1@ti.com> <85837957-f6d2-4722-7693-98c6cf932096@linaro.org> <32d66fb7-6c63-0985-222f-0bd3c36c165d@ti.com> From: Krzysztof Kozlowski In-Reply-To: <32d66fb7-6c63-0985-222f-0bd3c36c165d@ti.com> 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 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 03/01/2023 12:02, Aradhya Bhatia wrote: > But this is throwing an error. I am confused what else could be done. > Can you please suggest what might be a more accurate check here? > >> >>> + required: >>> + - dual-lvds-odd-pixels >>> + then: >>> + properties: >>> + port@1: >>> + properties: >>> + dual-lvds-even-pixels: true >>> + dual-lvds-odd-pixels: false >> >> Why do you need this? Your oneOf before already solves it. > > I agree with your comment here. It makes sense to only have > > dual-lvds-even-pixels: true > > and have the oneOf condition take care of the other. But, I just tested > this and it was unable to pick-up this intentionally-added error. > > I added 'dual-lvds-odd-pixels' property to both the nodes, and > dt_binding_check passes successfully (which it should have not.) > > Instead, if I only keep this, > > dual-lvds-odd-pixels: false > > then the dt_binding_check detects the error as it should. > > Regardless, I am curious why the first method doesn't work. Will try to > explore more on that. The check for presence of properties is only against required:, but you added there properties. Like this: https://elixir.bootlin.com/linux/v5.17-rc2/source/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml#L155 Other way is to drop your both oneOf and entire allOf from ports and use: oneOf: - properties: ports: $ref: /schemas/graph.yaml#/properties/ports properties: port@0: required: - dual-lvds-odd-pixels port@1: required: - dual-lvds-even-pixels - properties: ports: $ref: /schemas/graph.yaml#/properties/ports properties: port@1: required: - dual-lvds-odd-pixels port@0: required: - dual-lvds-even-pixels Best regards, Krzysztof