Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5129624ybl; Tue, 10 Dec 2019 00:39:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxRrbX9rCaFRgMwp73v0cG+pNLltoKLQCZ9n01axwjxzNAXtj4O8LSR0jvztIbVhInz0GJB X-Received: by 2002:a9d:7d8e:: with SMTP id j14mr23958659otn.227.1575967171477; Tue, 10 Dec 2019 00:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575967171; cv=none; d=google.com; s=arc-20160816; b=MQPCAt/xPoVOCqamG7xxxi9qBiyS5u0NalxJQyit7oGRnthgesvE95uvgmfEXQVi5J lkwgs5QyPd/bnmHe3/4vpkZfmylvuP5jRNmQ23LqUWgV3HxoroA3aI5olzJo5A9sGtLD 13MSFNe+Tu0UUcrsYZ7Go2HuNwHN7SVQbiWpSnJdGhK6PUHpkt8LdR8m/INW4dhXd4L0 nJezE7ATmqDE7JuRCaWaBWnraI0N6omUzRb+Lb6XKPLKsHUaA7l/L9/PtwtaXMQtWvsv yss0QeD+UJqrOrZwka1jYnbH61jJiXylQcMerWOUNP3dlBtkdtmeaFyL10nstzSIBa94 AECg== 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=izzwB8GMZJtES8ZNzh6CcmsnyTygddhapLbM209XNjI=; b=0BfjteoW6+6SCum4TTfMAtpXt6aRY4YetP3U36Q1Vl4TSPZ03DarHJ2XdBX8M1E6v5 1LuM40ovnllP5Qth/8gDOzcBeewH6ygYTkFymuMpiwxQgba/SnA2m8x2cb4sGhVWHaDj Kn/HIddhlcNFca6XwjeBLyuQiTsgkw9Ybs5hapyg51MRBG1UCkc0hWjFhOPy0j6Y5HCn eeZ352IO1YpWfimrpD6frfimD4w5Wd6LM8s7UYWN1RzsZHutgrpFOT5LmYxqFGp02n0m egJ8tpJTdcs/D02qcpsiyZ4/yx+ecjIhYByek2qiTMgDAf4B8plgPcDlF1M6BscQCnTR z/Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RY5ElSrv; 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 v25si1441770oth.136.2019.12.10.00.39.18; Tue, 10 Dec 2019 00:39:31 -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=RY5ElSrv; 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 S1727259AbfLJIhR (ORCPT + 99 others); Tue, 10 Dec 2019 03:37:17 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39352 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbfLJIhQ (ORCPT ); Tue, 10 Dec 2019 03:37:16 -0500 Received: by mail-pf1-f195.google.com with SMTP id 2so8693591pfx.6 for ; Tue, 10 Dec 2019 00:37:15 -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=izzwB8GMZJtES8ZNzh6CcmsnyTygddhapLbM209XNjI=; b=RY5ElSrvt9m23bn6KokPJuIx7mpooAE3UOGD8182QQ2aLBbw/3XARg3U4NssfIn4uf DIm2/IwlKT2SsUkIqx1FSNTP4G7bo3CRntEOR38TFdltdHqa/Qj0xvV9RitldJjW4t++ tpve1aMOlW+HDP0150nclSp9OB/w9CpiLiEAeA8iyLmtUHBwZiZJNrOKo5rV94p3nbzs 6QzDmC4trEU9d2ntnMUXeKvvN1vO5CM829dKmLFJjI6lI3d5BcIGm5FWOI2+mVNpFNr0 10SDE/VVfKol+2nsCqSg9qJethOqcoFd/EAzPp47hyo/vhgHdTYbZRR21xPwUjhYovww Afqw== 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=izzwB8GMZJtES8ZNzh6CcmsnyTygddhapLbM209XNjI=; b=myOqXAnhkPvi/xWYNs1ZN3ScnPCt2aVcDOJH1CfLL1l6HpNq1xX1bvGgjLT8u7qfKY /zQfFZWwHzSajrPD2s5VkTaKn8DrqMG+bf+p+mE+iNpJKeg2u7IaRNsz0NXCfgJm9h8Q 4Wf/RNSFciDH/BRzb1+PUNr1nDp4runhKqFd7fO1rawzRyus2guGOJoAd23yIQUfBPkD 5zNPJtHP+QE+F8aX7O94ehPKRGwtDf99UEoVTzySVbP4AR3SdctRFGoIwnzPim4u/LzF 8iV0wh6b+ZrR9UISqD9lGSgfoIFW3fBgeTmyYI4hlDjznVaFqFqZsILH+eN2KFkIL8JA ZVCw== X-Gm-Message-State: APjAAAWiyWptJndrKE3qBgkTVj8IZ9rBnqzkcUkysPnMp11zSLlV6m1a kzVdyghxlBUeMSKzZARJ6KZVrEed X-Received: by 2002:a63:4466:: with SMTP id t38mr23512976pgk.316.1575967035473; Tue, 10 Dec 2019 00:37:15 -0800 (PST) Received: from nj08008nbu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id y128sm2246632pfg.17.2019.12.10.00.37.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Dec 2019 00:37:15 -0800 (PST) From: Kevin Tang To: airlied@linux.ie, daniel@ffwll.ch, 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 7/8] dt-bindings: display: add Unisoc's generic mipi panel bindings Date: Tue, 10 Dec 2019 16:36:34 +0800 Message-Id: <1575966995-13757-8-git-send-email-kevin3.tang@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575966995-13757-1-git-send-email-kevin3.tang@gmail.com> References: <1575966995-13757-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 generic MIPI panel support for Unisoc's display subsystem. Cc: Orson Zhai Cc: Baolin Wang Cc: Chunyan Zhang Signed-off-by: Kevin Tang --- .../devicetree/bindings/display/sprd/panel.txt | 110 +++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sprd/panel.txt diff --git a/Documentation/devicetree/bindings/display/sprd/panel.txt b/Documentation/devicetree/bindings/display/sprd/panel.txt new file mode 100644 index 0000000..a4017af --- /dev/null +++ b/Documentation/devicetree/bindings/display/sprd/panel.txt @@ -0,0 +1,110 @@ +Unisoc Generic MIPI Panel +================================================================ + +Required properties: + - compatible: must be "sprd,generic-mipi-panel" + - reg: panel ID + - #address-cells, #size-cells: should be set respectively to <1> and <0> + - port: video port for DPI input + - sprd,dsi-work-mode: the following dsi mode can be select: + 0: cmd mode, + 1: video burst mode, + 2: video non-burst mode with sync pulse, + 3: video non-burst mode with sync event + - sprd,dsi-lane-number: number of dsi lanes to use, default is 4 + - sprd,dsi-color-format: data format for video stream transmission, currently + supports "rgb888", "rgb666", "rgb666_packed", "rgb565" and "dsc", defaults rgb888 + - sprd,phy-bit-clock: the transmission rate of the clock lane for High-Speed, + the unit is Kbps, and the default value is 500Mbps + - sprd,phy-escape-clock: the transmission rate of the clock lane for Low-Power, + the unit is Kbps, and the default value is 20Mbps + + +Optional properties: + - width-mm: see [2] for details + - height-mm: see [2] for details + - sprd,esd-check-enable: esd check function enable switch + - sprd,esd-check-mode: esd detection method, default is register + 0: register, + 1: TE signal + - sprd,esd-check-period: esd detection cycle, unit ms, default 1000ms + - sprd,esd-check-register: if register detection is used, this attribute must be configured + - sprd,esd-check-value: if register detection is used, this attribute must be configured + - sprd,reset-on-sequence: timing of the reset pin when the lcd power on + <1 5>, <0 5> means first keep high for 5ms, then keep low for 5ms + - sprd,reset-on-sequence: timing of the reset pin when the lcd power off + - sprd,use-dcs-write: bool attribute, indicating whether to use the dcs to send inital & sleep cmds, + default use generic + - sprd,initial-command: lcd initialization command set + - sprd,sleep-in-command: lcd suspend command set + - sprd,sleep-out-command: lcd resume command set + - display-timings: see [1] for details + + + [1] Documentation/devicetree/bindings/display/panel/display-timing.txt + [2] Documentation/devicetree/bindings/display/panel/panel-common.yaml + +Example +------- + +Panel specific DT entry: + + &dsi { + panel { + compatible = "sprd,generic-mipi-panel"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + port { + reg = <1>; + panel_in: endpoint { + remote-endpoint = <&dphy_out>; + }; + }; + }; + }; + + / { lcds { + lcd_mipi_hd: lcd_mipi_hd { + sprd,dsi-work-mode = <1>; + sprd,dsi-lane-number = <4>; + sprd,dsi-color-format = "rgb888"; + sprd,phy-bit-clock = <1100000>; + sprd,phy-escape-clock = <20000>; + width-mm = <68>; + height-mm = <121>; + sprd,esd-check-enable = <0>; + sprd,esd-check-mode = <0>; + sprd,esd-check-period = <1000>; + sprd,esd-check-register = <0x0A>; + sprd,esd-check-value = <0x9C>; + sprd,reset-on-sequence = <1 5>, <0 5>, <1 20>; + sprd,reset-off-sequence = <0 5>; + sprd,use-dcs-write; + sprd,initial-command = [ + 39 00 00 02 b0 00 + 39 00 00 04 B3 31 00 06 + ]; + sprd,sleep-in-command = [ + 13 0A 00 01 28 + 13 78 00 01 10 + ]; + sprd,sleep-out-command = [ + 13 78 00 01 11 + 13 32 00 01 29 + ]; + display-timings { + timing0 { + clock-frequency = <64000000>; + hactive = <720>; + vactive = <1280>; + hback-porch = <31>; + hfront-porch = <31>; + vback-porch = <32>; + vfront-porch = <16>; + hsync-len = <20>; + vsync-len = <2>; + }; + }; + }; \ No newline at end of file -- 2.7.4