From patchwork Mon May 22 20:14:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13251046 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 570FFC7EE2A for ; Mon, 22 May 2023 20:15:03 +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:References:In-Reply-To: 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: List-Owner; bh=kPEsmCW3bRrONqVfTOArHzz7w/AOEWtc0pNnq+zaoKc=; b=0EdgYpPYrREwS5 2R1Piqj/MsiYJt5YVYSPBzpnM105+RvsgdwWIZvP3F0sSeCx1dSkNOpY62vH+QeVaWJ9N39KFsReG 3DP46dg2+4XYaP0OrDUYZwcUsTYiY0ejvoNa24fnhG+kn5Cf5u3IRotj7WX1rEDDGiojzWrlWq+9G 3JwWBfDmnWZ/xcvViPkEc2jB8lDO1x0Vs3dd/J2t/+DZ7Dg7wpTBq3h2DqTWiJkztSy3x8Mey+dUq 2lY16oEAr+qaVWKEzbIYpGHoJg0+4uZvEQuej76q13sJvIUMJzADCRomn0xu5pQmxfffKc9E0se94 B2jJAtgFokNkmKWH0mVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvU-007rqZ-3D; Mon, 22 May 2023 20:14:40 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvL-007rmg-1W for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 20:14:32 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6af8ccb491cso18590a34.0 for ; Mon, 22 May 2023 13:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786467; x=1687378467; 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=qnNkxpreDgq26CG57fd0M0OJM5UJkONUnE3UR9s1bqM=; b=VYAmIGbOqs7k5HbHxThot+Ykl3Gm8VTVHflv+WQl41OQL48dR1VMdTx8R6keOZqmxX XduIaY9g228ZAm3zAYD4ptoRRQ2AKFJDehvAJ+OOZBlEBXf6UkkDWXu8RAQ74I7QQRsR nilXICPsNAiDiLK1HtgnhiZJ6lHca3/j4AQWQOgQHuSN/X1ztkL+IUDEDiNmJeNKWf0i zLCcwN8gAceytpW6xWUfpUSoEdW6SQf9O2uCZ7vepbMeyHN+qW6m/cDNInG+ssqlSWse urwcbjVJJnRReqhc8VgXXGgq+QGPo4/GYOts5ASo2zEPkrLLvcxKlAZv6IMRylJxX0x8 PHrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786467; x=1687378467; 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=qnNkxpreDgq26CG57fd0M0OJM5UJkONUnE3UR9s1bqM=; b=clNymQ2gQxhe50W+0wp3bNwtAgFKI4BeElHuLZ/ogwjZyq8TJo5Uf+rPehYDtox7eU Mwlazg7kl+4J3O5hzacsi205l3wtsyxEcIBISOxel+/uqgYqzSMZHBOWu9IbbbXRFk9r uRvDgwbClKjl5L06cJ2SS8Tu7weCKD7gmlUXMoc0kg6S8P0b6jcYOnqz77Id4TrgrzPc 378Tit4GQ3wJa6dFwNpbEIZECl1XUAOaAdiwmwj9gga6LfYDhreRzKRcB4zKQNXLpCl0 ORcDNm3b6ywgSYCLyNHlFQAT+mNGn8fGsc6djBKzKLORpWL4rAWYFyzsANrY5BLhat4H DgEQ== X-Gm-Message-State: AC+VfDypSZG4XdIKyRuKHqPeZiAkQPm33/Ed+qZeDBLQzvuVOUfEsDBw bN35JpNuzqY785Y9pTjr90s= X-Google-Smtp-Source: ACHHUZ43QBPidqOZayheIayd4E1WwxeTeDcjnXlor6tlDw7hDy8ua2hgxxFXIKK5CGTrIrKaUwJPLA== X-Received: by 2002:a05:6830:3886:b0:6ad:23c2:e0ab with SMTP id bq6-20020a056830388600b006ad23c2e0abmr5756147otb.2.1684786467032; Mon, 22 May 2023 13:14:27 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:9a57:1c6:1c2e:4047]) by smtp.gmail.com with ESMTPSA id q11-20020a056830018b00b006aaff32ac36sm2692857ota.66.2023.05.22.13.14.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:26 -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, bhelgaas@google.com, Fabio Estevam Subject: [PATCH v6 2/5] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Mon, 22 May 2023 17:14:01 -0300 Message-Id: <20230522201404.660242-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522201404.660242-1-festevam@gmail.com> References: <20230522201404.660242-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_131431_507879_A37C4333 X-CRM114-Status: GOOD ( 10.80 ) 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 v5: - Dropped reg-names for imx6sx (Marek). - Indicated the dependency to avoid error when Rob's robot runs. .../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: