From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77808C3DA6F for ; Fri, 25 Aug 2023 12:55:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244922AbjHYMzH (ORCPT ); Fri, 25 Aug 2023 08:55:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245003AbjHYMy7 (ORCPT ); Fri, 25 Aug 2023 08:54:59 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF677D3 for ; Fri, 25 Aug 2023 05:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1692968097; x=1724504097; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=NSqywDBQmry/O2F+Q7Z+GTt+CHOanuDgRFm/QiNttrY=; b=SUqTMv6Gs8R7ksO9UipliJDbjmcNLzLksWe/mwxBRJ2MPxV12NFzIMSa gNBG/4XtdIN37nbiDz9VSDdhfvdIbmgEZykq4LpcD8rz1NEevqKLKAFLJ aua1IuNyB3IGBE1wGZuzdQF5NDZBbvQPsusFwOn+k6kpJY7T9/cd0GM0X 23LeS7hSmFgZlDRqO4O1LQK2u3YWYoekBzeUuYRC6DESthCJ9q2PmgBBh A2qzaZ32JrJd+AHcebDT89ulLbDXbttGReOmnca3acR4Cgkny+Ghed6CS OaJlMeQvMw4HzTJ8Wyw64b+DsftKlonRuZAjXhcpuE9vRPCXBrEbXStAN A==; X-IronPort-AV: E=Sophos;i="6.02,195,1688454000"; d="scan'208";a="1277874" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Aug 2023 05:54:57 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 25 Aug 2023 05:54:54 -0700 Received: from che-lt-i67131.amer.actel.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 25 Aug 2023 05:54:48 -0700 From: Manikandan Muralidharan To: , , , , , , , , , CC: , , , , , , , Manikandan Muralidharan Subject: [PATCH v4 0/8] Add support for XLCDC to sam9x7 SoC family. Date: Fri, 25 Aug 2023 18:24:36 +0530 Message-ID: <20230825125444.93222-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 helps to differentiate the XLCDC and existing HLCDC code within the same driver. 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 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 | 168 +++++++-- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 99 +++++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 48 +++ .../gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 353 +++++++++++++++--- drivers/mfd/atmel-hlcdc.c | 1 + include/linux/mfd/atmel-hlcdc.h | 10 + 6 files changed, 584 insertions(+), 95 deletions(-) -- 2.25.1