Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1639418ybv; Fri, 21 Feb 2020 00:48:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzgz/KCdVDq9vQxrdbs4nzt/uRYUjUgRF5/589nqJ1p0QWbhUMtN/LWPngSS2WozfWQJiE9 X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr28205480otq.75.1582274915611; Fri, 21 Feb 2020 00:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582274915; cv=none; d=google.com; s=arc-20160816; b=DE13SmRSlHzjBah6CygyWoF/iAs1A//ZBCsWRI7kQHcY9ksvFE+jpgkB14b5XnNFDC iCpd7oY240mSK7q4NOoC1muW2Die3Xj/QA4V0zsoXLNT/frWBTxSFWCopCxznMTnoJ7Y KH/XaNc1ivj8E+OEMr1011P1MniFw2HkIkODB43y+lv2nTbUASWI41WDaP2aolzRT+ws dat3+NAqQvHV6RbOKqjPwnarrr9WuEKErRnsfBrO8zAI68PzAZrEPg9fLPCo/DOuO9fr fRGS89E1zH8UjaKXxQhwOCXSKrcRfp5szZ1kmL15fTICqBR2AMqyZzoQwFwVaCeMCY4c Eppg== 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=KRlxVHnY6xMdVsy7PcO/fCoxo903j73okxO5nZgCM18=; b=O2Th7sfGjm3X5BUxPo0wJHVctt4hP+RQBb1d7YXuENQrfCBSS8BI5dXEfXw6YhBYq9 Ku3KWxbE5cZgy9nEAKOAk8VltupOYLQTRCz50NGzNHxXn2cEOZ9FkmZ5bTmPuwGY95sS V/+oqXz+QOtjhswkoa0GPjDN+t3Jqpa8rpOpo/69wEw4wA176EU48RKCO1jTBQzXJ0y7 YeCjafa7G8ar+IeCUOyjUzb/qUH/04CMc5/3v1hFdHA17WJ/++EPpGmMA0/FV0eIboAu esw1S471LZ35QbYeNbi7y2f980GuX4wc0DM4Btza6ftRumtcN5bc1f+WXU0xvn8+789d Hcxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=atHtCdxL; 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 25si432731oiz.230.2020.02.21.00.48.23; Fri, 21 Feb 2020 00:48:35 -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=atHtCdxL; 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 S1729292AbgBUHtX (ORCPT + 99 others); Fri, 21 Feb 2020 02:49:23 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42615 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728198AbgBUHtV (ORCPT ); Fri, 21 Feb 2020 02:49:21 -0500 Received: by mail-pg1-f193.google.com with SMTP id w21so550553pgl.9 for ; Thu, 20 Feb 2020 23:49:21 -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=KRlxVHnY6xMdVsy7PcO/fCoxo903j73okxO5nZgCM18=; b=atHtCdxL1sgWCq/VwfyueK33mty3HzDbieNwt5EKBCyhbGy+Xy6YmoGDwQ6DVXXnUA 1f2nupfCV5141CdThGW+1P5qDcF9TvJBMiTAcPGRzVZQT0HKyJm+QdapEAn8L3QLHI+O v1SCYwuJkw8cWSJnmWR15mUTru2S/+AL5epZeaDi7c6g/v/Ko6lCTK1C5ny0bqiPz6cl Tp3T0cj+F5AJH7OJOoyGmEFzHDeI7GyfPDVRNG6j9dLBE5HQ4Fnv2XH2GmtA0gkAW/Q5 oyu8lEJqG2moJBTFEXCGoxxvZTV6ZqqcOmLqB1y9PHTxSYc/Dyu8slmfUJ/Htg1O116t C1QQ== 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=KRlxVHnY6xMdVsy7PcO/fCoxo903j73okxO5nZgCM18=; b=O1ssDF3kis45KR3wvlrwHzlzU+20jktHbDNXVcRN0kFkvROYY/+i8j8fF72e3J63Xw 3LwttFF0J3RyW9MLeZFLPCmvF8apa7m2XKaw8sLD0TEV3HXuq2QIfbGOvBeMRWNQxoIn O2M63pckQRUwZTCQR28AEQ+5e50/MaZchUX1V+MZwnUg1uvD6lUpFOA+4n0Te6P8VosO 5USKQYW16OQr+FYvKGTzxDuvF9kAabI4Vn8zBUG/6k3rPNwCZLRBCoTgZVs1uzAo+GdV XXbOOlIDeBhNVZv6BEe2ikHkHKZfYgWmm38kyf6vCwqG64mY/FDbApE0kx2MxfaaWVsI 3ZAA== X-Gm-Message-State: APjAAAUTjv6kY/ONdFB93treI4LR3HGO0W1SMh0e5cdHwT06aTtCnXZF 8aRAGC54PoEPXwksR77G0zk= X-Received: by 2002:a65:4d0d:: with SMTP id i13mr36680996pgt.346.1582271361210; Thu, 20 Feb 2020 23:49:21 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id d1sm1444653pgj.79.2020.02.20.23.49.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Feb 2020 23:49:20 -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 v3 5/6] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings Date: Fri, 21 Feb 2020 15:48:55 +0800 Message-Id: <1582271336-3708-6-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582271336-3708-1-git-send-email-kevin3.tang@gmail.com> References: <1582271336-3708-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..bd7819c --- /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>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/display/sprd/dsi.yaml b/Documentation/devicetree/bindings/display/sprd/dsi.yaml new file mode 100644 index 0000000..198ac31 --- /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>; + }; + }; + }; -- 2.7.4