From patchwork Fri May 19 11:29:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248245 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 659A5C77B7A for ; Fri, 19 May 2023 11:29:54 +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=jlRtGvk1Fj2QRlXhp2ZjLjbKQDfyBJT8zckzGDodtvU=; b=GCjCXFetnm8vAQ FJwSderyfwC4f8FoMaugWhWT9Jc71Og0gS6oL5ctaI4XPPQiQ+daRRfG+dRtvm2T38UtEjRn+UGpc m8Wbpt+wzYAvl69CKIZcEYR/kY6TBgWxXceCi2bzxJCPUq12Fn/ZwjlbyL/kncSjOe0+0Via/2D4W 91rBSs70mAqR1CAGBqNI+DXNbN6ly/G8M8eqyJ5HfqTFjpfD1G0F+vr/EfugVgEMiMMazFbo2rXi1 8OJ1DmJWrE27IwC2i9dP+hJvv1X/XtOUbwdKdaR7qK8L+PXdOVn5YueWBDH0TiFR8NdnXbrdF1I+f Z39eVD60qtDQz4/5VBKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIa-00G6qM-1F; Fri, 19 May 2023 11:29:28 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIX-00G6pu-20 for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 11:29:26 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1840ad6769fso512385fac.0 for ; Fri, 19 May 2023 04:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684495764; x=1687087764; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pv4K+qiU1O4o8owbKu+jiaXfleyVInvL+71QwhxE4qo=; b=hLUNg+CEJwuxnfC4QvugTTW6++MLbFlnLM30RfeFRh+qQJvBpLwqg63agS5sAZ8CW9 UMGZ3ICcKk4DcL4NY+q10+asR6Ms5ggTvKQ6Y99GwBFJixSawOgLQUtmSt+yBNO/aRPU XqKUdY9DU+eNugWX+xZflJDBBoNRcKSJeNI+inMt5XoH4EG4vLf/rsHCL5etF0lYPv1R fVRg+6JiBwfIJz+m+7yUsnSdCQYm/TihGXiLDP5OCI9qECH2NXvcz4f38GwE9/WHmZC8 NvTjOlWa80rR7GlO0beCnikHiBqbrr64VGLavRlu89XCoDlGWidfiEn//dIAOEkd6ee6 C53A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684495764; x=1687087764; 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=pv4K+qiU1O4o8owbKu+jiaXfleyVInvL+71QwhxE4qo=; b=dqhCKNzIpOavEvF4WY1eW9r/3aR/qsk4mIl2+RnTCmxJ1c4JYjsK/n9EdBLbK14k9K BH4ccv5TaMpuV6/quvXTBYOEuywYT30V65VCHn4aclGTcc9DDSCQZ1p/ScXZ+QmlI6GM TIIPlj4oaqAX63Py1yUmB5pNjrd1nRGr6GP3pnAh+jxu6xjnay41eG6NEpTfSNI58riS Q2dCtYsUpektGIgSsU5nAU7DFm44uuUj/YNoEKFqRp3d27cISuwfYU6jhnK3rBbIWwpm E3nqStlwO7ht9ucAsZQHfRa2Yf2sGcq48vbW/tUdvwySZQXMlfw/6zahulNT5AeLlXBP IYFg== X-Gm-Message-State: AC+VfDweE29vD4bytFlSN4+/UBB52Xotd2D51I64bBlAFNqNAVdY3RJU Z1Ltetny+l/ToSpqqiCPqT6DMCqVoL4= X-Google-Smtp-Source: ACHHUZ7VxDjfQos10tGqW88CSYV8XKWr+Vg+fHUv0h2JGafB5OlJ5XKLUbAyKuq9Kfca0MQMIoMurw== X-Received: by 2002:aca:efc6:0:b0:385:d91:ee30 with SMTP id n189-20020acaefc6000000b003850d91ee30mr885517oih.3.1684495764248; Fri, 19 May 2023 04:29:24 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id u1-20020a4ae681000000b00549f4d87eecsm1327679oot.30.2023.05.19.04.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 04:29:23 -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 Subject: [PATCH v3 1/4] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Fri, 19 May 2023 08:29:11 -0300 Message-Id: <20230519112914.309669-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-20230519_042925_664057_D9CF3357 X-CRM114-Status: GOOD ( 10.13 ) 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' and 'reg-names', so add some logic to reflect that. Signed-off-by: Fabio Estevam --- Changes since v2: - Newly introduced. .../bindings/display/bridge/fsl,ldb.yaml | 28 +++++++++++++++++-- 1 file changed, 25 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..cd63f9ef9484 100644 --- a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml +++ b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml @@ -28,12 +28,12 @@ properties: const: ldb reg: + minItems: 1 maxItems: 2 reg-names: - items: - - const: ldb - - const: lvds + minItems: 1 + maxItems: 2 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -74,6 +74,28 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + enum: + - fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + reg-names: + items: + - const: ldb + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: