Message ID | 20230915104849.187146-1-manikandan.m@microchip.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1165732vqi; Fri, 15 Sep 2023 09:20:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/ljgMhzkc+gqZm3+E2z7jkURkGUbyud8HCq2IDqGBbLXMNkopSayhdJWvCqsfyp6AorQg X-Received: by 2002:a17:902:ab84:b0:1bb:b91b:2b3c with SMTP id f4-20020a170902ab8400b001bbb91b2b3cmr1890190plr.34.1694794806653; Fri, 15 Sep 2023 09:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694794806; cv=none; d=google.com; s=arc-20160816; b=fR4vrUeux8E0PwXEMAgcKcDvL9+FeHFCi20klY9G6xk1Y195PyB/G5/R8KWFmfOBhh a5klRd84EWB7jKbczWKGa6FBMgD5QqBBk6cc7DiAcAhIBX8rw+KO1pzClphFJ+LGvRJU d9YJDWK8oOSU/HkAfM9kxHCHL2Q9d+URyEBrd5ytwASWe17GlWGZinofHKMfuvziGCaj o3MaV7O5XNh2OnsxNRh81kPvsqlBY/bmWgGCcN5ArrVWmdcBPCBauHTgQc426Hzh+J5W 2IpvwMjNEUMrYdFEYsA8MOpWBaBHMLh+EcjIU4X/0MTZYKrGcpap34EdqiRxLGN5X9Pm O6LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZcOSpepN2smqVSrPyKmTB3+Zzj5m9RIU//AqQQUtz1U=; fh=ComlYb+yrr7pTh3oI7q7RcW5EOVriLArPZlioEeQVts=; b=eAVJUuvShJBuLhJYv+47DU0br9CW7PSx2Jax/g33B0dlTc/I8zr/sa01Yxhp4KIdpO 5Sasi0/RpnCXRWtAGOjmLOnKuwgaTdGxpauT5c6GTs1IdxggGt13GIcY0VlcueJUh5jp bIbRSTLJ7PUotYM7AptGoTSGkU9T1+ZDFxRLyH6Mjkj/sqahmmw5jkUIjsv/O8kvE3Sw BHDtmoHXLDQFbhiN/bfXptG7DlYTVD3Y7MpSUMpYXfSnXxp9elvxECTBETEsg6i021Jp Rxa/818nrmmUr1pGCDkiR7Fhlji/FHDFsS/MIqD6VgJKb4kMCxKTcmmLqdjO5XC5C8et M56A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=UbXiAMJ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j1-20020a170902690100b001b9ea5f0feesi3511497plk.453.2023.09.15.09.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 09:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=UbXiAMJ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 10FB98485899; Fri, 15 Sep 2023 03:49:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232147AbjIOKs7 (ORCPT <rfc822;ruipengqi7@gmail.com> + 32 others); Fri, 15 Sep 2023 06:48:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjIOKs7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 15 Sep 2023 06:48:59 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 845ABC1 for <linux-kernel@vger.kernel.org>; Fri, 15 Sep 2023 03:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1694774933; x=1726310933; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=kOVTLNWDqfOVwrIwey7uiqf1pGWo1Bl1GlH5YpX1HbE=; b=UbXiAMJ05YkaFuo2KmAeR4vBljvuoW17qjYGmBmLWyPKBwMaYYiI83r2 iwsMxpxF3aJztaevlTtzm9P5ShTzutfWmsDo+4mFbP0uw1/hK9rHPCfVF NPFIBFCRnSO8Z+Cpt9cABquQMVt8EY8egQZ+KkXlR+an+zTj8bbEkAKlp IWcOVuWfrFBg4QYYe/AELzxrHQv3JmfAaJdIFgq4Wvk9eTAF8FEf9yK/w W8sG5/fM6h9S556yhu5WNUFRxw/58CtfgjKiv1ccHnoZUiwIEqZQ+s4y+ 4QsMfpsz7iaZ6S9HtG9UDx2dtvzdUGnssbXui6L+tofg8RyZXk1Z4QIc8 g==; X-CSE-ConnectionGUID: U0ykML+bTMil71KHYckU0A== X-CSE-MsgGUID: v+Z4ELqZQaGG6Gasb00Nng== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,148,1688454000"; d="scan'208";a="4711949" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 15 Sep 2023 03:48:52 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 15 Sep 2023 03:48:52 -0700 Received: from che-lt-i67131.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 15 Sep 2023 03:48:45 -0700 From: Manikandan Muralidharan <manikandan.m@microchip.com> To: <sam@ravnborg.org>, <bbrezillon@kernel.org>, <airlied@gmail.com>, <daniel@ffwll.ch>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <lee@kernel.org>, <dri-devel@lists.freedesktop.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> CC: <Hari.PrasathGE@microchip.com>, <Balamanikandan.Gunasundar@microchip.com>, <Durai.ManickamKR@microchip.com>, <Nayabbasha.Sayed@microchip.com>, <Dharma.B@microchip.com>, <Varshini.Rajendran@microchip.com>, <Balakrishnan.S@microchip.com>, Manikandan Muralidharan <manikandan.m@microchip.com> Subject: [PATCH v5 0/8] Add support for XLCDC to sam9x7 SoC family. Date: Fri, 15 Sep 2023 16:18:41 +0530 Message-ID: <20230915104849.187146-1-manikandan.m@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 03:49:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777121159220994092 X-GMAIL-MSGID: 1777121159220994092 |
Series |
Add support for XLCDC to sam9x7 SoC family.
|
|
Message
Manikandan Muralidharan
Sept. 15, 2023, 10:48 a.m. UTC
This patch series aims to add support for XLCDC IP of sam9x7 SoC family to the DRM subsystem.XLCDC IP has additional registers and new configuration bits compared to the existing register set of HLCDC IP. The new compatible string "microchip,sam9x75-xlcdc" is defined for sam9x75 variant of the sam9x7 SoC family.The is_xlcdc flag under driver data and IP specific driver ops helps to differentiate the XLCDC and existing HLCDC code within the same driver. changes in v5: * return value of regmap_read_poll_timeout is checked in failure case. * HLCDC and XLCDC specific driver functions are now invoked using its IP specific driver ops w/o the need of checking is_xlcdc flag. * Removed empty spaces and blank lines. changes in v4: * fixed kernel warnings reported by kernel test robot. changes in v3: * Removed de-referencing the value of is_xlcdc flag multiple times in a single function. * Removed cpu_relax() call when using regmap_read_poll_timeout. * Updated xfactor and yfactor equations using shift operators * Defined CSC co-efficients in an array for code readability. changes in v2: * Change the driver compatible name from "microchip,sam9x7-xlcdc" to "microchip,sam9x75-xlcdc". * Move is_xlcdc flag to driver data. * Remove unsed Macro definitions. * Add co-developed-bys tags * Replace regmap_read() with regmap_read_poll_timeout() call * Split code into two helpers for code readablitity. Durai Manickam KR (1): drm: atmel-hlcdc: Define SAM9X7 SoC XLCDC specific registers Manikandan Muralidharan (7): mfd: atmel-hlcdc: Add compatible for sam9x75 XLCD controller drm: atmel-hlcdc: add flag and driver ops to differentiate XLCDC and HLCDC IP drm: atmel-hlcdc: add LCD controller layer definition for sam9x75 drm: atmel_hlcdc: Add support for XLCDC in atmel LCD driver drm: atmel-hlcdc: add DPI mode support for XLCDC drm: atmel-hlcdc: add vertical and horizontal scaling support for XLCDC drm: atmel-hlcdc: add support for DSI output formats .../gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 176 +++++++-- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 125 +++++++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 114 ++++++ .../gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 337 +++++++++++++++--- drivers/mfd/atmel-hlcdc.c | 1 + include/linux/mfd/atmel-hlcdc.h | 10 + 6 files changed, 665 insertions(+), 98 deletions(-)