From patchwork Sun Feb 14 17:52:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 382779 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2183C433E0 for ; Sun, 14 Feb 2021 17:54:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B64BF64DA5 for ; Sun, 14 Feb 2021 17:54:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbhBNRyW (ORCPT ); Sun, 14 Feb 2021 12:54:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbhBNRyT (ORCPT ); Sun, 14 Feb 2021 12:54:19 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B81D4C061786 for ; Sun, 14 Feb 2021 09:53:39 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id z6so2840013pfq.0 for ; Sun, 14 Feb 2021 09:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/pwXbJYXJ/XEybu75dwMk2OD1xq/y6MntgB8eUFgtCM=; b=Ke27OPgqd7Xm+2DvA6biiNBQqcB7WOB1Pf1acOXZZffpCWn2ZP+qJcXh9ksmIPNiI8 0YzBEqDP40R0edRJQWbMtX7+JcDhtlU7oSs0NiQOvoROCILKOf7iqQ6xdJAPwS6KnNnT b5tdvxLFJHwh2nAf+0I197VKBJDW7uxR58LI4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/pwXbJYXJ/XEybu75dwMk2OD1xq/y6MntgB8eUFgtCM=; b=o9J6CUXXmNlWPtl0A1LV2bzmX3PEsTqcPWpigrGLCp2gao+cWOoTGEXKsq/2lX9euR Xk2kM1r+VmDAqWEWrQfce4zmRXobZ8g+MEHvZs/tU7AjG01b3GIVxu7SWZUu3yGqS3ph /wNoUz1FBIQGCyP9bzAF+K8AC4QaMjPM8VIWJGWIo3/Vzbndb5yR8jqj70xe5PA46CDl k4amX5ikb3Mn4m8aTugpKWTIrSqsdY0eaHV1swc6aRsDLRhHWIILnihWiPMDEhcZtxkC jZoEeRc77nAyWm6zawqbVcvvkgKsYKjNN0mluRxZFOKslXTNaQns/n6gbki6lNxvvM0C 4Tlg== X-Gm-Message-State: AOAM532WUtJ3qEUBqTVodsD5V86m22sZJwUw2M8m0rTnr3h++CGyNMuP 7MY0e21um5/nCpbSCG/a7CdY9Q== X-Google-Smtp-Source: ABdhPJxPpuCp8VeWMJFfHNYkSYT/BDlow0ANd3LBdQeBXx9d/b6U2FYcI1KwPG27rotwu9YDzN/BNA== X-Received: by 2002:aa7:9549:0:b029:1df:14f8:1e2d with SMTP id w9-20020aa795490000b02901df14f81e2dmr12043592pfq.55.1613325219228; Sun, 14 Feb 2021 09:53:39 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id h17sm15094443pfr.200.2021.02.14.09.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 09:53:38 -0800 (PST) From: Jagan Teki To: Rob Herring , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Sam Ravnborg Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 1/2] dt-bindings: display: bridge: Add bindings for Chipone ICN6211 Date: Sun, 14 Feb 2021 23:22:10 +0530 Message-Id: <20210214175211.105107-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org ICN6211 is MIPI-DSI to RGB Convertor bridge from Chipone. It has a flexible configuration of MIPI DSI signal input and produce RGB565, RGB666, RGB888 output format. Add dt-bingings for it. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Changes for v3: - updated to new dt-bindings style .../display/bridge/chipone,icn6211.yaml | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/chipone,icn6211.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/chipone,icn6211.yaml b/Documentation/devicetree/bindings/display/bridge/chipone,icn6211.yaml new file mode 100644 index 000000000000..13764f13fe46 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/chipone,icn6211.yaml @@ -0,0 +1,90 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/chipone,icn6211.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Chipone ICN6211 MIPI-DSI to RGB Converter bridge + +maintainers: + - Jagan Teki + +description: | + ICN6211 is MIPI-DSI to RGB Convertor bridge from chipone. + + It has a flexible configuration of MIPI DSI signal input and + produce RGB565, RGB666, RGB888 output format. + +properties: + compatible: + enum: + - chipone,icn6211 + + reg: + maxItems: 1 + description: virtual channel number of a DSI peripheral + + reset-gpios: + description: GPIO connected for the reset pin + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Video port for MIPI DSI input + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: + Video port for MIPI DPI output (panel or connector). + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - reset-gpios + - ports + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + bridge@0 { + compatible = "chipone,icn6211"; + reg = <0>; + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */ + + ports { + #address-cells = <1>; + #size-cells = <0>; + + bridge_in: port@0 { + reg = <0>; + + bridge_out_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + }; + }; + + bridge_out: port@1 { + reg = <1>; + + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; + };