From patchwork Fri Dec 14 20:46:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 94 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yw1-f72.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id F3C762E54F5 for ; Fri, 14 Dec 2018 21:46:51 +0100 (CET) Received: by mail-yw1-f72.google.com with SMTP id r194sf3921450ywg.12 for ; Fri, 14 Dec 2018 12:46:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544820410; cv=pass; d=google.com; s=arc-20160816; b=iQpFbA3W/6P2/mPKtjMn32+PaEDbyp6e0BttmOh+tyDMMyfSyaA/LXvBOPeah8Xi/q GorA5tTvBEGxC9o3oIoCMlibWac8Yc9bBMNcr1JBigGoxhOqVqOlTdKs/nD19plR/Qre qJH+DBzAliGzkg//r0v/P8gIWzb2gaChsThscCSBrokvLv0j0EIp2tlPhhWFKXa1yZlY tYp4D/wmwkAChSgUuCa4CxmrES75LcitfmGEa3Td12M3S0Sq8eCLMr+/Sz9UM/nD8Q5t AfsvKpwS+QtgnjBOum24lq0tHxZ20GBbLuDMoJOXhJoAJNwHP0WZ2CJH9BxGmkv2sqf5 KZIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YfuIbKfYXLeSMyVQXkpoPXxNgNbgjPxWgbF6UQTE2Kw=; b=YkeOJ/bHRwZTl0YzOKyOeolvCfoiJMeQA4lJW7aZ+YnygaLj9FZjQCYYTvDf5IuyMT ZPJUqmwU4XHCgIsgBgngviyuiQTM6thKxgYzsyFG2jrkiqxZ5zFosIGnXnjq5I4kSwd4 EqdMCa0HhMrexPlylC+94Qe4/cAqzPFBdxaXn7A0NIiko7kepzt7j4pmX5UEOC0EZN7V rv8CAwPKSRkOxrYNlJ9fVL3wVmM40LgEUc/fY5BCefHCk4AmWW6/lP83mJsFrHK6+32P v7Eid1F1l6xomj9kLdYANOVFwdl6888UG+zvm8R+uQ/z3zFpkGqqqIUD4DNZCcAIgz0J P0pA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZT1teP6O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=YfuIbKfYXLeSMyVQXkpoPXxNgNbgjPxWgbF6UQTE2Kw=; b=k4lYM7T9r+DyyHiGxojyguO42f49PYF1fedAR9yGDn3EW3z2UjVMjEgfYN64cal8iQ 9ZryntpH9MYcO5ECoK25dtNSyNRFGzgSB+m9/Ee4KlkxwurdgPp4yAXasdWpbR0Bjir3 7WnRPiu5OljjZc8E8GcULknN9S+xmdZdLHE8Y= 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:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=YfuIbKfYXLeSMyVQXkpoPXxNgNbgjPxWgbF6UQTE2Kw=; b=jIBa4yTIFkqYNbJ0U72eps3cKWoAIuJxL3dgvSl9MJvdQ2Ty27sRVKgu+LQJMoWXGd f16pu9QMrvWpFMAAR9QSCJIAx693cSYw4DA9HX7JdvE0/qzSRvyrehXTx31T8+QdtGWY B++2MPslTM4CTgVdKhZuoZNaIWgJUVh09u4TG/xSujENxyli+y/MX372sld49X8t9UJW en9UTtm6uQej4lsTrcNG/63lTRPhHfSgEv9CsbA83hi6Q8G8t9WVpKsRa8EyP7KfqiM3 f3EnHM3yl9EAqgn4O7G3N79cbrsoIuLyeQAD+jUVwdVxOhX9sHAkMWySGkinHK/uPatM hVyA== X-Gm-Message-State: AA+aEWbKPvaKXof1wXByQHrncgFi0VxNw2X0GSi3XkV6nWoA7epdLxSx ScAmQiHMljJCIyfiSrQxlXpuM3Co X-Google-Smtp-Source: AFSGD/VhvkOxfbf3vGcafNVtC97mOn4QyNuoCzjmW2TALc5EyUBQDZg0nptIm1JVclTOKeL+JzpLeA== X-Received: by 2002:a81:4642:: with SMTP id t63mr2679335ywa.21.1544820410839; Fri, 14 Dec 2018 12:46:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a81:5784:: with SMTP id l126ls4368874ywb.0.gmail; Fri, 14 Dec 2018 12:46:50 -0800 (PST) X-Received: by 2002:a81:8746:: with SMTP id x67mr4688293ywf.137.1544820410526; Fri, 14 Dec 2018 12:46:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544820410; cv=none; d=google.com; s=arc-20160816; b=bxsdS1ZqI+OZa85VMSPRnBwW2NrdJGeC5RgsHk48ivOqbSplAE0a2R0jovngIpqbGk iC7CfJReTj4qjNUjfJtAZ7Hj4G4d8Z/cN5TzziycHmOXnjMDgSK5ciyAsRZJDYGTP/Vu 9HHH406i1axJ9Oj5zZBrSuNslJpxpxpcM8wWel/W+uvYh5dz5yAFRZ8zGreMTdwTn4IN GOvmZMK9iY2lRAicgmdeXAPFJKdnIVhH7cnMOrIbzadux+dDMmPmn7md4LMsVzSIpFJg LS75d2ssuMsjxj2i7ulaBq4eTa3FIiDszQo3XCT36tVLoW9Y71d41ir2EhBAcniTT0wR +zEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=YfuIbKfYXLeSMyVQXkpoPXxNgNbgjPxWgbF6UQTE2Kw=; b=UPUhzaX2bUh4A6VErYtjFw81G3wZqQvLRHFygrUHYOMq6IDUljhSXu5gZgbmi+mCUg kAmNfCo1jBXNGUxbz/F8/6QSno+qS2OKgKqhVSQK5xY++jNuMEAsZ7LXfAP2PmQM4QRA vZbcO0fa8ZNaX8+uoLSeV8ef+VaIQD/0rIYu9C1LJfH5+nReZy3L1vY61azbrlUWhQtx f+Q03WQE0khll+W3Rg/X+aBBbAD2FBEpBetawZCqmTbPndwltj6GVHwv89zgD4XnjNHM yeAQg0XtPP428sGUHPWIUCNWfmycyZILmuOzLee8QEUTc53iFQBYs8pXnZJ+ra8XfCiv xP0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZT1teP6O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d126sor845772ywb.13.2018.12.14.12.46.50 for (Google Transport Security); Fri, 14 Dec 2018 12:46:50 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a0d:dcc5:: with SMTP id f188mr4610569ywe.210.1544820410182; Fri, 14 Dec 2018 12:46:50 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id f10sm3754614ywb.26.2018.12.14.12.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 12:46:49 -0800 (PST) From: Jagan Teki To: Thierry Reding , David Airlie , Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v6 1/2] dt-bindings: panel: Add Sitronix ST7701 panel documentation Date: Sat, 15 Dec 2018 02:16:39 +0530 Message-Id: <20181214204640.9789-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZT1teP6O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Techstar TS8550B MIPI DSI panel is 480x854, 2-lane MIPI DSI LCD panel with inbuilt ST7701 chip. The default regulator names in ST7701 chip is renamed in Techstar TS8550B so, add specific binding names for them. Signed-off-by: Jagan Teki --- Changes for v6: - none .../display/panel/sitronix,st7701.txt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt new file mode 100644 index 000000000000..ccd17597f1f6 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt @@ -0,0 +1,30 @@ +Sitronix ST7701 based LCD panels + +ST7701 designed for small and medium sizes of TFT LCD display, is +capable of supporting up to 480RGBX864 in resolution. It provides +several system interfaces like MIPI/RGB/SPI. + +Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has +inbuilt ST7701 chip. + +Required properties: +- compatible: must be "sitronix,st7701" and one of + * "techstar,ts8550b" +- reset-gpios: a GPIO phandle for the reset pin + +Required properties for techstar,ts8550b: +- reg: DSI virtual channel used by that screen +- VCC-supply: analog regulator for MIPI circuit +- IOVCC-supply: I/O system regulator + +Optional properties: +- backlight: phandle for the backlight control. + +panel@0 { + compatible = "techstar,ts8550b", "sitronix,st7701"; + reg = <0>; + VCC-supply = <®_dldo2>; + IOVCC-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; +}; From patchwork Fri Dec 14 20:46:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 95 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-yb1-f200.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 8E7A82E54F5 for ; Fri, 14 Dec 2018 21:46:55 +0100 (CET) Received: by mail-yb1-f200.google.com with SMTP id y67sf3663361yby.11 for ; Fri, 14 Dec 2018 12:46:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544820414; cv=pass; d=google.com; s=arc-20160816; b=wTQwnmpzk6o8SA8+tYamUmC2gxnDc+V/xF+oc0oJ97U/+Xf2lTss2Ss9moMhavDMEy UbreEqG1EsjN3R9MoKCnzCJkIt14kaKHpdwTuvbmbuvccVbz6rViQtd1ai1NiFn46jla E3Yfxoc+5c9MnCmG4leTofAxiAYhF+KKIHluc9qgs5f0yVSJUHBopMN2ipbvMslqIjZV Xn44lm5S5Z+0vuyVcdhEOL39mZemHQ7N1Y4ueeR0thE5ezwC+Uak0Q4kIs9bnuwtjNnf oddKxBaPxxHGEoDWELXWFTLE2qX1q3LDATN/7HqDGoXaEm+RqNLsyik2KO1mRzOfbjhf rSwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bz+9XMOyD6Z2CV7tsnh0VVD7yJB1HSJAP90Yg06YdMU=; b=YjKmUS8hVOnPdNI05+iDqpG0muL100fAU1OJuMD1mWDl0KlrRsA4bIrBE323Xk6JGr BK0MpIgzU5FJaq5Z98W8sDLCADaql2mBAfArwQTMtCDlJtVDW/O9avnRla7qQw1yegKu US4F/14ggXDCZ1obWD0WIVFIFfp4vX9F/YQBhYK6fTmiMFyHPwNlxU0jaU6D+h7W94xz ZKyvH4Ilb9xgdo/51/fle/dmQaKhmkmWMHwtvfLfJRNRLkBMHIyBhGTRublmjBDG24jy cutHsbo52XuichxmIfQGBY2vPTo2MkaIBWjP8F2vdkfikZLPiL4eNleU5zqGHTWzF214 7Kqg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="o0PM/OR3"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=bz+9XMOyD6Z2CV7tsnh0VVD7yJB1HSJAP90Yg06YdMU=; b=DwTBChXq9oJVv/8awewRwFQQ/uFlXbO79cM1xvySmRswzwcz4oCsDawUxQnWHcbTFR LWVapcfLwkhiVfd8s2vMivaNDW+Zj6bX9iqQIV5pSkxelD0NUOgPGQUdJqoJ+VT8LhHA Tbt5LK2+e2sHs+vquwZKKybVEZEM8FOjj65Ro= 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:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=bz+9XMOyD6Z2CV7tsnh0VVD7yJB1HSJAP90Yg06YdMU=; b=ar3Z+CrfDKtGZWepTVHcRTG894MsuJVSjkgUthslIihYxUAPE2DkDH7ntJCB1zF9fU DzssSXaMkmys7MGctkSfgn6mI2YqTT6QQTXPB/DgGaBbEuGlQILkILFLdDCzs7p0fFnl 6rNN2qqUUUlD0VvLfjh50faTcyQdgi/Da7vTPQ0nTYBzCgmVnL1LMINltsQrLyzf7d/B YACeDgPVDooVtgds+WQGK24lINzU8+IxKvO2/jgp8OFs5lLxgnpILHEmQrCRkCQ5Wj6L fk9zWUOGZhjCdAAvosMgbeoIdqKbukgyvbglTCdqvEIi8swdim2qedm86yECdjvjC/fp scew== X-Gm-Message-State: AA+aEWZ29wlazI/4DirVlUmCweTdJL/PWMqRWK0E0ajRPFZiBh4lwT3a E2QRUYZkiszWXBP7XGhT8S74I/m7 X-Google-Smtp-Source: AFSGD/VNXQ9VMNF+iWKK47M6AfqsUkkQGhsUGOBn1JJrV8Co88AtAuUwomdjf+YntwnASwlbtATGUg== X-Received: by 2002:a25:943:: with SMTP id u3mr2591320ybm.95.1544820414437; Fri, 14 Dec 2018 12:46:54 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a81:a103:: with SMTP id y3ls2053455ywg.6.gmail; Fri, 14 Dec 2018 12:46:54 -0800 (PST) X-Received: by 2002:a81:9291:: with SMTP id j139mr4741677ywg.35.1544820414081; Fri, 14 Dec 2018 12:46:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544820414; cv=none; d=google.com; s=arc-20160816; b=zTS4egoTJ+hMeC9nKNk02mNvzKv5GndyZb55xptgO8pmXvKP9Z8chPwLX9BRwVu8hQ /1lg4slumkTz9iv6YOSz6oiQso++1EB3VSAwA8BMb9BNUUI3Ftro5+0+jP8Ft/+kF3GI rZz/c2qhZRbO7gbawE2D/G35tYOW3dAHfdEg1KjlpErWNQuXvqlVkWpDWxIMu8UYLA49 gRMusCXO70OOHRyQAbjLII/OGT7w/tEWrtS+WS/t9X/8gzkvPBe1l73gmEVtjOCbkOFL tYI/4m6QfDNp5P+Cvlzk5Yb/rTP5mqi+xnYMqAkbCgKJxisHxpxr/Pjb5x0Z7Wjaodax fs/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bz+9XMOyD6Z2CV7tsnh0VVD7yJB1HSJAP90Yg06YdMU=; b=JIPLofldOv/eH5eRwHH/BDPQr0nHmqIl+kuYnjN/3H+rz4QyHY11V/MTUnTHk4FuwN muErlUoEgvNDOdyjRvLUP4ch+Wm++8t5TJPtB22Rc+4OQy/n971x0WZ2areK5RphQUqY UBdzP9DtzH32K+NMwZlWWl+/7RpHkAOlXd2oeoxlDvoVeTsR+Sb+lHzBy8DR9Q93kQMj aYGLesZ2QpU6OP/tvGFEyluEsbF45s9SqysQ+bNirprRHbJbdUhjfd3KV3ZLfsazWtJC sWtkBFRF0yg813iTnHUp8NbKp+Ka9b89TOajZAYu5YnXABK6vvM7ATHkD/FnCnD0tyFs y6bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="o0PM/OR3"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m187sor2888099ybm.167.2018.12.14.12.46.54 for (Google Transport Security); Fri, 14 Dec 2018 12:46:54 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a25:c54f:: with SMTP id v76mr4561841ybe.243.1544820413460; Fri, 14 Dec 2018 12:46:53 -0800 (PST) Received: from jagan-XPS-13-9350.homenet.telecomitalia.it (host211-95-static.0-79-b.business.telecomitalia.it. [79.0.95.211]) by smtp.gmail.com with ESMTPSA id f10sm3754614ywb.26.2018.12.14.12.46.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 12:46:52 -0800 (PST) From: Jagan Teki To: Thierry Reding , David Airlie , Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v6 2/2] drm/panel: Add Sitronix ST7701 panel driver Date: Sat, 15 Dec 2018 02:16:40 +0530 Message-Id: <20181214204640.9789-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181214204640.9789-1-jagan@amarulasolutions.com> References: <20181214204640.9789-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="o0PM/OR3"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ST7701 designed for small and medium sizes of TFT LCD display, is capable of supporting up to 480RGBX864 in resolution. It provides several system interfaces like MIPI/RGB/SPI. Currently added support for Techstar TS8550B which is ST7701 based 480x854, 2-lane MIPI DSI LCD panel. Driver now registering mipi_dsi device, but indeed it can extendable for RGB if any requirement trigger in future. Signed-off-by: Jagan Teki --- Changes for v6: - use sleep delay value as per datasheet - add panel_sleep_delay variable for panel specific delay - use command sequnce display on and off instead panel functions - add proper comments on the delays - remove delays from command switch - move mode type on struct display mode - drop refresh rate value, let drm compute Changes for v5: - found the chip from vendor, so added new panel driver - here is v4: https://patchwork.kernel.org/patch/10680335/ MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-sitronix-st7701.c | 427 ++++++++++++++++++ 4 files changed, 444 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-sitronix-st7701.c diff --git a/MAINTAINERS b/MAINTAINERS index 3f6db876be1f..d2928a4d2847 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4831,6 +4831,12 @@ S: Orphan / Obsolete F: drivers/gpu/drm/sis/ F: include/uapi/drm/sis_drm.h +DRM DRIVER FOR SITRONIX ST7701 PANELS +M: Jagan Teki +S: Maintained +F: drivers/gpu/drm/panel/panel-sitronix-st7701.c +F: Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt + DRM DRIVER FOR SITRONIX ST7586 PANELS M: David Lechner S: Maintained diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 3f3537719beb..d93b2ba709bc 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -196,6 +196,16 @@ config DRM_PANEL_SHARP_LS043T1LE01 Say Y here if you want to enable support for Sharp LS043T1LE01 qHD (540x960) DSI panel as found on the Qualcomm APQ8074 Dragonboard +config DRM_PANEL_SITRONIX_ST7701 + tristate "Sitronix ST7701 panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the Sitronix + ST7701 controller for 480X864 LCD panels with MIPI/RGB/SPI + system interfaces. + config DRM_PANEL_SITRONIX_ST7789V tristate "Sitronix ST7789V panel" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 4396658a7996..6a9b4cec1891 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -20,5 +20,6 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o +obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/panel/panel-sitronix-st7701.c new file mode 100644 index 000000000000..8638a5463cb6 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c @@ -0,0 +1,427 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019, Amarula Solutions. + * Author: Jagan Teki + */ + +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +#include