Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6423337rwl; Mon, 9 Jan 2023 08:09:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXvfCseFsZAtR0w0Xpf5utXR/F7ijenwXmWNxgStMibef9LTMf66sDhFn0pB/XRNrcl+6Nzy X-Received: by 2002:a05:6a20:4985:b0:ac:a2bb:96e6 with SMTP id fs5-20020a056a20498500b000aca2bb96e6mr65925307pzb.56.1673280597188; Mon, 09 Jan 2023 08:09:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673280597; cv=none; d=google.com; s=arc-20160816; b=nsds2TGfDjPQznHNvr5Pi19dazVe4aKoXGMsaKESiOXp7QhC9kVTK5hDBBRIu1Hbd0 waLJ4bfPvDmWGiud4D28fUS4FP9PiyNZoL0YfrQQ4Zj3ghaS0NQ5uOG5qYXabikG4r9U EB00dV3aTlkA5sZkjn3JLwfP0HDQj4QKJTHmNMebNxhRcgrlrIvOJgc0sbUlc1Htb6AM KLi0LHPcFESZ4ynbZO9xB9Ib2GCRk7ft4UsXYRlSC+lIctGswFLpFfZ2ABDj7jcLH3NC QwbUtAROPklLPRXny2wf5kqkxkw3uC5hwz2An9arrMLxxpEn/fbYKqr6EEELCKYsk8Hc KCsQ== 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=tHZZefyYne34nwtHlmcO9279ZiTFZKklHDR4wSaraLs=; b=DlI0DTDch4wrjglYnRHMxA5ZJRuhP4ZHrHh2o4dWA6Z1NaIAfoe4qrEIVGbiziTKwY I1a6Hd3N1L8LjiOVibzldg501yjAB8iZQOzqbQ0GAUsqW3+YCIWgd9BO7kTsSpNbKn4k WE0eP3+Hq+75Av80Y0edxWJ175kBp+VITOEbKyy/ItLEoydAEd3cScuSxw7lGtBs6+N2 +/kG3PSjSa1We8pstoLCSgl7wbpaQFfiDQyJvgXlfFIwI3Nd6UV5m34wKXomS+/Vb2B5 kQYF1BEU4lD11hfBZ16Nlz8F9fia1Nzbe8gEqsLkqPgZVdjwy34Zsyu7Czk6q17btr9j bhYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=MPUiZGBL; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a056a000a0600b00577e14babaesi9978745pfh.4.2023.01.09.08.09.49; Mon, 09 Jan 2023 08:09:57 -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=@ti.com header.s=ti-com-17Q1 header.b=MPUiZGBL; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233951AbjAIPut (ORCPT + 53 others); Mon, 9 Jan 2023 10:50:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235575AbjAIPuT (ORCPT ); Mon, 9 Jan 2023 10:50:19 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCB561A079; Mon, 9 Jan 2023 07:50:02 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 309FnKbk021502; Mon, 9 Jan 2023 09:49:20 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673279360; bh=tHZZefyYne34nwtHlmcO9279ZiTFZKklHDR4wSaraLs=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=MPUiZGBLs/Ku6SlSm3Fh+yFJcoGIXbBdA2icjuIIZ3bG28Lf4hxlbusjtBtW3r+j1 d+ESwERr6zuKSVhU4PuUTfDVFIQp3yL6qzK+Rp5rdyZvl3hNXAGClH9q8f6DuClU8d KyAqikzfsRBeqcXaHluWkpbzVG7Qm/XmCoIq+OSg= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 309FnKl1105964 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 9 Jan 2023 09:49:20 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 9 Jan 2023 09:49:19 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 9 Jan 2023 09:49:19 -0600 Received: from [10.250.234.21] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 309Fn9qV038794; Mon, 9 Jan 2023 09:49:10 -0600 Message-ID: <784cc3a5-8b10-aed3-b151-77cedb531f25@ti.com> Date: Mon, 9 Jan 2023 21:19:08 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; 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: Krzysztof Kozlowski , 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> <30423568-df03-1d72-81fe-3a4b33214e5c@linaro.org> From: Aradhya Bhatia In-Reply-To: <30423568-df03-1d72-81fe-3a4b33214e5c@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 Hi Krzysztof, On 03-Jan-23 16:58, Krzysztof Kozlowski wrote: > 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 > Thank you for the suggestions. I tested the both of them, and they seem to be working as expected. V2 will reflect all the required fixes. Regards Aradhya