Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3886694yba; Tue, 7 May 2019 08:34:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzb7zKyYXNfl5L3G6J1ECBwAdyoVxTDOUdIpn2uwkHX2eHsWGgL1R4evA0g/W6i1kTEn2C+ X-Received: by 2002:a17:902:2a07:: with SMTP id i7mr35985510plb.125.1557243291815; Tue, 07 May 2019 08:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557243291; cv=none; d=google.com; s=arc-20160816; b=jm4+6In5kALozWu3x0ON5rmO5gfqlsK49cPPASUlfCyrPJdZz51j1/d2lMp7ZEWaIf PBfi0/m+Mx5Fg+uJVB6qWUF8yOAJXM3EdDpWVDKD/Yuq8caWXH9aioLTkQcWT7qPsiXl oHTRHwgwmpbNlt+IyeRrNqrgM+2J5M/Hg2tf0ewQoHVi07J4/bU73TqQvkirSKQI27Kt Y8PtmWViQcwItzFPajnoSc4FdkY3O5rV3X8iYO5aQi5Ui16a3HahTtq+0fzAJwveHZwq 1ljnu8rLzkOCzIebjM2+6EjI6A0BAKrnJoy7El2EImkfL3szjcfAXz9J+efdx/ulOqk5 gBlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WQisPNfHOfBJIalj0+j26baB7DA29UKmypJYO0pbRkw=; b=qUmbKXUcK/8M3AxkeC20YQkmzb+9rAYyjyHzzuhqa7fYppBaJgU/S0qdRWPJyvRV1g dIM3exnqMHfdpCSuE2xCZVlqL7+pG8EUS+Rh/takXUuVfgXJtiuYXrX81ruSe+14nz/l ngHs6ONST4aIwjBjpjxi4SxeUJvF0fahxeJstHrJ9E/IKNTWZbH0IT3BophMbv+6WWbz bKLq32et7lrHW9U6nSwfY7NTOA4o5giqiVw1I8/jutqPPEda8/jB6nsgcCOOv3xA93dy cfjBvYFCWx9L/89qzeN+TcRRuT1DpmGWt0zW72ah1HMqlXjkWTs6p61L6qlQldtMKfyh yDfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="p/Ae+FE2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si20792645ple.344.2019.05.07.08.34.35; Tue, 07 May 2019 08:34:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="p/Ae+FE2"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726622AbfEGPdh (ORCPT + 99 others); Tue, 7 May 2019 11:33:37 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:43017 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbfEGPdh (ORCPT ); Tue, 7 May 2019 11:33:37 -0400 Received: by mail-lf1-f65.google.com with SMTP id u27so11929479lfg.10; Tue, 07 May 2019 08:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WQisPNfHOfBJIalj0+j26baB7DA29UKmypJYO0pbRkw=; b=p/Ae+FE2KJJFwABwsALHLaFGmLRrrZwfw6c20iqhoqGxxvYFHcl4Mbl0rgeHBsHgPd OWKfLJJPdkXbaBXWmTfG2b+0VB+VBwspEXLsxCtj7qabY+QR3AuBBRrFxF4qAWHRzYvs zYS5wXWXvLvn+A3xfxJzBuUlOnPihB7fWAzS1N/DW/RHkNGXlNuoaXHhBErG5LjCU/59 2JX3nb3qPqK1wEs4pVqoZhR/R+PhflOPKM25QrzQs3w8tRqi4ZRRttnaw5JIbVdOwDzG 8IfTMUwpsgVHh+VXKBiQwX9yY3LofCi+aLAV1TjzFzet2eZgw12JYXQ9t0IZA51CzxJg 7IvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WQisPNfHOfBJIalj0+j26baB7DA29UKmypJYO0pbRkw=; b=atU+mJRapPz1pCa058oT/JKS+qELDqufX4CB8rG7sKsRwLmq8WWQZIk6EokRQZN+Tc 3oDO71WQ8MhPSiXjTugiVOTJRBXFyvrTWrbnU/yzspz229EU9RhBvFrb1DXD0B913aff +uAXGeSFbHywuVxsvPg9zGsH1mC3kfvyIz6vNiwUAU6hoc4uPMnBUOv43VTO1B/ApCpa HtbGhmfNX0Kmefw/IKjAv+DthisuslzCN4+Godi0SudmWAXlzqa9xw3iwKp2Z/cgfepm kS6sqQuSvntxUYYZ1Gu/S69qUaAWP3r8gkf23bYDMC5LTY/LvnxanqVrmSHBvpgT13y/ 2e8A== X-Gm-Message-State: APjAAAX0GKjU5PO8BzwAjvlP4Vg0gWJ9E9oIMI4bJKCExReX9Rw1yubV kdTqMCZPtBmPMdztyvJklonbRghW5lFBnYgyUiQ= X-Received: by 2002:ac2:54a1:: with SMTP id w1mr18136772lfk.46.1557243214820; Tue, 07 May 2019 08:33:34 -0700 (PDT) MIME-Version: 1.0 References: <20190507152713.27494-1-sebastien.szymanski@armadeus.com> In-Reply-To: <20190507152713.27494-1-sebastien.szymanski@armadeus.com> From: Fabio Estevam Date: Tue, 7 May 2019 12:33:39 -0300 Message-ID: Subject: Re: [PATCH RE-RESEND 1/2] drm/panel: Add support for Armadeus ST0700 Adapt To: =?UTF-8?Q?S=C3=A9bastien_Szymanski?= , Sam Ravnborg Cc: linux-kernel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , DRI mailing list , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Mark Rutland , Rob Herring , Daniel Vetter , David Airlie , Thierry Reding , stable Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Adding Sam, who is helping to review/collect panel-simple patches] On Tue, May 7, 2019 at 12:27 PM S=C3=A9bastien Szymanski wrote: > > This patch adds support for the Armadeus ST0700 Adapt. It comes with a > Santek ST0700I5Y-RBSLW 7.0" WVGA (800x480) TFT and an adapter board so > that it can be connected on the TFT header of Armadeus Dev boards. > > Cc: stable@vger.kernel.org # v4.19 > Reviewed-by: Rob Herring > Signed-off-by: S=C3=A9bastien Szymanski > --- > .../display/panel/armadeus,st0700-adapt.txt | 9 ++++++ > drivers/gpu/drm/panel/panel-simple.c | 29 +++++++++++++++++++ > 2 files changed, 38 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/panel/armad= eus,st0700-adapt.txt > > diff --git a/Documentation/devicetree/bindings/display/panel/armadeus,st0= 700-adapt.txt b/Documentation/devicetree/bindings/display/panel/armadeus,st= 0700-adapt.txt > new file mode 100644 > index 000000000000..a30d63db3c8f > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/armadeus,st0700-ada= pt.txt > @@ -0,0 +1,9 @@ > +Armadeus ST0700 Adapt. A Santek ST0700I5Y-RBSLW 7.0" WVGA (800x480) TFT = with > +an adapter board. > + > +Required properties: > +- compatible: "armadeus,st0700-adapt" > +- power-supply: see panel-common.txt > + > +Optional properties: > +- backlight: see panel-common.txt > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel= /panel-simple.c > index 9e8218f6a3f2..45ca8d10b66f 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -446,6 +446,32 @@ static const struct panel_desc ampire_am800480r3tmqw= a1h =3D { > .bus_format =3D MEDIA_BUS_FMT_RGB666_1X18, > }; > > +static const struct display_timing santek_st0700i5y_rbslw_f_timing =3D { > + .pixelclock =3D { 26400000, 33300000, 46800000 }, > + .hactive =3D { 800, 800, 800 }, > + .hfront_porch =3D { 16, 210, 354 }, > + .hback_porch =3D { 45, 36, 6 }, > + .hsync_len =3D { 1, 10, 40 }, > + .vactive =3D { 480, 480, 480 }, > + .vfront_porch =3D { 7, 22, 147 }, > + .vback_porch =3D { 22, 13, 3 }, > + .vsync_len =3D { 1, 10, 20 }, > + .flags =3D DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | > + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE > +}; > + > +static const struct panel_desc armadeus_st0700_adapt =3D { > + .timings =3D &santek_st0700i5y_rbslw_f_timing, > + .num_timings =3D 1, > + .bpc =3D 6, > + .size =3D { > + .width =3D 154, > + .height =3D 86, > + }, > + .bus_format =3D MEDIA_BUS_FMT_RGB666_1X18, > + .bus_flags =3D DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDG= E, > +}; > + > static const struct drm_display_mode auo_b101aw03_mode =3D { > .clock =3D 51450, > .hdisplay =3D 1024, > @@ -2544,6 +2570,9 @@ static const struct of_device_id platform_of_match[= ] =3D { > }, { > .compatible =3D "arm,rtsm-display", > .data =3D &arm_rtsm, > + }, { > + .compatible =3D "armadeus,st0700-adapt", > + .data =3D &armadeus_st0700_adapt, > }, { > .compatible =3D "auo,b101aw03", > .data =3D &auo_b101aw03, > -- > 2.19.2 >