From patchwork Fri May 19 12:52:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248292 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 7F3BDC77B7F for ; Fri, 19 May 2023 12:53:31 +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=L4VczXcK04OjwuxvqWvQZKXJloQ1Hzrh45vUpgyhRLM=; b=HuImv/lEG+r/kI A5Tne8oOVQAedYrIIayO/EdhYs7/d7UtR9AP/p33dFSE+zmmGjL/9CzzLelJlX+lHCJt4egusLqhG 9eIiNzSvD9wNhGm9iwMvqE09e4GNhtAp3RUK3+rZw4sj/B8XJ+5CbWRTXNySCFMQ04mlXmEr6rPAf PpJKFARAagvkUrhtxxp3StzUY7d5B1xpxYRXac1skkENnslFOhWV9Yew0YoOeTvKcNMOlW2g23ZVS 4Li5AX8jIUvlRzmolZsfNLSO+5hEXGZxhNWdX1lqPeFZXN/raXbMwB1YxFs/i7Eh9ag0u3t3cu3KS PP1Fhj6bZMf/5ZYqy3jA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbW-00GJa8-2D; Fri, 19 May 2023 12:53:06 +0000 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbT-00GJZ7-2Q for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 12:53:04 +0000 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-39648122ce8so176989b6e.0 for ; Fri, 19 May 2023 05:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684500779; x=1687092779; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a9av7E+KBFnnteqRg304+qgwLrRa6+hP4lNySNm1b0Y=; b=n02a3/skcMhxOIEqClk3apqbCxVbGKx2A7B0CKl72UHfmVe+7uBbqfMJ3eGDo06TQv CC7OfYVde3gYu0B4+YurAU95zCOxXGH+jRuO6aKaTQijHn7NWWAC5ElmxJFia5AfXUDE EDzepm+PU01oPnm5KIKGcwf+iVTs5WCcuPm7iObJK/k3lQxaTUk920nh0tsqAN5hSe3t sf3zm2YD5eKM3gbq7SnZXNNI8EWCzuPEvWJI0M5BoxXsNlB+vImob2n1NqpgBy4swvdQ yu61EKlLpUwNsomMDq0k8ajvv+ew9wr6WQe2XXT4mXV/dhvqaGd/yhaCZY+PgEJUEUoe NX+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684500779; x=1687092779; 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=a9av7E+KBFnnteqRg304+qgwLrRa6+hP4lNySNm1b0Y=; b=KDi2Y+VM0mhOAM5W5vG/X7cmYhKV8dB15uXLd/qAn55cZn61YvI/Zxc6Y7ly8CUEsm F2o/R4U4JhivEsJto5Sxl405mapJZH5aZdRite/levNFu2ZOWTzJZf5HSb+YKUOsBmp8 nz+3cjEl9W16vekjF80gg5XfBkJ2beBBJu87ej3G/COEdXPQJvhTnv4wpdQnSvts4ue+ CinezZqH3x39FY41OVWZgpUNZLzxbOoEPzAwuI+XKjhAfLSRC4jTh0yZRSKCPc0iPuel g4/5801wM80KLfCYkrXqUPdf5OHrAqZNnbBO6jenWpGiCNpNA2NozyuFUZi+17M2f5uA +IjQ== X-Gm-Message-State: AC+VfDwBLO6jLd9nA5zxwLq+o3m/n5t2Ukbqvqc2GwgyV2r+7BbhScRN ILnT7GEpDPMXfldrRoeQkjc= X-Google-Smtp-Source: ACHHUZ4i8pe55U16XOrGqFfMv2LgK9rTaEddNJJB83XQ5Fn5sF788AUKu/2why1Md6ZW3QGFTFH4Bg== X-Received: by 2002:a05:6870:14d2:b0:196:3ce8:42da with SMTP id l18-20020a05687014d200b001963ce842damr1223318oab.3.1684500779192; Fri, 19 May 2023 05:52:59 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id i19-20020a4ad093000000b0055278f297f8sm1375321oor.33.2023.05.19.05.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 05:52:58 -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 v4 1/4] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Fri, 19 May 2023 09:52:33 -0300 Message-Id: <20230519125236.352050-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_055303_794902_852A7F88 X-CRM114-Status: GOOD ( 10.03 ) 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 v3: - None. .../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: