From patchwork Wed Aug 23 08:14:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 716297 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 54FE6EE49B2 for ; Wed, 23 Aug 2023 08:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233606AbjHWIYo (ORCPT ); Wed, 23 Aug 2023 04:24:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234391AbjHWITk (ORCPT ); Wed, 23 Aug 2023 04:19:40 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9E3D3A92 for ; Wed, 23 Aug 2023 01:15:15 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-99df431d4bfso691636766b.1 for ; Wed, 23 Aug 2023 01:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692778514; x=1693383314; 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=C2I/rcTmF/d9ASGbPY9AUiCj5AxfuxUDm5JR/iDbnII=; b=WePlgP/TalC4r5lDsRV0VLnR4Qk2YImVFkCGSjegCbhbDEAsfZ0SPjACzUvrxaIAjJ TT3IC2qalX3RCMZ2OcJ6OrIHpubkC4e229lqsML+3hlP5F+oauoLhIzY7amy2tKd2HAi OsstpVeextg5zr4jdwwTqp3EcUh3UI592/D2CMyKP4iYk/GOGFwEtvC8wH69tIkShntX ozjm+AJUjWJVxa9YVu5p1ubp9tObtl2oUroJAL9woRzegKYCz5OKEeXXZ0w8uT+z4Wd8 kD3sZStaQIa7rjBbYW974ztUikPa0bTO/qB/Zu3X4FzO+0fTuUAVCV1zNawHPhTL309N xkww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692778514; x=1693383314; 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=C2I/rcTmF/d9ASGbPY9AUiCj5AxfuxUDm5JR/iDbnII=; b=T9AHMKKL2D2awktzta3q5tdppZwBvom6OG0ex1aPfk7ZtPM8oLK0wgXYtTfu+DyDw/ XRRsYUotV66RtbK2MjTUlyXvWpEjCSAEgZ1aDZlV5rw9szgY+EtveUsE143nHzA6CfkK CcQLY6lZ4SawPCzA8HscV7A6W34fultWWh4+gsZtV5eOGaHZp6a8mPIn4dY9lseeQqNt SJX+o9wDlo3ihWOsLZNb9NN79oNC/iqXVHSjtucouj8kRr3dFdowGcYjGPP+DZo8EOjJ l5vETn7hWXzKPFEXO1LLy6x+St+DMlPW19dAZFkl8DeRUAvX4vNXNPzNR9c6arjV/nKm kh1g== X-Gm-Message-State: AOJu0YynpUq2Oyfw/mSLg8NXgQyWsPX0i2gUx8Bkw9gMVeIC+MQHKhVo OU2VMBcoEcheeEU/G/Ztxm7bLQ== X-Google-Smtp-Source: AGHT+IETjdWV9RFfADLDj5Dy07TdSIAvWrcUOrOhKZnPagMQpfK7z/rBMAjru/IHXBr1oBQ1hT3lCw== X-Received: by 2002:a17:906:2192:b0:99d:decd:3dde with SMTP id 18-20020a170906219200b0099ddecd3ddemr8804671eju.18.1692778514041; Wed, 23 Aug 2023 01:15:14 -0700 (PDT) Received: from krzk-bin.. ([77.252.47.198]) by smtp.gmail.com with ESMTPSA id v18-20020a170906b01200b0098e78ff1a87sm9539730ejy.120.2023.08.23.01.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 01:15:13 -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 Subject: [PATCH v3 2/3] dt-bindings: display: novatek,nt35950: define ports Date: Wed, 23 Aug 2023 10:14:59 +0200 Message-Id: <20230823081500.84005-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230823081500.84005-1-krzysztof.kozlowski@linaro.org> References: <20230823081500.84005-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, thus require only one port@0. Signed-off-by: Krzysztof Kozlowski --- Changes since v2: 1. Use panel-common-dual Changes since v1: 1. Rework to add ports to device schema, not to panel-common. --- .../devicetree/bindings/display/panel/novatek,nt35950.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt35950.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt35950.yaml index 377a05d48a02..7cac93b20944 100644 --- a/Documentation/devicetree/bindings/display/panel/novatek,nt35950.yaml +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt35950.yaml @@ -19,7 +19,7 @@ description: | either bilinear interpolation or pixel duplication. allOf: - - $ref: panel-common.yaml# + - $ref: panel-common-dual.yaml# properties: compatible: @@ -59,6 +59,7 @@ required: - avee-supply - dvdd-supply - vddio-supply + - ports additionalProperties: false From patchwork Wed Aug 23 08:15:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 716275 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 AA8F6EE4993 for ; Wed, 23 Aug 2023 10:11:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232524AbjHWKLz (ORCPT ); Wed, 23 Aug 2023 06:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234412AbjHWITq (ORCPT ); Wed, 23 Aug 2023 04:19:46 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A90E03A9A for ; Wed, 23 Aug 2023 01:15:16 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9a1681fa868so641467466b.3 for ; Wed, 23 Aug 2023 01:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692778515; x=1693383315; 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=PqRFfyB6fBH2NjSEwbcQneI6aytxmQl02N3y/cGFN8Q=; b=iHZOl1PZKN62nlsynpyoDx9vyDVvVCO3NcP7oVnW1ecm5RD1cdHMaDNM7ltaET90RA Vi4eXQ3am5DKBisey3XxfvShn7luVkBBqhzdHaCwrUOJd3eVloo3kjHXyvoWcQl4wYcT lYgGSSBLqjKK+S3uBCa4qOTBmYzuhRtBiES0iwlTYNelE4vEPEYov512pXM+F8rPZcDd J0Glv/qMM16RjQPcEaO3HApk4tr+2NdUqV31dQOjAiyZ5FEG05la6qSdjAVYrpjEa3Oe YQjxNTHUUr43V6ZHFxEVjAsNgK8UqS5TqhY0Ey/T+Y8Ca152aX2QnXOR0J9E7lo8Qh/V VB7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692778515; x=1693383315; 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=PqRFfyB6fBH2NjSEwbcQneI6aytxmQl02N3y/cGFN8Q=; b=NlSak1WonwtYI+sfweVdCoh36zTb0qdbFs2TbdBrdSu7JqY5ncENIY1ZQdqeggxjil rQ9Tg3n34Ffe0hP21nHNrPbmBj/Aa22XZcCUEoqY3iueeo74s/QOYFz1nmEOfIncJmV4 JA/M+Npqc14AY387nTNT8ZkOZPXl+wFuuuKGm7zLeGtCIIDUCz11t7TJQ+llPKxE6IFA HyBKEDVKDagdjnsFbhVznAXtYh//bQX/mv6LyG3d93nobNkauHxxodJAEWCHUnTrwYmm DDeF6TELR0pCekrUmz2OnM7Y8ou8KROIyQZg2U0Sb5TtB1z8ehyxB9hGoQblicB1UKos VI9g== X-Gm-Message-State: AOJu0Yzv9OkBNNWePAKUhTZfjQkqxbxmWWlV4b01pRW1iRUhs758KaP8 yQNSUsZlm+j0hd5cLUvpVG+yFzk9tPApBT7pJog= X-Google-Smtp-Source: AGHT+IGoWKgMFpxZ9BF5pSIbrht5kIRNqx7e0/bgz0+0hiqpzXF3RpNK5nrnWgjZRC4fE/5RdArPcQ== X-Received: by 2002:a17:907:2cf7:b0:99c:d05d:7b50 with SMTP id hz23-20020a1709072cf700b0099cd05d7b50mr8958826ejc.2.1692778515235; Wed, 23 Aug 2023 01:15:15 -0700 (PDT) Received: from krzk-bin.. ([77.252.47.198]) by smtp.gmail.com with ESMTPSA id v18-20020a170906b01200b0098e78ff1a87sm9539730ejy.120.2023.08.23.01.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 01:15:14 -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 Subject: [PATCH v3 3/3] dt-bindings: display: novatek,nt36523: define ports Date: Wed, 23 Aug 2023 10:15:00 +0200 Message-Id: <20230823081500.84005-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230823081500.84005-1-krzysztof.kozlowski@linaro.org> References: <20230823081500.84005-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 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