From patchwork Tue Aug 11 18:21:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Semwal X-Patchwork-Id: 11709495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6FF90739 for ; Tue, 11 Aug 2020 18:21:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4DE6720774 for ; Tue, 11 Aug 2020 18:21:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="awMoBXKo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4DE6720774 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F85C6E527; Tue, 11 Aug 2020 18:21:19 +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 C50066E527 for ; Tue, 11 Aug 2020 18:21:17 +0000 (UTC) Received: by mail-pg1-x541.google.com with SMTP id m34so7083528pgl.11 for ; Tue, 11 Aug 2020 11:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DmcHWuf2v+3wV2AD0mGNYgT+VY5ydtvubi2qH/7HZXw=; b=awMoBXKow61xwOaSEK8foUmARLBgX2Gjc5NemuqQ+u+zr/6iL8Wlsjmt57+TU5sw3T 7NVhcphc0qo/jF38mnBxS3Ox4C2E5WjVu9pDoWHl77+hseWYj0leqw+QDmOQxgihBiut oML0ZtWsJ/clSU5Qiv5dviSFCcgouDXNxFVlfe8kaYX9XRtVRWXHmVd8x/3uA7PejlKh xlyJ8OXubECBeXln5+g8YZTmPKeiTJtHKWPnKn6OEud8YkpsmWSROyPvDEDdaXpxJpD+ 3QdyEi8Zu0NgdAfbEPmejz47s6bpMRKcLC6QFNFBP8ZHMnsecIkQ13ujRfP8h7AyAN7F +Flg== 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=DmcHWuf2v+3wV2AD0mGNYgT+VY5ydtvubi2qH/7HZXw=; b=birWISSO/DLyZWq7vlO+loU9Np7LGd1E43gVm0+nQLreB1tB8r0MiIYgv+V8aa46/K VAs99uMKEidizl3E593p2fu3+EDek1RYiiamG4dyIKAhyVDxuD9Gxa+xJOIv0ELxUqCc A3O8etQenujL0+J9Yu6iNgdchdYRjBS4oGUWIvaSMil70eveaUzji4+vpTZprn0GnVD4 LGbBKhfcQYf7ELbKtzuJ+TNzNeIWXZD0uG2kxCnp+EoxJbcWbMorL4/MsFj/cDyBC9Me pKT98yF8Jyr5LdCeN0d+vaVTXnY8j+OFUMvesFTNloj49grWHL00ho1oSUcSYBoubvw3 +77A== X-Gm-Message-State: AOAM5324Cn3WKe9avdgoE3RLxxkO1CaKc398jpmoF/QturJLo5v8XON2 4CQdZxuSBieW6ucW/sQY8p0USg== X-Google-Smtp-Source: ABdhPJxz0PuC4YfxRjlx/Cs0nOrfxWcypnJDNU7R3auDZe+MNSwJPMHKt+8nmemmZO+slEKvzzM6Yg== X-Received: by 2002:a62:1803:: with SMTP id 3mr7912192pfy.198.1597170077136; Tue, 11 Aug 2020 11:21:17 -0700 (PDT) Received: from nagraj.local ([49.206.21.239]) by smtp.gmail.com with ESMTPSA id x7sm26595162pfc.209.2020.08.11.11.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2020 11:21:16 -0700 (PDT) From: Sumit Semwal To: Thierry Reding , Sam Ravnborg Subject: [PATCH v4 0/2] Add support for Tianma nt36672a video mode panel Date: Tue, 11 Aug 2020 23:51:05 +0530 Message-Id: <20200811182107.6515-1-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Bjorn Andersson , Mauro Carvalho Chehab , "David S . Miller" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Some Poco F1 phones from Xiaomi have an nt36672a video mode panel; add support for the same. Most of the panel data is taken from downstream panel dts, and is converted to drm-panel based driver by me. It has been validated with v5.8-rc5 on Poco F1 phone; my tree with other dependent patches is here [1] [1]: https://git.linaro.org/people/sumit.semwal/linux-dev.git/log/?h=dev/poco-panel-upstreaming --- v2: In dt-binding, removed ports node, making port@0 directly under panel@0 node. Also updated the panel_on delay to a safer 200ms as needed for latest Android. v3: Replaced port@0 with just port in panel@0 node. v4: Since "0425662fdf05: drm: Nuke mode->vrefresh", we have to calculate vrefresh on demand. Update for it. Sumit Semwal (2): dt-bindings: display: panel: Add bindings for Tianma nt36672a panel drm: panel: Add tianma nt36672a panel driver .../display/panel/tianma,nt36672a.yaml | 95 ++ MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-tianma-nt36672a.c | 858 ++++++++++++++++++ 5 files changed, 972 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,nt36672a.yaml create mode 100644 drivers/gpu/drm/panel/panel-tianma-nt36672a.c