Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4711191ybv; Wed, 26 Feb 2020 01:47:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwngansIIVowgY98YS3oA8pH8cwz4LnuYT5IWL6Vyj27I+9DxXuPQsXnnj4O9alKUMvvAyL X-Received: by 2002:aca:49cd:: with SMTP id w196mr2270640oia.15.1582710476149; Wed, 26 Feb 2020 01:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582710476; cv=none; d=google.com; s=arc-20160816; b=XH+Zwq0G7R+QK34I9Km5wGyzsEFKGuFnf6EnvSOA9r8p3r7Li696OFh5oPhfCYRdjY t7om2ARIIU+mEEzTJFmvv+6Dhk3QRlkmNH287CxB8dLIDKZWAwUxDQUZ9qTtICG13vzx l9LwGa0c1TOAcVZXsgCAHhX4Y1vxvNYdGSV1m0jjBGPp2iepiYGvEm4Cz4+ykfBgjjfB vXJtqackB7Bg2QsYDdoKj0TueZ6i9HwHQ6wRTjJc6m4o6DvNpHOWpOs0OxjE4vW4cvUg M9H8ylsuzbPUrDvdV8p8sBSmU8n9NyX4y4kQtSxBx/gf/eSLyNgePrYT5FdxPqU3ubj4 wMSA== 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=Xh3IQJ4W2tv1AeOqB3mfwwe3SxLMtV7SfxuArlzBnaU=; b=0GjRcMc9ZaGcHVYCuJO4qDPnGh9vr9mX8ZHBrFYNS4iofQ3uBiRIPSEvkWuU10xHsj bjtDtjwQM58vnJUwZF9T/EHS7VMmvqK23oAS5BK1CFDJO8OBVhmxZF9Oay6fsxWNaM+Y vY7MavGhhQe1Ap4o03JO8X3BNg82P9EOvVwP1BJk4cOLwSamFFw8qmLij2vxRwBFFUqN yXl8acGmQgqWSt+UkVuDoCopMmkjyioxYTxudaUcy7Qxj5xk7HMEUp8ZThYe7Gwz/RsR quS3aulyM27PlmZAfTRwhHqlYFql8pB+EwbDdoaN0jkMi+xzEjE15nPaxzj7YTvamrMT 7Qzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gEO3U1ro; 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 n1si993217otf.102.2020.02.26.01.47.44; Wed, 26 Feb 2020 01:47:56 -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=gEO3U1ro; 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 S1728102AbgBZJqx (ORCPT + 99 others); Wed, 26 Feb 2020 04:46:53 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:36341 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727998AbgBZJqw (ORCPT ); Wed, 26 Feb 2020 04:46:52 -0500 Received: by mail-pj1-f67.google.com with SMTP id gv17so1053370pjb.1 for ; Wed, 26 Feb 2020 01:46:49 -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=Xh3IQJ4W2tv1AeOqB3mfwwe3SxLMtV7SfxuArlzBnaU=; b=gEO3U1roZbfmwMi2/KTNiJgV8ySomYUTjvAGlajOFpv+gwfFebzMva0Lqi6I3hQrBv eqft5MaJ5hm7L1xn8lWAGj1dHF7oxP3ynzLGo0LvOOD55jSTKLxS1Df3v43ngVdDBC/7 zWEU1mug9boalA6guekNXr5e3xHUbZPgQIuaRsrqJeDRJBPD42wDi+RB9snrFNhumAOl TwmkfQydMqQmBvnbFotxa6n+UdT2L903mvz909OnmgHfe2xALdGy9cAV5bHQ0NInjHL4 b9iNlgk/BzdWsZ4L0+pDi9IcMSM/Pe0NvjWEuSLWZp2m8CGtbkXUEvAPxRnKSdOSiF6X UOWA== 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=Xh3IQJ4W2tv1AeOqB3mfwwe3SxLMtV7SfxuArlzBnaU=; b=fAlB54fMunvPSn17Avmn5y8INyzpXFqTtqE8t+DAnloYJm83I28RkxMNSrYvIjadk9 VdLc8IU1avOuspmJTLh/pvKY4S9A0rwfJ1JIl+VA1OfSBWJEgSP4AXugyjtjSU70SxD/ C9tup/zr62TZvddjVl00g5l9amMnfmb5Rfk84D6OC4zT3KdXK7vkf9EoNSvfTifSfytI nTlm+3/1h3b1FvDGhEJ+z1SuXYsrf7tgWdp3cSEnVRpiDxwcdxweb3HeGiBmGD07WLKo 4WiTFuV2uHUqW5fkPXTX+X2tkIA5Ay6ku+h0v35Jmn3a4s2kC7UUX0rWG4RxSqWzK/9s s1sQ== X-Gm-Message-State: APjAAAXYLLi0xHxXMsk5WPv0eYZH5W89qGiGr3iocGOTQRctj54nnGY3 sThwK97e/e8SuIcNSqn8R88= X-Received: by 2002:a17:902:8485:: with SMTP id c5mr3266581plo.156.1582710408964; Wed, 26 Feb 2020 01:46:48 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id h185sm2276518pfg.135.2020.02.26.01.46.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Feb 2020 01:46:48 -0800 (PST) From: Kevin Tang To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, sean@poorly.run, 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 v4 5/6] dt-bindings: display: add Unisoc's mipi dsi&dphy bindings Date: Wed, 26 Feb 2020 17:46:16 +0800 Message-Id: <1582710377-15489-6-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582710377-15489-1-git-send-email-kevin3.tang@gmail.com> References: <1582710377-15489-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 | 75 +++++++++++++++++ .../devicetree/bindings/display/sprd/dsi.yaml | 98 ++++++++++++++++++++++ 2 files changed, 173 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..1b83260 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/dphy.yaml @@ -0,0 +1,75 @@ +# 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: + - 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..d89d957 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/dsi.yaml @@ -0,0 +1,98 @@ +# 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: + - 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