From patchwork Fri Aug 25 12:11:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 717270 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 74896EE49A3 for ; Fri, 25 Aug 2023 12:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242831AbjHYMMB (ORCPT ); Fri, 25 Aug 2023 08:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244621AbjHYML4 (ORCPT ); Fri, 25 Aug 2023 08:11:56 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B30F1FD7 for ; Fri, 25 Aug 2023 05:11:54 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4ff933f9ca8so1291952e87.1 for ; Fri, 25 Aug 2023 05:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692965513; x=1693570313; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qhIkzsyTKm670j6OXVUadyYcO048MWKmieMFi0kdsqU=; b=oZ2Ey6AHeynFNLLoCwmcpV/iHUNu/GVg4qpIbNpwiA7oe1toexTbxTXhSQQD7/zQ98 5MIGiFL1oH/UueBNsNFT/tSN4BR06ivWpe0xbrVCjctcGYbzzlWnWW9pNxjZY/WLY4lV AQFykQ78Qh0+ZsM6slzxVKSDWkm0Ht/v6+C8r2U3Qu0LTb6B5SNHymM90EK4PUbnXOkA yl1ZP2Tc64Iy9EebcB0I4Ih6gzuG3fqtoX3N2gfYi8ni/JPawTPxuxfi1UWX45qQ01Ue qZMvc5K/174DINLVkmoI62PtCDyU+xD6jl5GX/WiJxmqFCVfIuA+nhaBwV55ICa/9rLs D2rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692965513; x=1693570313; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qhIkzsyTKm670j6OXVUadyYcO048MWKmieMFi0kdsqU=; b=Mfhep/pz8G/ahRt077ixqK4wa/M/kf+q3QnV2g/CJVC8aWqTU7iFxWIzoF0MZEhwoR BenLGSkoY6Uya43LEFxBMoKZZYisVwOkpmOkqF2ZXoTXE7lCM5nOw3Ek0clbrvxKuV+z EvWD95qjoE3y8QOgZI4XBPwODAevK8BjRzphsgj1lwUHYMh5ReR10EURJHkmNv+vG5tJ T8ckqDcvmUKt+TReZ8WSDq/3GMlxncj7DGsZptIRP+V1rHotGmBTwYNdaVmM5ljFAvUc Q80egNru62f6PgGhF7Na8/vOndIqJ08r8diMI/uubwdBkVMCGfygT5cpPXTcVl58isD/ waUA== X-Gm-Message-State: AOJu0YxGLAZu6reM/AnVr6BUrTPIoVQp734P+l7Gx8i5ZNrTPx/hPNpl pn5TD+lod2hXVA+lg+Cebd/8PQ== X-Google-Smtp-Source: AGHT+IELNGy+ZJX03ObKjQP+MzDwqRIy5Q5gtBaOdGmbJfuToQbeiU29jbARS+FjeuGm36A8/pxAhw== X-Received: by 2002:a05:6512:36d2:b0:500:9524:f733 with SMTP id e18-20020a05651236d200b005009524f733mr5221093lfs.20.1692965512717; Fri, 25 Aug 2023 05:11:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 05:11:52 -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 v4 1/3] dt-bindings: display: panel: add common dual-link schema Date: Fri, 25 Aug 2023 14:11:40 +0200 Message-Id: <20230825121142.101759-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add schema with common properties shared among dual-link panel ICs. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v3: 1. Re-phrase description of binding and ports (Laurent) v3: https://lore.kernel.org/all/20230823081500.84005-1-krzysztof.kozlowski@linaro.org/ Changes since v2: 1. New Patch v2: https://lore.kernel.org/all/20230502120036.47165-1-krzysztof.kozlowski@linaro.org/ v1: https://lore.kernel.org/all/20230416153929.356330-1-krzysztof.kozlowski@linaro.org/ --- .../display/panel/panel-common-dual.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml diff --git a/Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml b/Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml new file mode 100644 index 000000000000..cc7ea3c35c77 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-common-dual.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-common-dual.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for Dual-Link Display Panels + +maintainers: + - Thierry Reding + - Laurent Pinchart + +description: + Properties common for Panel IC supporting dual link panels. Devices might + support also single link. + +allOf: + - $ref: panel-common.yaml# + +properties: + ports: + $ref: /schemas/graph.yaml#/properties/ports + additionalProperties: false + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: First link + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Second link + + "#address-cells": true + "#size-cells": true + + required: + - port@0 + +# Single-panel setups are still allowed. +oneOf: + - required: + - ports + - required: + - port + +additionalProperties: true From patchwork Fri Aug 25 12:11:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 716987 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 170E7C3DA6F for ; Fri, 25 Aug 2023 12:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244482AbjHYMMB (ORCPT ); Fri, 25 Aug 2023 08:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244623AbjHYML5 (ORCPT ); Fri, 25 Aug 2023 08:11:57 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C1A41BC7 for ; Fri, 25 Aug 2023 05:11:55 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-52557cc5e7bso1230942a12.0 for ; Fri, 25 Aug 2023 05:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692965514; x=1693570314; 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=W09M8JIJtZCbNBhGe/AHRCcrRIGkrBwh+HJVwKRzmpo=; b=qy/k8F4E2HnvzsVd4KmFJ9w+Is3DiCU8cReyo3hylHEak4SVWOjMPSvhS4/qaaCgvA gy6RFInVgy/huM+JuWnN+G2wXg7OC7gFuYVwGr7WH//qN5CgjPciVrBKR6q7Tju6Gx7t 7nBqvHwBincOZ3iQXO8cWUDH+fMLTGv49kSthzS0o/vsrTWMYKP4p/VMFxqe4Xre01+w Vsx+JAOobalOWf4KG7OwC0jqltoRkxFpPV9wtKcos2Bpcm3J68urwbix3l5LFKaXZmM5 xwl3TTxDMLEcJrmF0JAHKjV0tP7kWfLK23KvpMX/v5o3CAKQK7bznbZhI4KMuEixrXB6 gquA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692965514; x=1693570314; 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=W09M8JIJtZCbNBhGe/AHRCcrRIGkrBwh+HJVwKRzmpo=; b=RYTo4O+29hljemrmMSBZjKX5GegN8woSWz24v4HM3h5U8srnqDsJcVtEbvNueMseZG lxpn4y6CyTlnesPnwqwkRWOWjCL0aWWyycnW79lHT/VgnH4pY4LzLGVOog2jiwCbt1fP J0TBSTUXGxqqRWGY5PXMUnlgkj7vbYPdruOnNvLURgwv1Kv3PtLzYTmejgl3WXu1Wl5z SdhlTAUquU97/vflEMthV79sROVDhYC11twnOEtVWdYZjOE3uSfl0MeiGVl6Ggc1+oqn rjyUv+GmeZloj8N7JsbDArIqoiaEKawK3YcMCj9XBlow+l6b56TseyE2vDH8df2iCNVm /WTQ== X-Gm-Message-State: AOJu0YxiiOhPmd9x+ugsWn1Ar8N4RudxJdCiNkhdn3TquMNRorPfQgWm 3m1UNmmkBLx0qfsCZLDzS7d9Eg== X-Google-Smtp-Source: AGHT+IGeaaxzgQU3D9ocJw3HPTByA322ZOhgy6e3l3Q+GdmYumf8G9Xf+6/gcGtQ7Yrnsa53Y5ZIkg== X-Received: by 2002:a50:ef08:0:b0:523:3e77:7eb5 with SMTP id m8-20020a50ef08000000b005233e777eb5mr14091316eds.2.1692965514049; Fri, 25 Aug 2023 05:11:54 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 05:11:53 -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 2/3] dt-bindings: display: novatek,nt35950: define ports Date: Fri, 25 Aug 2023 14:11:41 +0200 Message-Id: <20230825121142.101759-2-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, thus require only one port@0. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v3: 1. Rb tag 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 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