From patchwork Tue May 23 23:52:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13253131 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC2E8C7EE26 for ; Tue, 23 May 2023 23:53:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JWd4MRQBgolM8LLEFCxA+w+xD92lJcg8RZb4oZiM35Q=; b=Txk5rAt6R6h+ca J1Yx7GQ+VWjlNpgoc3pxC2RBe8MvjfjnPqTeYGd1WOf1fIIjmoEAwULazWgJzqgMmstFhkOl/Nng4 gVJqDPduoJROmu1MqfyR3QKN5E6RnKj/+PvQEyZyTxSZJD9dfcWpT2PFiIhFAgGrgJ0BJHKqR/nsh A/AQCZpXjnYZ2n1nkQQ/3gZGC/63nh58jlJWNtT3g0zzXCHGpL5YqimPn+RbgWhq2Igdx96FRKPbQ 7iKtvn/MhGSHMLHL/tqp7AN28YSqakljKn/J6amBSpbAbOucL0N4CCBiCs3d/80B3Qdgkcd2cQ+ia vX0MKJUmIY1J9GRgE3eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1boE-00BqFp-0J; Tue, 23 May 2023 23:52:54 +0000 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1bo6-00BqDe-22 for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 23:52:47 +0000 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-555752282ceso50516eaf.1 for ; Tue, 23 May 2023 16:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684885960; x=1687477960; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ojbBjUwlKVt2/9+CCAjrur00lN7Lj3Zr989tamB+iNU=; b=K0gAhgeXV1dkUECCcaHC14wWadNNulIDBxTqK20yYytGpisoG4F25S6rG0tnzeposs 3KKxj1C4+4vlX5DcvvzHrqOjVgDjr71MNkBCLpwB6iVERNRxRCLSZM5v3pqqqyHJdsJU kXq2LCdObuP7NWbhiA9eGFEWBbEsekdVQ4+8fAT0aGOxpp64LnlHDd99Yh3STfOxdQzJ a2sWkr1rlaPl+FsyfVYPvtTuUcx9Fv61zihOFhfl8t1Su0Hza4aXr+W80CGe+wHnDrPI 68FMmLVPIkS49XrHkIy7KwZgDV29UwqVYOXiUU38kYSOHmwxSw6Q445w9xiUy/HT5dn9 8LIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684885960; x=1687477960; 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=ojbBjUwlKVt2/9+CCAjrur00lN7Lj3Zr989tamB+iNU=; b=U/XoDlc6jef7+BsqrOOZeP8esaD/LkWJDkBov16Vb7sWan2J+ZgQFhdgSyw5bD3/GQ 1aHOP3L75Iw/zVZq+JBvOACaTWMJxVE0nvuuHqfhAeeKC7ugjc20QDsz5gb7tpmzhXqT dn5hRXHDl7YEqW/kfIPRXznk7pE+qx+s3etVPFGdE4IH69HS+4HVHsSxwkkVLORqVx7z 3Qy2TIJ+VRGRWeVPIoMx4975Yb8fUxy3xFiZ7yof6EtzvhzIPHwx4amjbyf1SbgkmoUQ onR0gc3AcN6hYGAjgWheCPbN4+1YYvZ1RvKeCSyWwR4gULqcmXXgbxN/RSXotCFxSWC6 Yl2w== X-Gm-Message-State: AC+VfDyHF6ObZbEZ6Y2d9e3WIzTj6uEVQ7wSYYgAFVUu7ITTktS4mZXr EMTYO8JasD8bPLGBG7pEFf4= X-Google-Smtp-Source: ACHHUZ5HUpsZrYYzlMKEfrFF9m4L4u1G2QABAgS1N668H1gkoyCXbhN3v8RaKE5Apwjg7TqAl2D7Xg== X-Received: by 2002:aca:efc6:0:b0:385:d91:ee30 with SMTP id n189-20020acaefc6000000b003850d91ee30mr7413882oih.3.1684885959682; Tue, 23 May 2023 16:52:39 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:14ab:657f:c6e7:b30b]) by smtp.gmail.com with ESMTPSA id h13-20020a4ad74d000000b00552502f3ae1sm2454559oot.39.2023.05.23.16.52.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 16:52:39 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: marex@denx.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, conor+dt@kernel.org, Fabio Estevam , Conor Dooley Subject: [PATCH v7 1/2] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Tue, 23 May 2023 20:52:31 -0300 Message-Id: <20230523235232.7358-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_165246_685139_2A02DB31 X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam On the i.MX6SX there is a single entry for 'reg', so add some logic to reflect that. Signed-off-by: Fabio Estevam Reviewed-by: Conor Dooley Reviewed-by: Marek Vasut --- Dependency: This depends on bd60d98a11da ("dt-bindings: display: bridge: ldb: Adjust imx6sx entries"), which is available on linux-next. Changes since v6: - None .../bindings/display/bridge/fsl,ldb.yaml | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml index 07388bf2b90d..7ff45e3d4929 100644 --- a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml +++ b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml @@ -28,12 +28,11 @@ properties: const: ldb reg: + minItems: 1 maxItems: 2 reg-names: - items: - - const: ldb - - const: lvds + maxItems: 2 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -57,6 +56,7 @@ properties: required: - compatible + - reg - clocks - ports @@ -74,6 +74,24 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: