From patchwork Mon Jun 25 12:41:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= X-Patchwork-Id: 10488141 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D51C60386 for ; Tue, 26 Jun 2018 07:26:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14D4D2874C for ; Tue, 26 Jun 2018 07:26:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0843328787; Tue, 26 Jun 2018 07:26:16 +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, 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 5C2752874C for ; Tue, 26 Jun 2018 07:26:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6F2ED6E449; Tue, 26 Jun 2018 07:24:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on062b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::62b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C67889E4C for ; Mon, 25 Jun 2018 12:57:31 +0000 (UTC) Received: from iota-build.ysoft.local (89.24.100.190) by AM0PR04MB4657.eurprd04.prod.outlook.com (2603:10a6:208:75::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.21; Mon, 25 Jun 2018 12:57:28 +0000 From: =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= To: robh+dt@kernel.org, thierry.reding@gmail.com Subject: [PATCH 2/2] drm/panel: simple: Add support for DataImage SCF0700C48GGU18 Date: Mon, 25 Jun 2018 14:41:30 +0200 Message-Id: <1529930490-11874-2-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1529930490-11874-1-git-send-email-michal.vokac@ysoft.com> References: <1529930490-11874-1-git-send-email-michal.vokac@ysoft.com> MIME-Version: 1.0 X-Originating-IP: [89.24.100.190] X-ClientProxiedBy: AM0PR01CA0004.eurprd01.prod.exchangelabs.com (2603:10a6:208:69::17) To AM0PR04MB4657.eurprd04.prod.outlook.com (2603:10a6:208:75::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1bd266fc-3090-43cf-a904-08d5da9b34c3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(8989117)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4657; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4657; 3:7q7mo0RBx5c3lyP/jO/kfsuHekmAJkmcIAH3TygmRXHtfmmKzoCi8oGmKsaDueaALu6Dn5BfMa7ameuvKj5HbqNWGKCoxM1uw/XuHxSNdzvL4csU1+WvDN5dsZC8FqIXJC+yo5O0QhRaXuRQR5PyNoYkLHh8VHUxyKwrGgJUdhOzjtIGHnr6EHWr8rJwEGuXxQcOqG9WOswFwdcFksXwDkzGr+9eXiNsyvEGbyvhK/JoVKhb0Sw3W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+/Ggl0JaHSMFlvp2wkzv+xhCVtI/aWCoUu9A07EvcBgUg/aNvnyJmSIE8++Ns9qS8jtTGckcQKs3EM1BdgYBiDZNzJJqmCYgvelCVPV2NFim7jWYy7Wj03kg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(2016111802025)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6043046)(6072148)(201708071742011)(7699016); SRVR:AM0PR04MB4657; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4657; X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(346002)(39850400004)(396003)(366004)(189003)(199004)(16526019)(50226002)(72206003)(478600001)(26005)(53936002)(76176011)(86362001)(107886003)(68736007)(186003)(5660300001)(66066001)(97736004)(25786009)(6666003)(39060400002)(6512007)(47776003)(6506007)(23676004)(6116002)(476003)(2616005)(6486002)(105586002)(4326008)(2870700001)(36756003)(316002)(11346002)(956004)(52116002)(305945005)(386003)(3846002)(7736002)(2906002)(446003)(486006)(50466002)(81166006)(81156014)(106356001)(8676002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4657; H:iota-build.ysoft.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTBQUjA0TUI0NjU3OzIzOlp2bFV4b0lmNklLMTBWc285TjZDRklIVnlV?= =?utf-8?B?Um9MdlRZVVQ2Rit5TjV1THFCN0l0UG9UN09nWHVEMXI3UkZGVXlRMklzdG1z?= =?utf-8?B?SjBDUW5ZQ3A2eTFPNUFydE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Bjfz2uin+GVoNBeLvEMScN3fLmb5rUz/32zo2r/mNsbLbGsWAYnpcOVgbacFxDpxJOYCuqrwjDhPckOtR88QxoAohkg9MO//7 X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2018 12:57:28.0125 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1bd266fc-3090-43cf-a904-08d5da9b34c3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4657 X-Mailman-Approved-At: Tue, 26 Jun 2018 07:24:15 +0000 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, =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= , airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This adds support for the DataImage SCF0700C48GGU18 7.0" WVGA (800x480) TFT LCD panel. The panel has 24-bit parallel interface and can be supported by the simple panel driver. Signed-off-by: Michal Vokáč Reviewed-by: Rob Herring --- .../display/panel/dataimage,scf0700c48ggu18.txt | 8 ++++++ drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/dataimage,scf0700c48ggu18.txt diff --git a/Documentation/devicetree/bindings/display/panel/dataimage,scf0700c48ggu18.txt b/Documentation/devicetree/bindings/display/panel/dataimage,scf0700c48ggu18.txt new file mode 100644 index 0000000..897085e --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/dataimage,scf0700c48ggu18.txt @@ -0,0 +1,8 @@ +DataImage, Inc. 7" WVGA (800x480) TFT LCD panel with 24-bit parallel interface. + +Required properties: +- compatible: should be "dataimage,scf0700c48ggu18" +- power-supply: as specified in the base binding + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index cbf1ab4..796b091 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -857,6 +857,32 @@ static const struct panel_desc chunghwa_claa101wb01 = { }, }; +static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = { + .clock = 33260, + .hdisplay = 800, + .hsync_start = 800 + 40, + .hsync_end = 800 + 40 + 128, + .htotal = 800 + 40 + 128 + 88, + .vdisplay = 480, + .vsync_start = 480 + 10, + .vsync_end = 480 + 10 + 2, + .vtotal = 480 + 10 + 2 + 33, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc dataimage_scf0700c48ggu18 = { + .modes = &dataimage_scf0700c48ggu18_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 152, + .height = 91, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, +}; + static const struct drm_display_mode edt_et057090dhu_mode = { .clock = 25175, .hdisplay = 640, @@ -2125,6 +2151,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "chunghwa,claa101wb01", .data = &chunghwa_claa101wb01 }, { + .compatible = "dataimage,scf0700c48ggu18", + .data = &dataimage_scf0700c48ggu18, + }, { .compatible = "edt,et057090dhu", .data = &edt_et057090dhu, }, {