Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3458482ybl; Tue, 21 Jan 2020 00:53:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxXA0FY4LsW8P16QSs0dBsMg9J0Bixpn9yLArm215xGrJRSWrKU3LUx7uGMvPl/KqUuhTjc X-Received: by 2002:aca:1b08:: with SMTP id b8mr2240883oib.62.1579596837072; Tue, 21 Jan 2020 00:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579596837; cv=none; d=google.com; s=arc-20160816; b=jmVCAWugAb8dOscmn2XAbMK/HS35Z/joa3pUkePjY73JQxvStpbuknsTlop6n2Whuk qe++wZKLgbPYCggg9bj60yKDhXp345mvgjZB71qP/szFrJNr3alA+sHZy/IW1Wk1C5IY Gsg49aPE9OJTk2N5cJl8A4hwbZS5MnTvP/UOS1lyxGJG8VwuEGj9wPUkKHdbNQd/6cDx c00XaxxovAUsy1DD2nsNacFkG9J0KgIX514uf9vxxE33PyvAxfrqKTj3ddAENg/a6H2y 4zNGB9v8AFfzxGUxzUuAFK3oc/o3xXO7cEx6QyZtqe9ByH54UJUgwitWbbJeTslOxWAK U9FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ry4/ep16oNKoCc2xrlZ2XWt3hGVglx47MU7Pj1OXlYM=; b=oJETyDKh9OpJx0FSXWVI7603QWPzHmgDNwTHuYHEeaVtpOSwx3Bp0EvvvGR9VznEXQ L/b9iEA5bgiLK2R79lDJmvl0fbUueUgi7jvlHBQckmFTKBJq+Jqlzbqn0xwinC+6IBGJ akt+yFooTbHEW9lCLexDxvqgaYw3yNygOHi8x4uTQjQbGwJmhPeqAGaejVCD60KD/vo9 0/sDjnAESsITG+vlXoQ4vRFkyFEdlPD8RvKTlqw0wovWpjfjSWYCK0+nsvjqUtzVPydj 7mX1lx90BkGaDYJ8goYSNxwir08yXTtQssplD+cWL/9SS9sVyda9M6B45VhXnEPioW69 JoZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k1IWE9m+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si27317259otj.235.2020.01.21.00.53.45; Tue, 21 Jan 2020 00:53:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k1IWE9m+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729256AbgAUIvk (ORCPT + 99 others); Tue, 21 Jan 2020 03:51:40 -0500 Received: from mail-pf1-f173.google.com ([209.85.210.173]:41381 "EHLO mail-pf1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729096AbgAUIvk (ORCPT ); Tue, 21 Jan 2020 03:51:40 -0500 Received: by mail-pf1-f173.google.com with SMTP id w62so1131930pfw.8 for ; Tue, 21 Jan 2020 00:51:39 -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=ry4/ep16oNKoCc2xrlZ2XWt3hGVglx47MU7Pj1OXlYM=; b=k1IWE9m+k9xJWthTRraJnQzq1Rw3wkzmZNmq66aIX2Uv8T8JnILLr8i+5e6+k1JewB R+XJhBkmfviWpVxG4ndKNLMArnCLSnFbgi7Avc0GXxHYmtLZXIqGc4CAGB1fyg7+lThj +R6SD4z0HAwaHh4US76MAfjY+IoZkXdnjOIsEqiKayZBaTI53eDaBolqfw8KRiN3F9hv hkWcD2R4BsJNIwURGwMcsdOmr7HaLwPagyYrMW7F7pTElJ2jTpY58PZom0RjVoOkZ9ql 1/LdVPY4HfgJM7YOv9FfZZbIG3eJDe8NqzlFcjTqyq1QhfEKeQ4e8hgD64cF1xDcL2Oa e/og== 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=ry4/ep16oNKoCc2xrlZ2XWt3hGVglx47MU7Pj1OXlYM=; b=Sz/wNAr3SpYMche3ihax7lZFTM8cQETQBwWQMPmwmMeOQwdIIhEb+J6H3s5H7Cc37l NEJtpdSRR19VC/vmvRiqsKtgrMAk2CXFF0KrNnraSs6c9aiQicrW76NmVfpyI+sqfSeR ZYlizZ5MbgUgwYgFuoID3r+5MeXUMk+GFhuNBNvkd74nR7z9AS9rNot96lNEo5ucPysf EsdPrmOz9K3wi2c4TU5mOaRYfUKTBCEJSHfzT2o+eQakXTYlfseGOHIJLtH5M9xAJ+VI QCLfa+Br05DO1xdFR/rzhXGPioLEKJIur2OkaoVLcKU+N5hVYEbXVMay+Bio4DpaCH7y fWcw== X-Gm-Message-State: APjAAAUA6unxIauQJ4CVMkB9VNgctzoM+q9wihSASRwPOvYQomatIzZd 0QR4UxARYsgnPHmfZyJl3Kj/qnVN X-Received: by 2002:a63:cc4a:: with SMTP id q10mr4182000pgi.241.1579596699371; Tue, 21 Jan 2020 00:51:39 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id 80sm42820957pfw.123.2020.01.21.00.51.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jan 2020 00:51:39 -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 v2 5/6] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings Date: Tue, 21 Jan 2020 16:51:01 +0800 Message-Id: <1579596662-15466-6-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1579596662-15466-1-git-send-email-kevin3.tang@gmail.com> References: <1579596662-15466-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..c5e97c9 --- /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,sharkl3-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,sharkl3-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..f38d7f3 --- /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,sharkl3-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,sharkl3-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