From patchwork Thu Apr 13 10:09:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 82899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp935639vqo; Thu, 13 Apr 2023 03:41:10 -0700 (PDT) X-Google-Smtp-Source: AKy350b+1m5aPu4IcT829F/Ys1Vqk6QIMTo3Kv4VRzGAG+zUde43jGZUc9ZJEv/UPJpFc5An1bwg X-Received: by 2002:a05:6a20:b38a:b0:eb:f56b:944a with SMTP id eg10-20020a056a20b38a00b000ebf56b944amr1594764pzb.27.1681382470627; Thu, 13 Apr 2023 03:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681382470; cv=none; d=google.com; s=arc-20160816; b=u+lbawHvT0DSq3Vtq2jQrqe7QTaDQyBHo1bS+XRWOZEtZdV8+1Mi+t0irZD7Qc1k6p kPd3pz6Nn/J0j0KWJdT7kQBRljTYvq+00czKvrv3SsKk/k/ASu/z9i1UnLcRxVlEIFVl QihwknXQ/HzKV1HmhmxqBR3CNDO7jSraPSNquQy7wp0yXjopLZRTtVKbHUFdckkqli+E NJMN5S7TRvKLG7SbH/fWmitnOllDRNSa/Fa/MgjKAsWyK5V99G9nQ4EkxiOIAY/mZuxE T7wfCaBCDIPExGWXokiPLudMTEVZA3k4UpfPRXJATFL6Gc10i3w6/cKKDN5eb2eM8Qt0 Pf9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=DEAnat5PSJjsxQAWB7/SpZ+xwfK/Fj2JlbHtk3HNvoA=; b=VNhlf3hp4O1lO8Ru7bDv6+YQjzag2q6XNN1mZ4Rf83shhe8BaxjbKSRkwrsCWBYmyn VmmWJ15fYxPnUzxXsMYJ2BxBatYyowhcurqlMLprUE3fGf2yFJ4sqKU0Sbk/SPQUiEvI lWEKvAoZOXZrcwofHbQrP0WNZE9Ef6XasSkz/YBWN+MM0u91Rp21tsFCY9q7TGh43QV5 ny1ca5ej+72Ec7+azsugIu/I0qwLjVaspSE9BpvVyDereVnlbmBzu7dCiMLljgdN6GOX yn+eO9lnIYLXEWYOHTkESrDleOjZ87c/JwVWQuH1UyNY6vsGoj5mM/p6sOqb0t1HRYTC dGrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ltTzPvxh; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a63df46000000b0051357734521si1786333pgj.604.2023.04.13.03.40.58; Thu, 13 Apr 2023 03:41:10 -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=ltTzPvxh; 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 S230326AbjDMKKI (ORCPT + 99 others); Thu, 13 Apr 2023 06:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjDMKKB (ORCPT ); Thu, 13 Apr 2023 06:10:01 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 325118A74 for ; Thu, 13 Apr 2023 03:09:50 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id bx15so12904834ljb.7 for ; Thu, 13 Apr 2023 03:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681380588; x=1683972588; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DEAnat5PSJjsxQAWB7/SpZ+xwfK/Fj2JlbHtk3HNvoA=; b=ltTzPvxhvo3ZlgIQh10MfEpSaxyzcEAkSMAeImGiz864Hk+fEhbQ0LBYTl2tPSAMzv ab1LF0jIAHCyWSFQHQAPE5RsNQrBf7QUL10601PtdgwXHZgXZX6SmagLER5KjFeycGbU Tn1zqwIgboWmT5uTM98zj+zv1iLv4EQv3BV3StMfIXzzjTyE/rb3qRcf8zYfu6JtIPSk zSZ7/Jy0lHHCEV12vsYu00BDiERMME3VWk+g53uOSCfATYHP4XEKxgzEMZqCPinFLuSr QkXOAnq24uM2s1mGb3lQYwPpkeH1uS6wRGzzQeqmXaHWp9Czo7eQ2hzQ8vxjX6l4hEmf Rnug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681380588; x=1683972588; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DEAnat5PSJjsxQAWB7/SpZ+xwfK/Fj2JlbHtk3HNvoA=; b=OFIQV83sRnyPo0lEgUiPVGn6U64RwlwIfzkF2QjKw2PnQrGK9gf6F9Pit7xa5xd6hw p+l2nMvxSz4Bo0Knfa7/r6lkghkdaG+QmOoMzI/8mwQQfKPwR8kqeFxbZRIA278+4dlQ 0diFsHcEjZe5NElEixFhG2kQRUtfxfVggBAkSD1nhxustBjM1G+cXkgjoI6VaqMUhek1 b+ngwf/r+IJBkgdfLE2zd4Lm1rQjyRsc4O0MwRgCxY0w+eNVZQOQWm8x3fWKTEGb4Lf4 xSkoy4dU06F+1bLsHtCioWz0x6DRRcrYaeSU/jvOBzhOXOyg7Y0kKSuRW355kVP3g52h xpRA== X-Gm-Message-State: AAQBX9cf066TLy4m1LeH3YhZ3nJtKE2iwGyJOFqWU4zwvQHA90yE6/GI /DnRUvUY96X0o7yqvQgQIVZX7w== X-Received: by 2002:a2e:9e19:0:b0:29b:d471:c80f with SMTP id e25-20020a2e9e19000000b0029bd471c80fmr907501ljk.36.1681380588424; Thu, 13 Apr 2023 03:09:48 -0700 (PDT) Received: from [192.168.1.101] (abyl123.neoplus.adsl.tpnet.pl. [83.9.31.123]) by smtp.gmail.com with ESMTPSA id t20-20020a2e9d14000000b002a2e931fc48sm200482lji.140.2023.04.13.03.09.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 03:09:48 -0700 (PDT) From: Konrad Dybcio Date: Thu, 13 Apr 2023 12:09:35 +0200 Subject: [PATCH v2 1/5] dt-bindings: display: panel: nt36523: Allow 'port' instead of 'ports' MIME-Version: 1.0 Message-Id: <20230412-topic-lenovopanel-v2-1-055c3649788e@linaro.org> References: <20230412-topic-lenovopanel-v2-0-055c3649788e@linaro.org> In-Reply-To: <20230412-topic-lenovopanel-v2-0-055c3649788e@linaro.org> To: Jianhua Lu , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski Cc: Marijn Suijten , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681380585; l=1187; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=FMgShhUTMaYzSy2Me7Gv1xSXp92sIQsWFZ0aqhhoJn8=; b=9J88Z5LuF95gqkV+HSGcOJ5UC/2WCV8vVvuzNlssYzVIvrv/8ehvUa53oIMtzftb/pqyOx/rHMmu dOWMlYA7DWmYNYzxksbhUTQJ36XooRkA8E19xmPb9BFG36Q4wp1V X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763057305291552434?= X-GMAIL-MSGID: =?utf-8?q?1763057305291552434?= Using 'port' instead of 'ports' for single-DSI usecases allows for saving a couple of DTS LoC, including a level of indentation. Allow that. Signed-off-by: Konrad Dybcio --- .../bindings/display/panel/novatek,nt36523.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml index 0039561ef04c..38f4f986aef1 100644 --- a/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml @@ -33,15 +33,26 @@ properties: description: regulator that supplies the I/O voltage reg: true - ports: true backlight: true +oneOf: + - allOf: + - properties: + ports: true + - required: + - ports + + - allOf: + - properties: + port: true + - required: + - port + required: - compatible - reg - vddio-supply - reset-gpios - - ports unevaluatedProperties: false