Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752506AbbGXKjX (ORCPT ); Fri, 24 Jul 2015 06:39:23 -0400 Received: from mail-by2on0054.outbound.protection.outlook.com ([207.46.100.54]:46656 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750898AbbGXKjT (ORCPT ); Fri, 24 Jul 2015 06:39:19 -0400 Authentication-Results: spf=softfail (sender IP is 192.88.168.50) smtp.mailfrom=gmail.com; linaro.org; dkim=none (message not signed) header.d=none; From: Jianwei Wang To: CC: , , , , , , , , Subject: [PATCH v12 0/6] drm/layerscape: Add Freescale DCU DRM driver Date: Fri, 24 Jul 2015 18:34:08 +0800 Message-ID: <1437734054-36163-1-git-send-email-jianwei.wang.chn@gmail.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130822079574246552;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD039;1:68TPMmOwi/ygyqwZPMwa19rlwwHoJShd6C+B9AZahakPRQc61b6J8uN7jY+igqmAZ8GuldFElJQJMBUn9qpRXCBV3POJ4eMa5Q5ngaGCdSxoh/vxVrjaTnd425q7Xl9yOVE9QRfStNhaoHrbXvdw3+DS4qZj8uBx0RhGePuLASseji1T6WeSnuSVnFYJfZgWdNYABL8X78zG1Vy3lS9S0QQKvt8+mb8WM+VdpO9FdN389v3xG2/A97WqW8tx+f/h9PJT/XIddZ9Mj+dlRTCNvefwpNx6dT5N8y20dcpGU9oxTQMPN378MNdSD2pFFsKdPRnomxtV2cHUWV3Ddu8GZpkwEiylGZulAWvp+r0+W3ENlElwksK19rShiiG5lXH5 X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(199003)(189002)(46102003)(50466002)(104016003)(2351001)(229853001)(73972006)(81442002)(55446002)(73392002)(82202001)(19580395003)(87936001)(36756003)(33646002)(83322999)(86362001)(5001960100002)(106466001)(110136002)(77096005)(77156002)(189998001)(50226001)(105596002)(92566002)(87572001)(50986999)(62966003)(76482005)(47776003)(5001920100001)(61266001)(5003940100001)(6806004)(48376002)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR03MB089;H:tx30smr01.am.freescale.net;FPR:;SPF:SoftFail;MLV:sfv;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB089;2:pNl7pH9dTCCR/bTVMxCaR9jfuDUuFTAdAo/ETVF1ZVTL1BE089viV7nfJ/0LaYKB;3:bX3B6PdeXAewpsPHbZKtrh0/pUHno4ragBVBch9ktvhksge/QKEBoJ6vEb0nlYUYoll9EnlgtjF7e9Zdn3NRzgp8bMLhd8zU/63KrawLNygB7ZqpBozEz/M9fDM/ZpANABfreMqcwWLE7tSwfBuAUkfChth8F8zPTLDaudegSOI5nBXsl6NlH1MQMVPcopZo4IckVpU+Klq/L17HDaxT5hqPl8D1xewmae9k7m/6gys=;25:iTTV24ei2iCf/HJ1hU0g/Cf7b6Eo0fz1LMBJptUDSODdBmuy9dBJg4uz8FnPZosYCsxtSr8pmHp/OQtFQuDnJlCVooMmdZHzrcnyhbUJhfZAYaOzuLYK7arIkWFfdyxHTMDFOIwSWp98nurT74M06/B8is26XSnftESH33l5rmgBYqvMmVyUA2Kf4iSF9joAkYZpq5TdHBLXrjDHA2ESgzF+cXsHhf2TowVUflfIT6juiWOuB3Lklw6nAhOA1R7kNB7VtzTy7nfXALotKSXQzg==;4:Nr0vcB4XK8zoxjf7Ng2w/NQVNw0Crehb0OFWDMEKGykWplxkWm5y0tHjtScLCDewuFqcpVygIGJduUgHRQg7uR8iyqNMmmQxFjty1ZbWeLHidT2OJkAEuqqXvDSPFkO6HzuKQDQrcSegp+ZgynqMi55uH4e/+xdmjH01GIYW27UXd0O1R/IJ5hj5CUqvh3LH1b5v7IOZUycGYQhDS/ekFK4QvSwGm4FDNm6SDn++LgruNs0NoolcxLo7MnE+a9YR6u/e5hbhWXMA9XKcUV14r9Dwo0MjWDHeRHqGJ/j+P+Q= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB089; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY2PR03MB089;BCL:0;PCL:0;RULEID:(400006);SRVR:BY2PR03MB089; X-Forefront-PRVS: 0647963F84 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB089;23:13USNipD/A8mGwcDht5kVsUNpsmuCEqXu05zoAxEOI?= =?us-ascii?Q?ivV+G6rBH5XDjnlpj0cLMTpQ/E8feR5hIhrY+AjL+vPmKAmoZ+8j+OHCt1hg?= =?us-ascii?Q?0gd5O0Cof3oK3vbYoEoB0TkeQCcN5uVujWruWkIxzbuZ4/UGkw8SoWZc8Arj?= =?us-ascii?Q?IpDgcQ141dQ7OtsxvDSvnpfesSktokatryTPIccQbzj40I9NPP21RRmd5bfc?= =?us-ascii?Q?HJzFTw2DMBJxCcsojMC358MRCovW0AV2/AM+3rmL8x1Wcs3J1ysrly5skIn+?= =?us-ascii?Q?whp8/urW0ukzFsgHYwlCwZobSTmuLUtTNAImTaZEqikyULypmIje40c8AD7T?= =?us-ascii?Q?LcOgc4FRwpirGIxNzUToff3P7BnZiKSu5tl3BQZD97WL9mAaTN+hMSbicJVw?= =?us-ascii?Q?e0qhFnPgJ4o7yP+GyDlG7vgu0NjMFtlQf/mfgIZ5KF/EK2X0/2ifORLq0jze?= =?us-ascii?Q?fEtMAcnfifrOJIOysWkhY0fFYgIlRWxNRcXPEy2l/IBEqMv2DGwFHn7FKBix?= =?us-ascii?Q?ddUx8zWjQB0kwJ3zNBiUz0H86wR3+uYxdyVJ5aYhUKIScHYhC3U/T2mhvSM8?= =?us-ascii?Q?4TE9gvJNKioKkBcIt00am9HbkANW5cpo2fv0+06ooWnfIg4ID/+8gcR/kimO?= =?us-ascii?Q?cYOc8vrwCUvYIgOk74hllcyXGcjciF7vrQtDGn+hvmf0ESgJdKt6y54j0Ue/?= =?us-ascii?Q?U1Vv+H3658RJNx5Mlr0mwzzEAGMELjomCeNk9TFDDIxzOXTu6C9Y9GjJBALF?= =?us-ascii?Q?U2pwLFUK94jNBU50RdDat5NNmstVIXJO/BsOvkB6LFdEwYlS5IE6BzNAAKYk?= =?us-ascii?Q?ATx43Zzz6CKtyebuBNUwpE/sKWNuBRAZ4JfhRqGXcbn681x0yA1PsKdbeFBI?= =?us-ascii?Q?osNuoWFJiLInAjqfLpgL6/ICXc8ievMeomix8qx5oQiOQ89QLcZANFVoUJ8P?= =?us-ascii?Q?ugOBnB8wFKeuHWy+h2zWv0SLPi6SeK1pGeOGxGR3I407sgD1Ak/EugrNtioP?= =?us-ascii?Q?ahDb2DNdtFv6EIbQhjKpQ3OexIOfi1aKCH1pnR+s3Chg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB089;5:w7E5o5Oylgo8YaUGFi85rI9RAPxg9edUKpTLQo82GowOStvYhYUNEiPe03Jbk6uludc8PNEycel3z4ZF07de/P6FTtHz88I7A9ZcqBe5cCX9nXvqQm97ZvSIjPS3y4H+vL5z0RdRzV75/NyozudAayJawLiTBnEY2lhRkkvaebM=;24:msdLnFCoTP2e0O6bOkM6w4zMxQHTUgnzJiBitCtEWX5uRSNzIrA883932nZJUjKVwUvM7rE+wJU41KbWm2Uu8nPr0B01gBhdpo8M5yDk0Lo= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2015 10:39:17.2374 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB089 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4895 Lines: 131 Resend v12 for lack of patch 0/6 This patchset add support for Two Dimensional Animation and Compositing Engine (2D-ACE) on the Freescale LS102x SoCs. Changed in v12 -Add one patch for MAINTAINER entry for drm/layerscape Adviced by Daniel Vetter -Add #include Changed in V11 -set regmap_config.cache_type to REGCACHE_FLAT Advanced by Alexander Stein Changed in V10 -adjust commit log, remove meaningless statement -cleanup code for it's format and style. -remove platform related code out, including of tcon(vf610) and scfg(ls1021a) -remove useless sentences: encoder->crtc = crtc; and connector->encoder = encoder; and so on -add vendor prefix for panel pandle -make a DCU_CTRLDESCLN(x, y) to avoid high repetition -introduce per-SoC capability structure to avoid check on the OF node's compatible string -Implement some functions: crtc enable and disable, enable and disable VBLANK, plane atomic_disable and atomic_enable -atomic_check and so on -move DCU config sentence to the right place -move get resources functions to ->probe() -move fsl,dcu.txt to video/ folder -add big-endian describe All advaced by Thierry Reding Changed in V9 put node after calling of_drm_find_panel split clk_prepare_enable() to clk_prepare() and clk_enable(), just call clk_prepare once, and check return value check regmap_write/regmap_read return return value remove useless ".owner = THIS_MODULE," All advanced by Mark Yao Changed in V8 - Remove useless code #define DRIVER_NAME "fsl-dcu-drm" MODULE_ALIAS("platform:fsl-dcu-drm"); Adviced by Paul Bolle Changed in V7 - Remove redundant functions and replace deprecated hooker Adviced by Daniel Vetter - Replace drm_platform_init with drm_dev_alloc/register Adviced by Daniel Vetter Changed in V6 - Add NEC nl4827hc19_05b panel to panel-simple.c Adviced by Mark Yao - Add DRIVER_ATOMIC for driver_features Adviced by Mark Yao - check fsl_dev if it's NULL at PM suspend/resume Adviced by Mark Yao Changed in V5 - Update commit message - Add layer registers initialization - Remove unused functions - Rename driver folder Adviced by Stefan Agner - Move pixel clock control functions to fsl_dcu_drm_drv.c - remove redundant enable the clock implicitly using regmap - Add maintainer message Changed in V4: -This version doesn't have functionality changed Just a minor adjustment. Changed in V3: - Test driver on Vybrid board and add compatible string - Remove unused functions - set default crtc for encoder - replace legacy functions with atomic help functions Adviced by Daniel Vetter - Set the unique name of the DRM device - Implement irq handle function for vblank interrupt Changed in v2: - Add atomic support Adviced by Daniel Vetter - Modify bindings file - Rename node for compatibility - Move platform related code out for compatibility Adviced by Stefan Agner .../devicetree/bindings/video/fsl,dcu.txt | 22 ++ drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/fsl-dcu/Kconfig | 18 + drivers/gpu/drm/fsl-dcu/Makefile | 7 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 208 +++++++++++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.h | 19 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 404 +++++++++++++++++++++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h | 197 ++++++++++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_fbdev.c | 23 ++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c | 43 +++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_output.h | 33 ++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 261 +++++++++++++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.h | 17 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 182 ++++++++++ 15 files changed, 1437 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/fsl,dcu.txt create mode 100644 drivers/gpu/drm/fsl-dcu/Kconfig create mode 100644 drivers/gpu/drm/fsl-dcu/Makefile create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.h create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.h create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_fbdev.c create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_output.h create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.h create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/