From patchwork Tue Nov 26 09:53:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 180183 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp4397701ilf; Tue, 26 Nov 2019 01:53:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxROlhdmKgGWS6Ru8rU70mbZpVlqQdF4WCB23nlInm9hymMjLK3TKlq+fVvAAhQ6s2gLUAD X-Received: by 2002:a63:c04f:: with SMTP id z15mr38980591pgi.52.1574762001873; Tue, 26 Nov 2019 01:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574762001; cv=none; d=google.com; s=arc-20160816; b=u9NIYNuxpSqfUsllbBkjIedZw1Y4xFPBo836e3nmsiuDB5HUR8mmBGeoctW6uMHfRf qoNI/JXS6t3xeHmsin9yz5wuDezVHiZbnSfZrttikIzkZj1SqMzWCns7R2GS1ohMNbHL LKHH/yN3czQARPmanh3tZpdEmI04DEgjdmj33X1YZV+yNSDyjBg8CRbE6Jd+mixqSoCi Jks3RvGmbh4eNLqQPbSAFW3bs9aOTg7oF2GZuGPckzBLjQy4KRuiUa8BUsLE04rrHNge RQGhxpkD7/+mGEzN290A+R75NWumVTdakib1mLNz/oRHkcH1HjMr5Bo8VtSl2GOuhwy7 2fLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=X7fZIkDm8GioKKD9RfB694qwIq4EnaS02jZcme4J7IM=; b=Mw38CVw/1c/kUkVPHSP/UWar0yikGPrz+tfLe+gd1uyj8xXlvezdSkLc2C7T3T+/el heAMoHTKLj7m5iTShH0ENQpX4D8BdzHW/uSl6Ux2V0vy/C3tNBBkXwW++ezqPKQdNdG2 fYkWrG71f3mnKZQ59mYSzCOcC/HLDmcEu0D6yLhodc5uInUJ/hUC2qxs5bOh2QxdR6XT Z7qHbh7IwCrxgiExD/RjGO37SHXmjgr/mQCm28MysB3HMBgM/Aj3qUE5XwoH+qylDXEi gazvVyM+2FEykwLBMHr6WFLUR1icegKLA6ETk5r9nS40HsSRvGz5WsSX8zNSs+u6rWEp uJWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id v14si11460357pgh.131.2019.11.26.01.53.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Nov 2019 01:53:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F232F6E2B8; Tue, 26 Nov 2019 09:53:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5BA0E6E2B4 for ; Tue, 26 Nov 2019 09:53:18 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAQ9rAP7125329; Tue, 26 Nov 2019 03:53:10 -0600 Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAQ9rAgb022407 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 Nov 2019 03:53:10 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 26 Nov 2019 03:53:10 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 26 Nov 2019 03:53:10 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAQ9r71j044654; Tue, 26 Nov 2019 03:53:08 -0600 From: Jyri Sarha To: Subject: [PATCH 0/5] drm/tidss: New driver for TI Keystone platform Display SubSystem Date: Tue, 26 Nov 2019 11:53:05 +0200 Message-ID: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574761990; bh=JccW9mzQKJAKVc6Fd0GLXBkZR+h4rsBnyzvGIKELkBM=; h=From:To:CC:Subject:Date; b=gHpQ1fVphKzbdV9csPFcEzw36ykHrqlkSk6kTL1AbLITKM58v+xA8/iPNTp1eYOfl 4Ay2FzDWoqHQwcxIFa4+HgUZHXO2qr72ILC9CxqsLiUoZ/ZJzmZ2NDDKmdtE7xktYk //9zncWtW9Eg47CSLs3EA21mR1n9it0tMZLJZlKI= 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: yamonkar@cadence.com, praneeth@ti.com, sjakhade@cadence.com, peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, subhajit_paul@ti.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" There was couple of attempts upstream an earlier version of this driver about a year ago [1]. Back then I needed to stop my efforts to implement support for next Keystone DSS version, so now the driver supports three different Keystone DSS version on three different SoCs. I am starting the patch series versioning from the beginning since it has been over a year since the previous patch set and the structure of the driver has evolved quite a bit. However, all the earlier comments should be addressed in this series. [1] https://patchwork.freedesktop.org/series/44947/ Jyri Sarha (5): dt-bindings: display: ti,k2g-dss: Add dt-schema yaml binding dt-bindings: display: ti,am65x-dss: Add dt-schema yaml binding dt-bindings: display: ti,j721e-dss: Add dt-schema yaml binding drm/tidss: New driver for TI Keystone platform Display SubSystem MAINTAINERS: add entry for tidss .../bindings/display/ti/ti,am65x-dss.yaml | 133 + .../bindings/display/ti/ti,j721e-dss.yaml | 177 ++ .../bindings/display/ti/ti,k2g-dss.yaml | 97 + MAINTAINERS | 10 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/tidss/Kconfig | 15 + drivers/gpu/drm/tidss/Makefile | 12 + drivers/gpu/drm/tidss/tidss_crtc.c | 373 +++ drivers/gpu/drm/tidss/tidss_crtc.h | 45 + drivers/gpu/drm/tidss/tidss_dispc.c | 2645 +++++++++++++++++ drivers/gpu/drm/tidss/tidss_dispc.h | 132 + drivers/gpu/drm/tidss/tidss_dispc_regs.h | 243 ++ drivers/gpu/drm/tidss/tidss_drv.c | 292 ++ drivers/gpu/drm/tidss/tidss_drv.h | 42 + drivers/gpu/drm/tidss/tidss_encoder.c | 89 + drivers/gpu/drm/tidss/tidss_encoder.h | 17 + drivers/gpu/drm/tidss/tidss_irq.c | 185 ++ drivers/gpu/drm/tidss/tidss_irq.h | 71 + drivers/gpu/drm/tidss/tidss_kms.c | 239 ++ drivers/gpu/drm/tidss/tidss_kms.h | 15 + drivers/gpu/drm/tidss/tidss_plane.c | 218 ++ drivers/gpu/drm/tidss/tidss_plane.h | 25 + drivers/gpu/drm/tidss/tidss_scale_coefs.c | 201 ++ drivers/gpu/drm/tidss/tidss_scale_coefs.h | 22 + 25 files changed, 5301 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml create mode 100644 Documentation/devicetree/bindings/display/ti/ti,j721e-dss.yaml create mode 100644 Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml create mode 100644 drivers/gpu/drm/tidss/Kconfig create mode 100644 drivers/gpu/drm/tidss/Makefile create mode 100644 drivers/gpu/drm/tidss/tidss_crtc.c create mode 100644 drivers/gpu/drm/tidss/tidss_crtc.h create mode 100644 drivers/gpu/drm/tidss/tidss_dispc.c create mode 100644 drivers/gpu/drm/tidss/tidss_dispc.h create mode 100644 drivers/gpu/drm/tidss/tidss_dispc_regs.h create mode 100644 drivers/gpu/drm/tidss/tidss_drv.c create mode 100644 drivers/gpu/drm/tidss/tidss_drv.h create mode 100644 drivers/gpu/drm/tidss/tidss_encoder.c create mode 100644 drivers/gpu/drm/tidss/tidss_encoder.h create mode 100644 drivers/gpu/drm/tidss/tidss_irq.c create mode 100644 drivers/gpu/drm/tidss/tidss_irq.h create mode 100644 drivers/gpu/drm/tidss/tidss_kms.c create mode 100644 drivers/gpu/drm/tidss/tidss_kms.h create mode 100644 drivers/gpu/drm/tidss/tidss_plane.c create mode 100644 drivers/gpu/drm/tidss/tidss_plane.h create mode 100644 drivers/gpu/drm/tidss/tidss_scale_coefs.c create mode 100644 drivers/gpu/drm/tidss/tidss_scale_coefs.h