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: 10932925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 33078112C for ; Tue, 7 May 2019 13:07:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23396285A9 for ; Tue, 7 May 2019 13:07:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 149D32875C; Tue, 7 May 2019 13:07:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E54D7285A9 for ; Tue, 7 May 2019 13:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KPXb1Pd6VsDsnQjgmuUkkqXtVfKP8aME7d7bu1GbfFI=; b=MwSJYoKMBTCiBh 1xwOnUhyeZZ5eB7jtgQgpYeE1v2TFPXHjW0deVFODdRN9CyX1pVZ5ZPFX5c+JdkAfFi0aY4HTMYdW dJxpJkbJKz0RoSCLOrXP+uC+8dAduEXjPlinsvrj0z65hiEaxBn7/SJFsxqQQK2CXvl/tHUvC6kxf +35bO0/VSbGKqTJPt/FbprpcFrhd3Lw8Pyh1ANRCMA4Kfz+t4wJcSAsXg50z/jJDd10ZvEY0GQCbE Ex20ogNiq8hfriyg1+l4cHnVZ88DrXlNGF07BHfX6loU5LvUCHRRXcxEcOIc1PXaE01nE/itnLLUc g3joizSEepBXRI2tLVFg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzol-0000Zd-DH; Tue, 07 May 2019 13:07:35 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzog-0000YP-AB for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2019 13:07:33 +0000 Received: by mail-pl1-x643.google.com with SMTP id p15so981451pll.4 for ; Tue, 07 May 2019 06:07:29 -0700 (PDT) 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; bh=zVEShq2r+HH1dqUKjsY/tIvQnR4fC4lx62sAnv2cszQ=; b=jm+TvJfNFt6JoZDpIcsdQYCpeFYqOblkOGI08ywsGy57x+8/bmkSF4Jiva803NbPKE s7m5WLd6gfL1+tbGQjSyYmf3uBgqOudNS4xmd/KNNKzha6oI95GWuIDU4syC1mQ+66W8 lrUJaarBqXPhwdumssK7oXfiCQKiWLW3S0Kas= 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; bh=zVEShq2r+HH1dqUKjsY/tIvQnR4fC4lx62sAnv2cszQ=; b=kWs8aOdO3LL2mqPyoUhPBK8N2C8QhmXx5DqI7PwuSEQnrpXwvPiH6qD7F2fwp2WmpR O2ejp7Y9g0PPFkoKz72PyejsBoE1Q7B8Ecpla6G05Y6+Rrpkg0f9RFHuZAuZwDLbT9cE xEGB2IK6FjLyhPrOOyWWitI73j3bBPyHkJ2C0+1Oxu2QX4D2Z0z1J+nt3d3AMsREE7dR /Z9hRdi/If+cF2QlzF4UHsLdIY/iz2jigDuet39R7DpFRjXTVP9uLQPtnW4dUzLQfVE5 D4q/RfFJXgkZvfEP0K1Gyq3hkShbmnVQ8LC/oLP7zGIFxuG7RDTl0XJl5cNNjDcgeIbT piIA== X-Gm-Message-State: APjAAAU2K64il/DlanNun2VsuZD0samkjTjmyG1bXlxm9O6k4M7cZnn4 NjwzY1CW5AwXwigHQEsYik4wcQ== X-Google-Smtp-Source: APXvYqxTNLStKgWqhFuYnzLAEpQKZaTXrhsWJy7MmuW5PcblTQp6f4JovNxg5jyNfUeBBZ2VP2/bHQ== 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190507_060730_359302_582BAFF3 X-CRM114-Status: GOOD ( 12.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, David Airlie , Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Thierry Reding , Jagan Teki , Daniel Vetter , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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: 10932933 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 88370912 for ; Tue, 7 May 2019 13:07:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74F63285A9 for ; Tue, 7 May 2019 13:07:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6562E2875C; Tue, 7 May 2019 13:07:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 006FA285A9 for ; Tue, 7 May 2019 13:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oYzYNaA5BjVQzQVkD6DIWCL8JL1ArbhIn9Q7vRbfOKg=; b=BQNHDkPX987ZiJ pnYXUFZ6RJQgSCr/lDBqwpkKmUyp9FryYo+1KhHCSyoMO8zrOv5A3Fa/eqWdT5086c08bKZVC/QAm SGOHM0xrXE0xGUVZ27gONJw/AHozK6+7pLDxXU18XLOhsJjhkG3+oGfGdcg3V5Sp+jVdB0MMYcSOu RekOejszhz1Mq018lcK3cpZeHhy+vfk+JwG2tCHKYCF/Sw7q7LHsml/f8+Zg9v04iXQhNysDjWX8N kC8GSAYR8Av8cvZrZCF5ZADzMoh/Ox9/AyW/tQF0moAaiz76stqol94rGuUuHX15Hen93JlvwwQQF UVnl/QsGA9hPNfDEgn8A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzou-0000kE-DN; Tue, 07 May 2019 13:07:44 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzol-0000Zc-Sj for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2019 13:07:39 +0000 Received: by mail-pf1-x443.google.com with SMTP id g3so8647846pfi.4 for ; Tue, 07 May 2019 06:07:35 -0700 (PDT) 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; bh=oYIcefqUbtjO6efG05qDKL3HAKUE9dWz26q5t6PWQVk=; b=edyEPa62/tqOK5yYOgIKFbrNm5HJFRdrthDyG8k085PwYA7rMARCaKhtyT0spUv1lZ z80r7mktww84mBSrnXqBVlE03aT9WMA4HAZ4mqg/i8fZ1NPa02rZ+dxElXpGI3svX4yK Ag+W8uF1vfH5vDlvlyHmywP0gZ4a0qKxq5iBM= 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; bh=oYIcefqUbtjO6efG05qDKL3HAKUE9dWz26q5t6PWQVk=; b=A7Nb693EDu4djLbXxote+GcNfG+mIIy42zdgiB6G8n/dCo23J1oW3usc4apKYFDBJL RtpcZg85D1QqKxFYWvg/FqdIToG3kdUXqRHOk8G+Jf6huhJh/b4vFWGEcLO/D6egGVX3 btbGajDbMXPLgfvVGVomyhw1q0nmZfQrvWkaL+guA2nELDUGvaq+dH24uGsde+eO8R0h fqaZ3q7MsfrcErGQtNoxLSGg4rjBp/tRD++WNm8ALUFCJ+gccxyIsqm9ripqhQuLS7w1 oJ2QiiIyiu/KciZSFTAyopS2XF7zxko5wSMUtoH66X+VfvU8voY17vmNHVOJnIT0uE8J rL2w== X-Gm-Message-State: APjAAAVF4Wp2MHPmHPc/JIwmgqrRNgT4Jy2f2t2TthEVJdalSZMH7Ym2 tm5dHTOISo3t9JgqVEoDnsCkhQ== X-Google-Smtp-Source: APXvYqy2CKkQ9wX0prpKV/pt24cFsadXZXvMcaev7EfdOiJeDL66Kfub6iLEmQkBCbHk4BdoBKJpNg== 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190507_060736_142091_4FA38BEC X-CRM114-Status: GOOD ( 12.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, David Airlie , Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Thierry Reding , Jagan Teki , Daniel Vetter , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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: 10932937 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 02289112C for ; Tue, 7 May 2019 13:08:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E54B0285A9 for ; Tue, 7 May 2019 13:08:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D97322875C; Tue, 7 May 2019 13:08:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8D7F6285A9 for ; Tue, 7 May 2019 13:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pY45omYpa9UWuGsHVKJYU8qyCJqDxPlTK3pMHrZAOg0=; b=t4DQBr23a0j8gt F+bAanphBjDMLOuqfn5YHjV7BqiSWWAb2OmNxj+yaw7bZn3v2Hlm0p4sdnfbYZL34QagV1vgLrVW7 rQqp2lc7dxsc6qUUKIkOMFANmCzmVJcy/LHkTy1VnxeHcg+Ms1iut+GFAORsb2WPDpjcpAfIcvRux Ppvn3SIzxLj0enOZDOUH/XiTsL3j+lMzPPPDRGg1K1WJPST6DhOQnvoTr6a2SOAEGTKGBEzxxM5c6 K08UJE/Zi10YabDq3J9JRLSZK4zD99hl0w8KpqphzP1+VYpUlhCZpyjtFk4zoJB6sFn1hvpluSXHx xFdr67ILSEfRZoALPNfQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzp7-00012p-55; Tue, 07 May 2019 13:07:57 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzoq-0000fv-R8 for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2019 13:07:45 +0000 Received: by mail-pf1-x441.google.com with SMTP id g3so8647976pfi.4 for ; Tue, 07 May 2019 06:07:40 -0700 (PDT) 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; bh=rmbbR+nEPRU8PAUrqs/Xp1Cybc4IWp6SjLWLlkBHpm0=; b=MQeNgF/ztfyfJPkOLp8v44evWaHK6oQNiqkbYk6h5b2kjyPiu6a9LJ5OzAeVCfV1bv eXov666QPajT8xgYjzaUgoDgyOvsb27oueOSiVnHWAqcG9Q6V47EeBKCQryKWP53/JtH G8SChDw3Fr+NIFF9Q/ph7KdV8veIMSpgTWz04= 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; bh=rmbbR+nEPRU8PAUrqs/Xp1Cybc4IWp6SjLWLlkBHpm0=; b=BA3lPovU5oywIhjOaLwj6ZjBYnbU6xMnImie3FeW4/0Vht0J/WZ58jUgepvIWhTFNY v2qQBb5cn9NAjNm9SIeWhuxub2JzsdULWeG3kagRB9hwDH8/xJpUbIfIIVup2nqua29m VwMsCtz/rAkanXdfFfpUVSNhcaTqBcuTT9kBhY7OZIf0rEY+er6Zem/Uduz4BZQeHywY cdOWs3TUnU9VO3y/l0lt7cpJpOJhOp5LozdibNDwfVuDXIaJXZd8nQ+eAGe6Sc8nNeOn YTlfwswM3dFs+iHRUtazlZHjhxpGTbVMQK9KmJb8H1hCtsjPyILbd7vUkI3C5Ljr0dRB SP+A== X-Gm-Message-State: APjAAAWhUqjwpryCF5eVQTNY2/9ZnAz0oVPN5O3EhttyAXZIzlI/0JlH YU8JkwQDbxdlm6HEaYsCsKK7NQ== X-Google-Smtp-Source: APXvYqxLeInLf88kjLthLdkTwo1/yWUp+xFEYrpTiTrZa+Gcgm+ciJnRApUuxQzvX/3b2mjsA5Dy5Q== 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190507_060741_066817_7960454B X-CRM114-Status: GOOD ( 10.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, David Airlie , Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Thierry Reding , Jagan Teki , Daniel Vetter , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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;