Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4585267rdb; Fri, 15 Sep 2023 06:46:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJ2ds8YHs/5uM6uon4BnVxt6Iw1j0EldoFFXMJh4i0hLZrZifRTp8wZIFYp45p8g20T8so X-Received: by 2002:a17:902:c1c4:b0:1c3:6724:db6f with SMTP id c4-20020a170902c1c400b001c36724db6fmr1642803plc.29.1694785560151; Fri, 15 Sep 2023 06:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694785560; cv=none; d=google.com; s=arc-20160816; b=ExzdMybu2GYMN276BhPCapizTMLzkq6/VfjaqJtzTIAatkIzeFw05idfAPJjwYe4Bp 3CbSVrjLPYGfUel54b4cDITKb87GjJOSbnvf3FcFA0CaMPrjyKuswLK7rCSeHnvS/3j8 +jdil0Yt99UcxNu5PyffdHVfk+pYLhURFjlaIqaGh8+ygSW//ZRGgFCeL5puNIbX1EiQ d+0NRXfirB2zIN0snRP/Y+85zsjR7Pozmh2y3ycQWHjRXSSJE4PYoGvjQqJbYpF5L4yH NnB1OKMKklOdzv4pjQhjkqpSqYNAKJDgWUj0N+fA5Y8J+93ouV0+VayBWk+xGnblR1KZ x6QQ== 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e20-20020a170902f1d400b001bb377f8c8bsi3305290plc.2.2023.09.15.06.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 06:46:00 -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 B8642858CA0E; Fri, 15 Sep 2023 03:48:57 -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 S231841AbjIOKs7 (ORCPT + 99 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 ); 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 ; 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 To: , , , , , , , , , CC: , , , , , , , Manikandan Muralidharan 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: 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:48:57 -0700 (PDT) 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(-) -- 2.25.1