From patchwork Wed Jul 12 02:40:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikandan Muralidharan X-Patchwork-Id: 13309525 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54C00EB64DC for ; Wed, 12 Jul 2023 02:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yMqpEaKVpf8VzymzfcQeWCiA6njp46BK8cZjbbk3wY0=; b=qZAvReX0znrBik V/B6ZfYv4oVYSLr129jchndGV4Lso2FNmD8bRnSpo5poLCBIO70jutwI5wX21MxS2uXGPrVJyu/fm /hlrysI2eZPcTF3tWza5LqSyaHGX/iS2SFv0A/CVEyrtFOgtiyhcQNfDUYWyCc5Vs0hiy9Fkk8fyy 0lhWktgDhRr+8LZLNkOs4srnf2+dVp4YpQFXTS6R+HPb9yn8CWKALKw7prTsiaql7xfCPn8PIFvg6 ymb7+uLnlUlOae1yGYaEpHKdyH//He6Rxnv9O7jg7W93uKciQUnoKjUtygFKEcOb1qLr4aoe+pTow 2wIOwc6nzrOCaPh7SKUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJPmT-00GHPY-1a; Wed, 12 Jul 2023 02:40:41 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJPmQ-00GHOm-1N for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 02:40:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1689129638; x=1720665638; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=UQ+Ty7QCLmzuZeUmH8ApBFkuw242Jg4ATJz0g4JujM4=; b=f8kGzDZO/6irbvZ7ieUsBJlSK6rTLnNtDLGwrlKEkCAKsWyjoJGzHJnC IqG0Ya4Qcf14Vs0uSEdv/iKJ5c0mnMLMYx7dmQ0mT/dJKxftDR51q42Nf Wxtnk4QTxjXExxIXV18MUYputqCStHrqNBe3AGgCpil+2JaQb2tsupp4e AwNOBoASn+//hs4RPshjUuea/b3Tgwcshcqwazvvkq/+Nujc5bYTK3sx2 SiDVmdKzKKOC4ACyZGXoF0BeecP0rOQuYrmY7on1qk8rQJ2DLQvZfelBh CxPd/7KkX3R20dKOyMMDIppS9FHuMwi5E8c+gRsdyvON0FGmRBUP4rcpc g==; X-IronPort-AV: E=Sophos;i="6.01,198,1684825200"; d="scan'208";a="234987599" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Jul 2023 19:40:36 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 11 Jul 2023 19:40:36 -0700 Received: from che-lt-i67131.amer.actel.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Tue, 11 Jul 2023 19:40:27 -0700 From: Manikandan Muralidharan To: , , , , , , , , , , , , , , CC: , , , , , , , Manikandan Muralidharan Subject: [PATCH v2 0/9] Add support for XLCDC to sam9x7 SoC family. Date: Wed, 12 Jul 2023 08:10:08 +0530 Message-ID: <20230712024017.218921-1-manikandan.m@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230711_194038_590336_746F118F X-CRM114-Status: GOOD ( 11.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 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 (8): dt-bindings: mfd: Add bindings for SAM9X75 LCD controller 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 .../devicetree/bindings/mfd/atmel-hlcdc.txt | 1 + .../gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 171 +++++++-- 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 | 357 +++++++++++++++--- drivers/mfd/atmel-hlcdc.c | 1 + include/linux/mfd/atmel-hlcdc.h | 10 + 7 files changed, 596 insertions(+), 91 deletions(-)