From patchwork Mon May 22 12:51:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13250512 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 31AFAC7EE29 for ; Mon, 22 May 2023 12:52:18 +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=f8hnBjI6yUo0MKmJ6vANAMXzmEJcyZr3liiS32A7F+w=; b=DKFUUcGQTu+6oQ J50qoBrKlyWL1U6ueiehLK18a5fB0nnII2eN94HmEUuXQwe9a5SQlbOxxWEbGjoZLWJuacQ0TvMIX NgULjPdoB1iCZsfgHYbpuE8QVYrBbEcP8sW6aSfXjstaF6RsRni+JOV+ixkprWKMzsUUp8pwQKZ8o RmSTObTsj305YeaV9JS2GaE9RtpK+X9vMlRTbFj2STsQWLoV5r9ho4gEQx46fek5I7E+VlqrCIwsi /NDTuLKO/3GofZlNuVJEOmC7QmSDCx422JexyxrMbJgpwNPNruXm1FTWyJpY1OSLkQILoRbGd0Tu8 DzkEKxz0/7DuzjBceHZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q150y-006YZT-0x; Mon, 22 May 2023 12:51:52 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q150v-006YXy-1F for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 12:51:50 +0000 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6af8a21556fso2776a34.1 for ; Mon, 22 May 2023 05:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684759906; x=1687351906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YYQC+PvpKE6bixEeuKCSpjLHIDEpJf3TOHQP6i8oRkU=; b=OshAi+QYS9WztNMntr7xxIBK1rrCcxLTEj9enONlb7XnTP25RAGlpUwkL/rwHvJ3zv MIaGEi04I6MA3nZ/umDci33LVBedSxuwTuvYtuiVu2sBwdMVx2DJLcE7O211+UrjQw8E Q0RyPU/CwQcBuo/BNWHyjkolMcYamFU95bUbtEB4Of2Uk7MpSHCd4Rc5Vzx9dzv/Hr0J 2CHx1RrbcpT59ro7wgs6Lr27xxOzgW8fRjKtsuhcpwKOjO6DfGpygoquPC/qXmHiWPeJ hWyg8vdKMO74WR50Xr6Cnhex6VDLpviujkdpKtpLNQ7A5P0KXrozBP1DQrxtxpL9RhzE pM3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684759906; x=1687351906; 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=YYQC+PvpKE6bixEeuKCSpjLHIDEpJf3TOHQP6i8oRkU=; b=NdJ+yYPsUBFg1Z9bBNo9e4+y+sozZ2Q0FTkPyRrLSL6roRR/SeoiqsPHPrOVYcqfoc EpmgnAOWD74ZmtX5ddh0oep5RLo9t+268ObhlG/g5+Z24j6F7dh3HsPKzuJquy4L54Vh nOoSZerZsb6zSO59Mvx2/g+KVGsnTYE+bbHOVBDqSVRsF/r8/a3kDqfOtPQxab+td3y8 NbCFpB7kunEXTVnTB97TKv4kIhi9zeIsYcZPefwJxiTiFRG3g/qbwHQKV7aFiv2S+7T+ PNbUsdupig8DlqzLFCw5PEHslLhCOoPkZlJdXRVcA2Dm8XdkpuJujyck18M4dGgNGl2f H+Bw== X-Gm-Message-State: AC+VfDwLeS1zKKkCrUeUtZaQRdN2wqC7FZdkjhUe/r/5gg6BN6AISjDT FUD26dYgkiCswKq3A1GIC9g= X-Google-Smtp-Source: ACHHUZ7q6CpWKKvPeoq2ft4TtR+AJ6XK6iG152lXCNduUlOBfdr9DjY+hqrhuLJFkotdvy5dpM6efg== X-Received: by 2002:aca:efc6:0:b0:385:d91:ee30 with SMTP id n189-20020acaefc6000000b003850d91ee30mr5061801oih.3.1684759906172; Mon, 22 May 2023 05:51:46 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:b71d:e403:4337:204f]) by smtp.gmail.com with ESMTPSA id r126-20020acada84000000b003943e08ee03sm2676408oig.16.2023.05.22.05.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:51:45 -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 v5 1/4] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Mon, 22 May 2023 09:51:26 -0300 Message-Id: <20230522125129.526604-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-20230522_055149_422562_B78C6608 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. 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 v4: - Replaced items: with const: for the single item (Conor) .../bindings/display/bridge/fsl,ldb.yaml | 26 ++++++++++++++++--- 1 file changed, 23 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..d97064140547 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,26 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + reg-names: + const: ldb + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: