From patchwork Tue May 7 13:07:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 352 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F1C4C3F066 for ; Tue, 7 May 2019 15:07:31 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id 33sf10250787pgv.17 for ; Tue, 07 May 2019 06:07:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557234450; cv=pass; d=google.com; s=arc-20160816; b=p4rig2fvVeFlHgC36s1BuehpD+ZHf6/5kxBcJ5ZQJW82pINwEwJ254bZRLAxUQGvWh ijCJ2wpSLV9E0Erb1n53HmXrWyNGjRqwbc8CFOqLdh7kVwvAb2O0lzd+MmEZUkJMPzka H5ZZQ2Yzg6P20nyXICN7UJ5OFnihvMapahARUrHVnb5uKA5c/9uZrX2wbwi9PWGOrXFj wAicR5EyQaBzHTdDWv32CI19RbbVez12XUUdVH3yzfLbry9hQtb8Srjsv2KIXZ+2/tRW db3+mtu7MCn15TG1m4uq6vDm9nNNkq8avpiS8YFvKjCx1qeBoyGwhI9FlGkFLTTWfUxt 29qA== 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:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=Xxg0VC5K1nT7cLWKtgRIvhPD/p+2rtsAhYMcCU0IS1I=; b=No/PM5v7SWZcnEEQcoidEodl0GgokGaVzfLzKoQmYdVAvpXduUHz2tHMIlioivloCy jyKYZBEPPt00VJuoJzXjTKfYYQmT8+j/HWjX6agD2CSiE1Ak8Pw6pa8WMBNhdqvYFIi5 OmJ9HsEDbiyas+qPaIOsRLMxIBcqvvvXKSsl1oSZfW4Uutdze7KGDvv27YAw9vPtSffG XSwYi73ifjLi86B34rSmurEfEvsS2BeUSzq4Lc5rQiknR1e5V2BMJvOggNPxjyAdVn44 C4xX2i1M97iw/ZEh7tZ234a6yJsxnTc3swRUJeFZ+d/aVlReEdqltgPzdZfbS/l5/iSS iL/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jm+TvJfN; 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Xxg0VC5K1nT7cLWKtgRIvhPD/p+2rtsAhYMcCU0IS1I=; b=VJq9miK4HPZXBnWrIzAqMfskiFxBDZ+OtzDIjBZNDMx1OF0AU+5Bu6C5aEKNrbEmhe 0QhQ7YAzzMxZK8ze3QYEvFJoqsAdR/WViQbQRzltwq7bMeSOxT1IiFWw27Hm2HlOh65s JNFcz7vaKi9Cn/T9MqfF1+cPPU4oQiaaMZaYE= 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 :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=Xxg0VC5K1nT7cLWKtgRIvhPD/p+2rtsAhYMcCU0IS1I=; b=ItJj2HveTXsa30z+P+vrLwU7yighsnULxbQBIo77FVWe87R0nTFIkwskE+6/808gyH Usi06heOp1d+kyyqLiT6BPBiGXzpgVYK1urx8l7mKd8Bn8+aegYU8yH5tL7otR+DL6FU 0AKq5G1OY/sITOZjo0M7srs4ESaIDYFnC2xDGzcdox6QatUPqd/NrMmK6bz53n0Ln7CO WDoC8jg6qKbFCzhzRR+yGaDhNi2XJOcWoJMpVfgrltkt9wvwyoktwN0bd9Kv26ELrJ18 JTDrUODMoDBgcXkbbaagDwc0ZGdVgLlD5goChcBnN/98RxZZuyRhaDEjuly1Fcd2poVB uvbA== X-Gm-Message-State: APjAAAUQc/SEUsnB+56ubAQskjEWOazlRvINP+uS/l9VPE1TNt+OsO7j 4Xcthd6yuLAWHQtTobjAnkeYQZ6t X-Google-Smtp-Source: APXvYqxLOzOkaBY2n9/FDpmc8F/KVrQv0gpvVHZ2AkymTzpGoc6037piE9LtC0mGvIpUJewlO+Ueow== X-Received: by 2002:a63:fb56:: with SMTP id w22mr38503092pgj.354.1557234449925; Tue, 07 May 2019 06:07:29 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:36cc:: with SMTP id d195ls1525404pga.6.gmail; Tue, 07 May 2019 06:07:29 -0700 (PDT) X-Received: by 2002:aa7:9ac4:: with SMTP id x4mr15148679pfp.43.1557234449521; Tue, 07 May 2019 06:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557234449; cv=none; d=google.com; s=arc-20160816; b=VdXGTvcmBEY1pD8KDwQrD7Hs0psMaKRFs913i/RDCQwIFj6N4w/FWu3HuBoSHku+rY TROhGxwIF30CTOmL/Dbdcx08qt296YTZjwANWC2oC8Qz3146qUjcIYHLKTsIdwrlhOa+ T9kNdEgZ6OitME99w+zE68q442/3lVm9YKItTVKUE7YVxBSCuAdpg2DSoEDv0HYg8fFR xg+vR0Tl1z2iYA3NPfJWmUSgaGBU54YAz1X0gMq8G8NEPLawfaHXi4rIJ9dEA+LQ3Opl TzIqeU9agKSsz5EincjI+l+evtvnHfdpwMs3mRbeXQimvM7ATxixWI0HOnRjgvyBj69Z RxZA== 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=zVEShq2r+HH1dqUKjsY/tIvQnR4fC4lx62sAnv2cszQ=; b=mrZaOn68LO0cKnaftYv0Caga074GCSweB6Zya4gdTPLgrWQXetSsvCvoa0CInh0O7u pjpgfVSf9EFraiZBVhGYlba1x3j5nBFatRHEcdNA21sw2sELGvibbPr4aXFWJZCvvWum Gv1No4yUv1EYg09seBYfwUadoOxfxhs8oLVuVbddz5ve5FXoYnxIWEK48Ts2QQSLD1tr pqs4GIGq5A2tsvuThYUFOSwnR4kYW2FnYFa2AA90tGoxeaKBWIpx9e4e6ghuMylaQh0V H0HJTHp9KH5n5qIj8YMapRyBzBzR3vZhctnKIdk2uCDrGXytCCruJblk052y0BOX2RjN DSfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jm+TvJfN; 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 d2sor4132647pln.38.2019.05.07.06.07.29 for (Google Transport Security); Tue, 07 May 2019 06:07:29 -0700 (PDT) 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:a17:902:2a:: with SMTP id 39mr39639547pla.64.1557234449180; Tue, 07 May 2019 06:07:29 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:3682:cdb6:452:ecda:bdfa:452e]) by smtp.gmail.com with ESMTPSA id w190sm21889823pfb.101.2019.05.07.06.07.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:07:28 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: [PATCH v2 1/3] dt-bindings: display: Document FriendlyELEC HD702E LCD panel Date: Tue, 7 May 2019 18:37:06 +0530 Message-Id: <20190507130708.11255-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=jm+TvJfN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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: , HD702E lcd is FriendlyELEC developed eDP LCD panel with 800x1280 resolution. It has built in Goodix, GT9271 captive touchscreen with backlight adjustable via PWM. Add dt-bindings documentation for it. Cc: Thierry Reding Cc: Sam Ravnborg Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Reviewed-by: Rob Herring Signed-off-by: Jagan Teki --- Changes for v2: - separate binding patch from driver - Add simple-panel compatible as fallback - Add text info about simple-panel bindings .../display/panel/friendlyarm,hd702e.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt diff --git a/Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt b/Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt new file mode 100644 index 000000000000..6c9156fc3478 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt @@ -0,0 +1,32 @@ +FriendlyELEC HD702E 800x1280 LCD panel + +HD702E lcd is FriendlyELEC developed eDP LCD panel with 800x1280 +resolution. It has built in Goodix, GT9271 captive touchscreen +with backlight adjustable via PWM. + +Required properties: +- compatible: should be "friendlyarm,hd702e" +- power-supply: regulator to provide the supply voltage + +Optional properties: +- backlight: phandle of the backlight device attached to the panel + +Optional nodes: +- Video port for LCD panel input. + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. + +Example: + + panel { + compatible ="friendlyarm,hd702e", "simple-panel"; + backlight = <&backlight>; + power-supply = <&vcc3v3_sys>; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; From patchwork Tue May 7 13:07:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 353 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D3A673F066 for ; Tue, 7 May 2019 15:07:36 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id d21sf10241009pfr.3 for ; Tue, 07 May 2019 06:07:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557234455; cv=pass; d=google.com; s=arc-20160816; b=PAZ8FfHE0Kvwu5KHdiwkKqAFRwUYgDV6Me3y/mAmJKH0k2f1z45Ow1XICH/cqmtxB6 /ypvBpdw8RTrIMoUqvVjn+wMpMjF+Pup9fh9XC9sn0PgG2DIrmuQXN6vbfnXpNQsYQPK QYjpMycPkUPUSw+LVGQ+X9FYFUSKqXyNXqGjTDs0lTp4v7GXQg4cK5MMSA67snTOwkb0 /vT1Ob2Zx7DJT+b7b3JuLwSDkhcP6Z7FIuLEFC2bCHqBb71aM+AbzeXKBviXNjwovj5K Oy8q1ngVwfXsyrKmr4x/71eB63zcOQcyrdIXYSEqu/kN3j9gfaYPcAEDIN/wKz34Ojzo hEsw== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=oWkTj1Cgr1o0p0p161/Qxpigy4WDK/XmMrLGVm0IDxc=; b=tYEDiY00cDF67LI15BV5+CRD7WxBDlQ8EYdPqJO84UuG4sWmi7Jyyof5t1lTLE2ow4 zbHKQVzwG44BGgw8U6UB0xUwQMgUroVbTK5GADEYc+RvCl9tuzdOL+EuT1YXg5rKQIwd GtibebwICUIUqkZxu8cw4FWWz2nQk50dFitBGbjNfGBPvT7j5rRabA9HAPFKzsajiH4F 9VjUMJQ18SRKRbyYUq834Wk6yppvgjboMT2ATZDeeA/NsseYZs5wpa64IFSpFj4EnCjS DQbnHnEYjH+HOk9OVXhj86ph/LMQrESoYm4E9afJh5qdFym3WYUvYMZIRleAAMI0nX8U 9MxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=edyEPa62; 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=oWkTj1Cgr1o0p0p161/Qxpigy4WDK/XmMrLGVm0IDxc=; b=djTjE5mWEMqdHox4D2roVUQmJ+VoeCkiw+sW7cJbqbt+CUGzGx1EQ3QmnelSbAQx8C Sm1MJaMczI9LIkNJHJFSZAjXLiTEby9WOzx7vd5fFShlzo9Z3tirdv1DF7o90r18L4aI gzRP94h+vUxVhLlqtQ/QNAuw+0PCIq+w/lLGY= 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: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=oWkTj1Cgr1o0p0p161/Qxpigy4WDK/XmMrLGVm0IDxc=; b=EqatA8A04jT9cKWHXWMdj2LGUQx3TxO2A/SwUyN5u9ya3F/CWJaoCHKqWbRKwxNPxz mIniP23FsagSvZetdgayGTLhATJSEz8zOMHiJHHIoi6LqeX0YFzhMRcYoXsDIpILjKnh F1REaEEUNrKqhI0lrbpkoZ2BpK3YgDkP4TSbSLGp/Oix7xqWvohsoYE9w9mJ4+cSk4MA l+d4e/qtmUdW5G+sUSviasuo+ijjd95fSi+TjtN6I1II0fK0AU717yCsi+xLwLfErLeX EW/y5kWt0UNBf0d3CYA5nhyiJIu+ln7B8V3KGa5Hnd5p6wMW8p2Y5t/LsXdmCs2KdxkO I3JA== X-Gm-Message-State: APjAAAXgS1qnYFxaJ8Ex+QG4cnP2Z9A7L7nKE/nIW+2jY6NZ3epA84vZ ZWoCVj20ntlYBbfctL/no53YHRDE X-Google-Smtp-Source: APXvYqynRUUq+WeGuuP6X4Vi6GWfn+OXuFuHF/Wo8UUUnbUYVLHc9RP7vgUlsD8wqGYb/cYXTIL1EQ== X-Received: by 2002:a62:6b44:: with SMTP id g65mr41203548pfc.27.1557234455489; Tue, 07 May 2019 06:07:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:64cd:: with SMTP id t13ls3916727pgv.16.gmail; Tue, 07 May 2019 06:07:35 -0700 (PDT) X-Received: by 2002:a63:ff04:: with SMTP id k4mr39325313pgi.117.1557234455013; Tue, 07 May 2019 06:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557234455; cv=none; d=google.com; s=arc-20160816; b=wDJkiELVC5JZLgnk4Bo8Asj6XRkzGlRL5j6tKDMG5N/CQG0CjWHMZrcj5z+BkJI7N3 RyCeW9nFPSD58FecNftP6hz9miFe3rAJm+wgwfwny0eIteZXne+PnJkWocHfHaz8NpjF QpnQQ4fqKfYGZEyqzvJU/w63+nKzi+4KOmyANf5fVDivKbHrh04SeFyW/Ckb/KPQRSv9 ZJ6hOBg17F44uqSWN2GqhqsM65jtTYJCRSXmo4DozO7Fck1NjDpxWs+W+3lMeGa89IXH mc97U02qEhagXMj3EyV/BKDRK0OT8lZoWZa6F8QHTwI5yNhpLJieZtx7uTtNhPutAbyy CGCQ== 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=oYIcefqUbtjO6efG05qDKL3HAKUE9dWz26q5t6PWQVk=; b=TfYhTs0x3ZXtJudeHodQKwcOmRfWIiY2xFeJx4SyY8cCsTBm9VL1rAWAjSreERNu5v 7b39Ug3qOnCgPJPJ1Ie9WpN9Th15y+kC1GABgBx8hFcjagDdDtO0Yvi9y4WoGrT46IpS y0Q5C7Fs3Ne79JCc29o0U+rKOQjnOp/Ertn3K7TM2ZTdNnNYzn5lDmDrkC78zdQbLib5 YUf0fYkSLCWNIIFxH9LfWZJZbD6aqkiYZhVp6KyKumDqcEJPDGatRK+P6Ch7McvXtveF 52eHuPhs23QKVKiVYXrJT3FfV2luMIyRoZFqhnF7N6I2V5XXSc5lPAePQmHAY7dNzWir NBZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=edyEPa62; 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 s87sor15397464pfa.62.2019.05.07.06.07.34 for (Google Transport Security); Tue, 07 May 2019 06:07:34 -0700 (PDT) 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:a63:fb56:: with SMTP id w22mr38503539pgj.354.1557234454717; Tue, 07 May 2019 06:07:34 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:3682:cdb6:452:ecda:bdfa:452e]) by smtp.gmail.com with ESMTPSA id w190sm21889823pfb.101.2019.05.07.06.07.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:07:33 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: [PATCH v2 2/3] drm/panel: simple: Add FriendlyELEC HD702E 800x1280 LCD panel Date: Tue, 7 May 2019 18:37:07 +0530 Message-Id: <20190507130708.11255-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190507130708.11255-1-jagan@amarulasolutions.com> References: <20190507130708.11255-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=edyEPa62; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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: , HD702E lcd is FriendlyELEC developed eDP LCD panel with 800x1280 resolution. It has built in Goodix, GT9271 captive touchscreen with backlight adjustable via PWM. Add support for it. Cc: Thierry Reding Cc: Sam Ravnborg Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Reviewed-by: Rob Herring Signed-off-by: Jagan Teki --- Changes for v2: - separate it from binding patch - sort the match id and compatible drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9e8218f6a3f2..93274e270663 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1184,6 +1184,29 @@ static const struct panel_desc foxlink_fl500wvr00_a0t = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode friendlyarm_hd702e_mode = { + .clock = 67185, + .hdisplay = 800, + .hsync_start = 800 + 20, + .hsync_end = 800 + 20 + 24, + .htotal = 800 + 20 + 24 + 20, + .vdisplay = 1280, + .vsync_start = 1280 + 4, + .vsync_end = 1280 + 4 + 8, + .vtotal = 1280 + 4 + 8 + 4, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc friendlyarm_hd702e = { + .modes = &friendlyarm_hd702e_mode, + .num_modes = 1, + .size = { + .width = 94, + .height = 151, + }, +}; + static const struct drm_display_mode giantplus_gpg482739qs5_mode = { .clock = 9000, .hdisplay = 480, @@ -2637,6 +2660,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "foxlink,fl500wvr00-a0t", .data = &foxlink_fl500wvr00_a0t, + }, { + .compatible = "friendlyarm,hd702e", + .data = &friendlyarm_hd702e, }, { .compatible = "giantplus,gpg482739qs5", .data = &giantplus_gpg482739qs5 From patchwork Tue May 7 13:07:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 354 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CCDE43F066 for ; Tue, 7 May 2019 15:07:41 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id e128sf10181621pfc.22 for ; Tue, 07 May 2019 06:07:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557234460; cv=pass; d=google.com; s=arc-20160816; b=PgW/nmKawkZCAVj1K3EWQ/pl9YKZbsK4DqiBHf0w7jSHe73SEyej5s4WUHd4AzJRdJ uVHAxV0P2PhmvuNEreELtsD5zR88Cu5Fk2YAYwlgyt+PmpVbboGZDnPQSNcDtpqOeCs7 W4PNwebs6+3HKrLSnDKDlKpy0P6jMDrQHB0C4V8WhQGsnOk+g/Q6iWRJor1iZ8nIlrOf 8A5pj7uyx/QsgpBBBkTy6VssobVDmFBzc1LMLsKefHBOlCPNSWeSgm1WxjUuCAGD+gUX VYa0kFSZKSUr0oMd2RmaGCIr9J907jlmG01LemcevDzBpBR016/oaiRb0YuBogX0TlBS 9ICg== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=byD55n41SsK5K0SLogtKA/0kkD6YSuKWjKS0mu0E4qM=; b=bzPMyT8BWZX6WHEsHbIUTs5vOuO9rprepEo1+a786exkDm3K7OLiLZSiY5RFygFeJj imOv+asw/Il2L37tHKfDnqYK1V8gDL2wuchcnH2FKxIoS8lJZv7YPduL/O87AscZaFrL CwNe0oEzQn6bTV9Nbi5VtVkrg5sa5oHibdMQPzu9S7tk8/qcY3TYifhMDMbVgOvqwbFu OoOvfoKrOkw3BcXiwX9Z9SxgDfsgmxfO+6SEM1ycE8Wi7dZHy6i3h6u084J2r47/EVUc 2aD3oqs9/V6WCtUf9gL7GUmJoWZMPvGxLQgXoWuUATP1DM+TTMWuv/wFAXo732j+WV6T MZsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="MQeNgF/z"; 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=byD55n41SsK5K0SLogtKA/0kkD6YSuKWjKS0mu0E4qM=; b=e6Ras/odS6cfto5LeDGybmWdDZYrQU7IJtH/4L1Q92YOL+9LBLzsp2BGMc2yny1lv2 LP7Na57HPPAoG16/lJ/J07F8gadhcrXUSRfU+/5bYfXgQ51UD2HzWfEuE3rLD51Tg7g1 D5w3QPhYcVvD4ey7c/aUflRWXJo0WmxeokeN4= 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: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=byD55n41SsK5K0SLogtKA/0kkD6YSuKWjKS0mu0E4qM=; b=Tp5RfBwsiVhMu723T6sg4aEIwFI/ljAACfaNPfPFVND2F5kfOtCGxIMC5B7VtMRrNH GqR4tqlPcRt9KHTcN2WnXdgPQobVnkBxyVQvCdPDW2rWZ/z32RPHdf2+hx4ncfGQECVS 2hz995DoOTQIR++fwb8n+neqK7hOkumBeLI370RUbJEkVhtHRnSi+vS3hHTVATptsotW jX4euwlb2rqCtkFD0b/fI5av2rJlLjW1O+PAFN3txvddNhWj/PRf+6YOTzsCOTf/TnRf bZfGHzsZVhoiplZi5a7x06Nzlh7iSwzCI4tF5QyVY7a5FBdJSO44VyPAJ36hoIEv9ID/ J22A== X-Gm-Message-State: APjAAAWNtwHS5rkeqi3dZ7+U8oRwJDsOWWDDTDK3r5PMCVa/duotl4dL XQRcNxPHJ9mJ3XE2BRchgrcMfOTz X-Google-Smtp-Source: APXvYqw9ifnUFUzn41E0BMRfF5MuoTnBbQTidljPhg/U4zOJ1mu1hU0ufMgqnz95CsTaYm080b76cA== X-Received: by 2002:a17:902:fa2:: with SMTP id 31mr40816769plz.128.1557234460627; Tue, 07 May 2019 06:07:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:690a:: with SMTP id e10ls4474521pfc.12.gmail; Tue, 07 May 2019 06:07:40 -0700 (PDT) X-Received: by 2002:a62:ed10:: with SMTP id u16mr40654205pfh.187.1557234460231; Tue, 07 May 2019 06:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557234460; cv=none; d=google.com; s=arc-20160816; b=xSvyU/O9MqE1o2IROFbwJ0Fm8oSEmHIR2BkJ3sV8fqTrV9mqLtEzCBQHXkGEUFobu7 zKUxLpkzCZq3FmgKapZQ7/25sxeUB89XPdOHcQ+vJZF20h2+8geN0IvUeN04QC5oTV6k 3VIy12w5kSzfC3cZAElhUTCebFRC2WdUkkwYNQ17uNCHDQX7JRmhhvD/NHCJ8ON5tPLj w/I5Apv2ERb/aia5Q5qqAxqdR14GHRYOR/UFLMMVkLz4khvkxmgSkvWGvA2eaZOaGAHz iYPZr/sWz96hi9zbleBp9g2b1wOYPqQDtmSPmoe9RrdXRKyitQR7hIvKb06WYYnUxK9M J03g== 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=rmbbR+nEPRU8PAUrqs/Xp1Cybc4IWp6SjLWLlkBHpm0=; b=xLgCZb5JaYFYTrTrW6U7Q7XKmqrdiuVgJOuFGsI3II0IMG2t5tIgiCPv0kutVfkDQO o1SOikC1UyVqopyyf+50lALtdl80faFLCClPM83gQ82+krsq1G1iZEohpAbr0EFXV2UY d3oM2GvNhMzW+0AqfCPGDdWGsdrTlKgQCebmKdeFWOZYwgIymjozChcD9qbLuk/YJCON SJICikLOSI8nFDzpQWw4Yiqia/Nt6W0R1AzBdqzexGu9XNrsY1WcbUALWlWW6alJXTEi a6ErqaEZL5jl6NNIZZpk2p2tzIJwPafyorODv0QuUnQaEtFnbyzh+mWOEmTaG52abgBW Cbfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="MQeNgF/z"; 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 l26sor14330284pfe.63.2019.05.07.06.07.40 for (Google Transport Security); Tue, 07 May 2019 06:07:40 -0700 (PDT) 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:aa7:92c4:: with SMTP id k4mr42376765pfa.183.1557234459930; Tue, 07 May 2019 06:07:39 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:3682:cdb6:452:ecda:bdfa:452e]) by smtp.gmail.com with ESMTPSA id w190sm21889823pfb.101.2019.05.07.06.07.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:07:39 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: [DO NOT MERGE] [PATCH v2 3/3] arm64: rockchip: rk3399: nanopc-t4: Enable FriendlyELEC HD702E eDP panel Date: Tue, 7 May 2019 18:37:08 +0530 Message-Id: <20190507130708.11255-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190507130708.11255-1-jagan@amarulasolutions.com> References: <20190507130708.11255-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="MQeNgF/z"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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: , FriendlyELEC HD702E is one of optional LCD panel for NanoPC T4 eDP interface. It features 800x1280 resolutions, with built in GT9271 captive touchscreen and adjustable backlight via PWM. eDP panel connections are: - VCC3V3_SYS: 3.3V panel power supply - GPIO4_C2: PWM0_BL pin - GPIO4_D5_LCD_BL_EN: Backlight enable pin - VCC12V0_SYS: 12V backlight power supply - Touchscreen connected via I2C4 - GPIO1_C4_TP_INT: touchscreen interrupt pin - GPIO1_B5_TP_RST: touchscreen reset pin Signed-off-by: Jagan Teki --- Changes for v2: - use force-hpd and delete-property for edp - use generic backlight brightness - add simple-panel fallback compatible .../boot/dts/rockchip/rk3399-nanopc-t4.dts | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts index 931c3dbf1b7d..4cacd09658dc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts @@ -46,6 +46,14 @@ }; }; + backlight: backlight { + compatible = "pwm-backlight"; + enable-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>; /* GPIO4_D5_LCD_BL_EN */ + pwms = <&pwm0 0 25000 0>; + power-supply = <&vcc12v0_sys>; + status = "okay"; + }; + ir-receiver { compatible = "gpio-ir-receiver"; gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; @@ -64,6 +72,18 @@ fan-supply = <&vcc12v0_sys>; pwms = <&pwm1 0 50000 0>; }; + + panel { + compatible ="friendlyarm,hd702e", "simple-panel"; + backlight = <&backlight>; + power-supply = <&vcc3v3_sys>; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; }; &cpu_thermal { @@ -94,6 +114,25 @@ }; }; +&edp { + status = "okay"; + force-hpd; + /delete-property/ pinctrl-0; + + ports { + edp_out: port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + edp_out_panel: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_in_edp>; + }; + }; + }; +}; + &gpu_thermal { trips { gpu_warm: gpu_warm { @@ -130,6 +169,17 @@ }; }; +&i2c4 { + touchscreen@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + interrupt-parent = <&gpio1>; + interrupts = ; + irq-gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>; /* GPIO1_C4_TP_INT */ + reset-gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>; /* GPIO1_B5_TP_RST */ + }; +}; + &sdhci { mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;