From patchwork Mon Jul 8 16:57:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeffrey Hugo X-Patchwork-Id: 11036433 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 774431395 for ; Tue, 9 Jul 2019 07:03:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6800920CCF for ; Tue, 9 Jul 2019 07:03:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BDDB28689; Tue, 9 Jul 2019 07:03:23 +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_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 19DC520CCF for ; Tue, 9 Jul 2019 07:03:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09ED189B67; Tue, 9 Jul 2019 07:02:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8ED1789E11 for ; Mon, 8 Jul 2019 16:57:57 +0000 (UTC) Received: by mail-pg1-x541.google.com with SMTP id i18so7981985pgl.11 for ; Mon, 08 Jul 2019 09:57:57 -0700 (PDT) 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=xDwSUm2ymU/W1fSZho5QIri1l9GMHXrnnJtJgPD9q8c=; b=DjxjDTiB1rayC47d2QMul8BNp3jNR6M+rWbElttFa7htNM95inxlktiPIPlIMX6QXG 8Y/7jdQsrCQNN34OW7DCFqP941eQxDHw+eIz7HFY9fDOoTYmj63y+GutLYbTOyTJW9AH GgFCjngnf6l+kfZYvKKiDOK4h+LtCNlcOcrNF2am3TMVkrE/fFp+Cj2anN1//z3pXAmV 9F+37Wk+fQRLeq/UvNT4K0In2iu+qro/Npvqw7z9el1gatMsz5Osej9xjBm9E49svT2B rZygTvNYDy4dbJ9Qrf85hqS8gwaAAU9XJkhCE1es1cV/Va2zgRRVCUZ8JEOy/CxPkigK JVxg== X-Gm-Message-State: APjAAAX/NRVa//p8SrqvRoXGSmu8RLr1u7UFPiBODt9laidM38PSJLVd 0quE8DgNshHALO35BKmyflw= X-Google-Smtp-Source: APXvYqzSJot1VXmkklME31WkeSKMsCOKZxANzmuc2CzhjLcyvTi751cZbwfGTLg8UoLNQEdOMtdGbQ== X-Received: by 2002:a65:62ca:: with SMTP id m10mr25029485pgv.57.1562605077213; Mon, 08 Jul 2019 09:57:57 -0700 (PDT) Received: from aw-bldr-10.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id d16sm12280022pgb.4.2019.07.08.09.57.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 09:57:56 -0700 (PDT) From: Jeffrey Hugo To: robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH v2 1/2] dt-bindings: panel: Add Sharp LD-D5116Z01B Date: Mon, 8 Jul 2019 09:57:53 -0700 Message-Id: <20190708165753.46275-1-jeffrey.l.hugo@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190708165647.46224-1-jeffrey.l.hugo@gmail.com> References: <20190708165647.46224-1-jeffrey.l.hugo@gmail.com> X-Mailman-Approved-At: Tue, 09 Jul 2019 07:01:45 +0000 X-Mailman-Original-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=xDwSUm2ymU/W1fSZho5QIri1l9GMHXrnnJtJgPD9q8c=; b=cUqnE1qJhl3aN0kYxeb2SjpcgFwRj4ZP4G1SQBx2d9jsqA2OItxE1MuXGX5OceJ9rJ /i18h7EhofDQiCMmSS9BSVtNTifgQi5NTpjlwB09P9BRk49ZfAqEW/Q8QxakZdxMdy+H u2/s7QFSBF2LXOEwYXdTUZ10znesq9ATfZ/7W1EYB0nysxpT73RkiT85DuXmfDlDt78Y 4WosOgy8yX5QSD8LD5gbB5YRe/+8AoOqah8y0FHeFgN9SZDtig2WKmsQBflUW9ZADZa7 YVJNqDr2Wj9xCF2VPteY0mHl3inFSA2SNcESc9a792f2A+s+lvWnKKur6/QUixjwTQKs 2R+A== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jeffrey Hugo , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bjorn.andersson@linaro.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Sharp LD-D5116Z01B is a 12.3" eDP panel with a 1920X1280 resolution. Signed-off-by: Jeffrey Hugo Reviewed-by: Sam Ravnborg Reviewed-by: Rob Herring --- .../display/panel/sharp,ld-d5116z01b.txt | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.txt diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.txt b/Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.txt new file mode 100644 index 000000000000..fd9cf39bde77 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,ld-d5116z01b.txt @@ -0,0 +1,26 @@ +Sharp LD-D5116Z01B 12.3" WUXGA+ eDP panel + +Required properties: +- compatible: should be "sharp,ld-d5116z01b" +- power-supply: regulator to provide the VCC supply voltage (3.3 volts) + +This binding is compatible with the simple-panel binding. + +The device node can contain one 'port' child node with one child +'endpoint' node, according to the bindings defined in [1]. This +node should describe panel's video bus. + +[1]: Documentation/devicetree/bindings/media/video-interfaces.txt + +Example: + + panel: panel { + compatible = "sharp,ld-d5116z01b"; + power-supply = <&vlcd_3v3>; + + port { + panel_ep: endpoint { + remote-endpoint = <&bridge_out_ep>; + }; + }; + }; From patchwork Mon Jul 8 16:58:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeffrey Hugo X-Patchwork-Id: 11036377 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 A1C3C14E5 for ; Tue, 9 Jul 2019 07:02:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91C4E28684 for ; Tue, 9 Jul 2019 07:02:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 863AA286A2; Tue, 9 Jul 2019 07:02:04 +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_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40E782868D for ; Tue, 9 Jul 2019 07:02:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DF7D897EF; Tue, 9 Jul 2019 07:01:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6EF2689C6C for ; Mon, 8 Jul 2019 16:58:16 +0000 (UTC) Received: by mail-pl1-x643.google.com with SMTP id a93so8588224pla.7 for ; Mon, 08 Jul 2019 09:58:16 -0700 (PDT) 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=T1w86HYowDLmCMH8t5cBhr+6c2jCirc20RP6wN4si70=; b=ks/shXsmdmVM7/f+2RBmYDHdVpN8LeAD5b3TTUal7ARmltLo50zKH0iQIZnjF33uCu jwO3qGJvbf/DJjTvzGwgrX6rr8RYp3YN9IJecUNyl3t2ZrBE4b8S6c/C1AjEPQg0GeVD DM6Wn2jcbivE5NSMIvtJg9CJoS2TqQM40ZRrd0SSVLzUP94nYlattTKZBUIMChGLte8B exY6HkgDRnVAo8I0XDnKhrABfutbuWc58VnrsLQKnK3aw64sm88LKnhrrkDRG4vKnUdq YnQyDT+aKDj71C55HiW+y8FR3r9an0IpgnBNSGDlcrvCfTNu6YmtS3wzInDaoGwN9GL7 AdfQ== X-Gm-Message-State: APjAAAVsENr0R4/xxjudruBcAY5zVTPW1XJlghaWMpNPQB77cgmAE8lU m2/cqd4a2sQRTIMOpM8mjYQ= X-Google-Smtp-Source: APXvYqyFG3Gc3x/EWlA+SYYdLs8gzBuzL0sMqRKNFy/azUlajXonAhGrBaf2rrvEJ6mwe/wrQGrUCg== X-Received: by 2002:a17:902:f089:: with SMTP id go9mr26326216plb.81.1562605096151; Mon, 08 Jul 2019 09:58:16 -0700 (PDT) Received: from aw-bldr-10.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id z13sm66698pjn.32.2019.07.08.09.58.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 09:58:15 -0700 (PDT) From: Jeffrey Hugo To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH v2 2/2] drm/panel: simple: Add support for Sharp LD-D5116Z01B panel Date: Mon, 8 Jul 2019 09:58:11 -0700 Message-Id: <20190708165811.46370-1-jeffrey.l.hugo@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190708165647.46224-1-jeffrey.l.hugo@gmail.com> References: <20190708165647.46224-1-jeffrey.l.hugo@gmail.com> X-Mailman-Approved-At: Tue, 09 Jul 2019 07:01:45 +0000 X-Mailman-Original-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=T1w86HYowDLmCMH8t5cBhr+6c2jCirc20RP6wN4si70=; b=WRYTWK7F5Ug23w8882zblyMsDIYjkcH4ACBYvdFKP4HL+HoJF1SflMX5UPfAE18J9s HOCDZ+7FN/A8VyoDiR58OWig3Sbj4SSt6eO+ZgLGUnQlHF1VlI0ye9BaFZ9w3O9mNoDd V8D64/xzPpIE0ptFL9EASiMiMRdaXsOXqu3JeLfO6kTmqz128xjw4FWNo1nnm3UWV1Wr 6hm6o3QWjC+zTUMjI5GtOmVAFivpp6vN/fh8mcTxXOFDwzAzgHovj/Zr4Jhp1+RVNM/I 8vdtJYAdy18AzDQOw4OpGLMLqr4FMX78KI5jjJHg9k39D4D5HVsKIOxogpqEwR/B3v30 K27A== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Jeffrey Hugo , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bjorn.andersson@linaro.org, robh+dt@kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Sharp LD-D5116Z01B is a 12.3" eDP panel with a 1920X1280 resolution. Signed-off-by: Jeffrey Hugo Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5a93c4edf1e4..a8808b13c370 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2354,6 +2354,32 @@ static const struct panel_desc samsung_ltn140at29_301 = { }, }; +static const struct drm_display_mode sharp_ld_d5116z01b_mode = { + .clock = 168480, + .hdisplay = 1920, + .hsync_start = 1920 + 48, + .hsync_end = 1920 + 48 + 32, + .htotal = 1920 + 48 + 32 + 80, + .vdisplay = 1280, + .vsync_start = 1280 + 3, + .vsync_end = 1280 + 3 + 10, + .vtotal = 1280 + 3 + 10 + 57, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, +}; + +static const struct panel_desc sharp_ld_d5116z01b = { + .modes = &sharp_ld_d5116z01b_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 260, + .height = 120, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, +}; + static const struct drm_display_mode sharp_lq035q7db03_mode = { .clock = 5500, .hdisplay = 240, @@ -3002,6 +3028,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "samsung,ltn140at29-301", .data = &samsung_ltn140at29_301, + }, { + .compatible = "sharp,ld-d5116z01b", + .data = &sharp_ld_d5116z01b, }, { .compatible = "sharp,lq035q7db03", .data = &sharp_lq035q7db03,