From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 65D9CC2D0BF for ; Mon, 16 Dec 2019 11:41:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 317E520700 for ; Mon, 16 Dec 2019 11:41:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tZtBnPo0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727569AbfLPLl0 (ORCPT ); Mon, 16 Dec 2019 06:41:26 -0500 Received: from mail-pl1-f181.google.com ([209.85.214.181]:35688 "EHLO mail-pl1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbfLPLlZ (ORCPT ); Mon, 16 Dec 2019 06:41:25 -0500 Received: by mail-pl1-f181.google.com with SMTP id g6so1726410plt.2 for ; Mon, 16 Dec 2019 03:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c3gR0aiE9PT5/GpNQxsZL0e257eJ0NBB7aiTFhtXAwQ=; b=tZtBnPo0PN/OsAQ+EjGTdsC3uGZQSV5r/ikZtVmZjDpvAZlqRJoi+kYEBRztNRaKzO nV59mqZ8UnZZXgJKRqvYQGPYiiBVXu26cPLaF9PiCXqXkUzwIPVXs7PmHxktlS947Jzr Ahoob891NMpUooA9RaWKbCQllV1wjJn4b9H5viON6S2q0kjTXX6IvYsWEkAWSRnvw5Su v4J4C1rhyaYBlgixHXmsJ3Sibc7deduqu+2ENpqmV9pebO037a560WrOE/NmBQJdjWHy 6a+IIVYXRe4MxQBKjmIRKsfGNE1YrWZXgC13HN+XYcSFD7gXMH9g3qQMzmTJkYntzkwh sebA== 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:in-reply-to :references; bh=c3gR0aiE9PT5/GpNQxsZL0e257eJ0NBB7aiTFhtXAwQ=; b=d1nWQ4wttMHHnsNLp0sQ7TCw+lm+XTjBlgfyhrcRO7oCESjnmype6kXrBnuyzzgyCU kJx9dJ6cKAz7ZDiz1HU8hihMNcWu0pZ7rRgWk6BRMvxmANXhItu60I3eFcTuE4OOIjB0 VEvcOLzQ6glcWPgTw8t80H5WA6YeXXIRjzlM2oJhuDqoK58Ewmp62qLr5Ji5N61Fys+Y xLluM6eEmwH2P+R2+NBF57FNrNQ8SXluSuJbkOPFqrq2V0Qui30DgiB3CXKK1VAAxDtu zZ8xqwFQpiu/8Uuu+8aAvBowsnweVkLN2T+sB9brnzO+vreM9fLnBZLcNWiqTNLff0qb TfeQ== X-Gm-Message-State: APjAAAWchNXzedC3efa5uXVN+Dvj344/466NMHSb4w4aL/J7VyxCzZl2 Za0MGywp7NTPieMBbU7H8aY= X-Google-Smtp-Source: APXvYqxsW0I7fF7/uV0+Pb3Fqd0p618P0ebJF1WddJuQy9wbdUoHQBlhROieZVjq+c4HuasDkvhYMA== X-Received: by 2002:a17:902:bf47:: with SMTP id u7mr15902338pls.259.1576496484493; Mon, 16 Dec 2019 03:41:24 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id p124sm22432269pfb.52.2019.12.16.03.41.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Dec 2019 03:41:24 -0800 (PST) From: Kevin Tang To: airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mark.rutland@arm.com, kevin3.tang@gmail.com Cc: orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH RFC v1 5/6] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings Date: Mon, 16 Dec 2019 19:40:18 +0800 Message-Id: <1576496419-12409-6-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576496419-12409-1-git-send-email-kevin3.tang@gmail.com> References: <1576496419-12409-1-git-send-email-kevin3.tang@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kevin Tang Adds MIPI DSI Master and MIPI DSI-PHY (D-PHY) support for Unisoc's display subsystem. Cc: Orson Zhai Cc: Baolin Wang Cc: Chunyan Zhang Signed-off-by: Kevin Tang --- .../devicetree/bindings/display/sprd/dphy.yaml | 78 ++++++++++++++++ .../devicetree/bindings/display/sprd/dsi.yaml | 101 +++++++++++++++++++++ 2 files changed, 179 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/dphy.yaml create mode 100644 Documentation/devicetree/bindings/display/sprd/dsi.yaml diff --git a/Documentation/devicetree/bindings/display/sprd/dphy.yaml b/Documentation/devicetree/bindings/display/sprd/dphy.yaml new file mode 100644 index 0000000..dc00f35 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/dphy.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sprd/dphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc MIPI DSI-PHY (D-PHY) + +maintainers: + - David Airlie + - Daniel Vetter + - Rob Herring + - Mark Rutland + +properties: + compatible: + const: sprd,dsi-phy + + reg: + maxItems: 1 + description: + Must be the dsi controller base address. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the output endpoint, usually output to + the associated panel. + port@1: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the input endpoint, usually coming from + the associated DSI controller. + +required: + - compatible + - reg + - port@0 + - port@1 + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + dphy: dphy { + compatible = "sprd,dsi-phy"; + reg = <0x0 0x63100000 0x0 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + /* input port*/ + port@1 { + reg = <1>; + dphy_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + + /* output port */ + port@0 { + reg = <0>; + dphy_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; \ No newline at end of file diff --git a/Documentation/devicetree/bindings/display/sprd/dsi.yaml b/Documentation/devicetree/bindings/display/sprd/dsi.yaml new file mode 100644 index 0000000..19376d2 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/dsi.yaml @@ -0,0 +1,101 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sprd/dsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc MIPI DSI Master + +maintainers: + - David Airlie + - Daniel Vetter + - Rob Herring + - Mark Rutland + +properties: + compatible: + const: sprd,dsi-host + + reg: + maxItems: 1 + description: + Physical base address and length of the registers set for the device. + + interrupts: + maxItems: 2 + description: + Should contain DSI interrupt. + + clocks: + minItems: 1 + + clock-names: + items: + - const: clk_src_96m + + power-domains: + maxItems: 1 + description: A phandle to DSIM power domain node + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the input endpoint, usually coming from + the associated DPU. + port@1: + type: object + description: + A port node with endpoint definitions as defined in + Documentation/devicetree/bindings/media/video-interfaces.txt. + That port should be the output endpoint, usually output to + the associated DPHY. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - port@0 + - port@1 + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + #include + dsi: dsi@0x63100000 { + compatible = "sprd,dsi-host"; + reg = <0 0x63100000 0 0x1000>; + interrupts = , + ; + clock-names = "clk_src_96m"; + clocks = <&pll CLK_TWPLL_96M>; + + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <&dpu_out>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint@1 { + remote-endpoint = <&dphy_in>; + }; + }; + }; \ No newline at end of file -- 2.7.4