From patchwork Fri Aug 25 12:11:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 716986 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64AD9C7EE2C for ; Fri, 25 Aug 2023 12:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244485AbjHYMMB (ORCPT ); Fri, 25 Aug 2023 08:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244625AbjHYML6 (ORCPT ); Fri, 25 Aug 2023 08:11:58 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C88C91BC2 for ; Fri, 25 Aug 2023 05:11:56 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-52a3ff5f0abso1306575a12.1 for ; Fri, 25 Aug 2023 05:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692965515; x=1693570315; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MzqGDlYO53VtpNTfk9/2jQSIhaYzka5q6tmocMJNTUk=; b=Iw+vGU0WxM/n2TkZrEPhVytepIiLpJLCrgunLLHrb1dt2WzeE0v+25Q8ohu/3VhBMH isuG+szZerc1JZs/j5z/zpz+/JuDv2mK1hTQcwhIBY047MnqxhMvqLYS1CUKsgDj0IqY UNZ5uBoljRyzVqd5PdSzUUGcSsX/Jdjgjtet/lbCenTGyZx2MDuZNxDhie99jtRGN83O IJkHCO/f4Vhovn92yzawIxGFJMtCwqlNTrof8HpLKXBVnEHaEWdl8LV1zbNuwj1oP/Ti wwzriRyZzkG/dwaxaChFSoSfeO5MBw8L6/zxOUossa73ZoYg47OM2P3D9xNreGEo6cFx RHnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692965515; x=1693570315; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MzqGDlYO53VtpNTfk9/2jQSIhaYzka5q6tmocMJNTUk=; b=f3oh+TFzBbb+mua1VoeTV78pZoqRKRpUhU9RtOA6XBc585728uH9l2fYVaKhdpVBFF wODl5vhFYxmnWmpUj+9XL/g5SRf71ihRLbzNXRFoaKhyYfn/sGjOsL/bkoKii1XM0xsU PWxliVEAl/tJVfDiDObYvd2KzFmwLsdub1xGkbzrnEw8duOzi6hpRi+W2/dvAGWZ/sP7 TAdpLjieD+hBc6Tbq/MKnG2I74SGJT4j3D+MldXh6Fh/186lelQlPCnXzygTBqRXTx03 0WUSWgjyAUEwv8L8FWfc1uCLgdyUjLKeDwIZzHeQp4lFf2tIoA61zy2EQtdyqBgeWLmN PS8w== X-Gm-Message-State: AOJu0Yx9Yx+z2sZiH3Jdtkl8gNwiCUt1DnJHHPFuSHVvagPFhNdFjEw5 wEEBV2BPVCcx159QHumETRjAkQ== X-Google-Smtp-Source: AGHT+IGUKhjqKcVWlKdpqBhagGpbCfzvbRoRShHrZQRitS1v8wNgCijkMtLxjEvIGq8epHehT9iSbA== X-Received: by 2002:aa7:d952:0:b0:523:ae0a:a447 with SMTP id l18-20020aa7d952000000b00523ae0aa447mr15166905eds.13.1692965515299; Fri, 25 Aug 2023 05:11:55 -0700 (PDT) Received: from krzk-bin.. ([77.252.47.198]) by smtp.gmail.com with ESMTPSA id l5-20020a056402124500b005222c6fb512sm952311edw.1.2023.08.25.05.11.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 05:11:54 -0700 (PDT) From: Krzysztof Kozlowski To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jianhua Lu , Del Regno , Thierry Reding , Laurent Pinchart , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v4 3/3] dt-bindings: display: novatek,nt36523: define ports Date: Fri, 25 Aug 2023 14:11:42 +0200 Message-Id: <20230825121142.101759-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230825121142.101759-1-krzysztof.kozlowski@linaro.org> References: <20230825121142.101759-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The panel-common schema does not define what "ports" property is, so bring the definition by referencing the panel-common-dual.yaml. Panels can be single- or dual-link, depending on the compatible, thus add if:then:else: block narrowing ports per variant. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v3: 1. Rb tag Changes since v2: 1. Use panel-common-dual. 2. Add if:then:else: Changes since v1: 1. Rework to add ports to device schema, not to panel-common. --- .../display/panel/novatek,nt36523.yaml | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml index 5f7e4c486094..bbeea8cfa5fb 100644 --- a/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml @@ -14,9 +14,6 @@ description: | panels. Support video mode panels from China Star Optoelectronics Technology (CSOT) and BOE Technology. -allOf: - - $ref: panel-common.yaml# - properties: compatible: oneOf: @@ -38,7 +35,6 @@ properties: description: regulator that supplies the I/O voltage reg: true - ports: true rotation: true backlight: true @@ -47,7 +43,26 @@ required: - reg - vddio-supply - reset-gpios - - ports + +allOf: + - $ref: panel-common-dual.yaml# + - if: + properties: + compatible: + contains: + enum: + - novatek,nt36523w + then: + properties: + ports: + properties: + port@1: false + else: + properties: + port: false + ports: + required: + - port@1 unevaluatedProperties: false