From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 219E53C415C; Tue, 12 May 2026 15:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778600644; cv=none; b=cZMIiNt4BQYcIGgr7naSc8HJ88ou0+F3IcYSYhNnQ0do6QEVnX+HlQX6ktENCm4ViPp/cE81Q6Cm3SRqBlxRhW9pcebgfMx9nojnayo/jMrRMv3jBpXPJI90bdFcjEwFG5DBSiAwuan0GGc/ObNp5X8mGuQAyoL3IlVvyKBvaE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778600644; c=relaxed/simple; bh=w8nsmoBvI5Nekh0BFmQzq54RK2uOMPbGBgKqBFyL42o=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ug8VX3H/NBv5TArLGyiqmVfRWEu6HfRBbFIhtu9OoYxc76GAzyofvZhzvDpNdLlF3NylWT4bmONnUBOHbvdd1rJLo8MtzAVpfPO8nOmEGZ9BEYBk3gFyCb117KQdqbxnRy5wUlGbCy53Od00Vi8qgnZ9GUxx7atDhQPpWzxuy5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=BY9AypQy; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="BY9AypQy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1778600644; x=1810136644; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w8nsmoBvI5Nekh0BFmQzq54RK2uOMPbGBgKqBFyL42o=; b=BY9AypQymnGocYmGyusb09QNbqGCX1YDwngpOFJ6OVZ0WZySii0Yi5rW DieuxTdf5AY0ei72QR29OhJ4dpkAssYolSyNJoqQ3Tnp5HSaop6WMJ40P MnNoC+WOpjZBnf8TXaluYYflsK1yWCpSesGVCtNRCP93HlTtk8eCyaRYh 8Sw8Rmmlsnneyuk5xuk9aMvc/BbHCQ8a5/6IdN8sTmr9EipmEhc0Z7aER d6n6YCQoAuuzyTaCXvLi3q760a+0EWTJ6dfvKRxkUrSfaQGJe0VYhL6G7 CgtiHOo3bNsAwdq/bs16rH4RaI+Q0yWz23yLiKnp5HiBLnGKxgT8END/+ g==; X-CSE-ConnectionGUID: zMjq2GC+Sk+xobAr1B/09A== X-CSE-MsgGUID: jpnBOucYS7SjGmq2CErA/A== X-IronPort-AV: E=Sophos;i="6.23,231,1770620400"; d="scan'208";a="288760449" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 12 May 2026 08:44:03 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Tue, 12 May 2026 08:44:02 -0700 Received: from che-ll-i71840.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.58 via Frontend Transport; Tue, 12 May 2026 08:43:59 -0700 From: Balakrishnan Sambath To: CC: , , , , , "Balamanikandan Gunasundar" Subject: [PATCH v2 06/15] media: microchip-isc: set SAM9X7 maximum resolution to 2560x1920 Date: Tue, 12 May 2026 21:13:30 +0530 Message-ID: <20260512154339.210444-7-balakrishnan.s@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260512154339.210444-1-balakrishnan.s@microchip.com> References: <20251009155251.102472-1-balamanikandan.gunasundar@microchip.com> <20260512154339.210444-1-balakrishnan.s@microchip.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain SAM9X7 XISC uses the same image processing pipeline as SAMA7G5 but has a smaller internal line buffer. The reduced RAM constrains the maximum horizontal resolution to 2560 pixels (compared to 3264 on SAMA7G5), resulting in a maximum capture resolution of 2560x1920. Signed-off-by: Balamanikandan Gunasundar Signed-off-by: Balakrishnan Sambath --- .../media/platform/microchip/microchip-sama7g5-isc.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/microchip/microchip-sama7g5-isc.c b/dri= vers/media/platform/microchip/microchip-sama7g5-isc.c index ca23e8adecbd..4119cfe12cdf 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -55,6 +55,9 @@ #define ISC_SAMA7G5_MAX_SUPPORT_WIDTH 3264 #define ISC_SAMA7G5_MAX_SUPPORT_HEIGHT 2464 =20 +#define ISC_SAM9X7_MAX_SUPPORT_WIDTH 2560 +#define ISC_SAM9X7_MAX_SUPPORT_HEIGHT 1920 + #define ISC_SAMA7G5_PIPELINE \ (WB_ENABLE | CFA_ENABLE | CC_ENABLE | GAM_ENABLES | CSC_ENABLE | \ CBC_ENABLE | SUB422_ENABLE | SUB420_ENABLE) @@ -432,8 +435,13 @@ static int microchip_xisc_probe(struct platform_device= *pdev) isc->gamma_table =3D isc_sama7g5_gamma_table; isc->gamma_max =3D 0; =20 - isc->max_width =3D ISC_SAMA7G5_MAX_SUPPORT_WIDTH; - isc->max_height =3D ISC_SAMA7G5_MAX_SUPPORT_HEIGHT; + if (of_machine_is_compatible("microchip,sam9x7")) { + isc->max_width =3D ISC_SAM9X7_MAX_SUPPORT_WIDTH; + isc->max_height =3D ISC_SAM9X7_MAX_SUPPORT_HEIGHT; + } else { + isc->max_width =3D ISC_SAMA7G5_MAX_SUPPORT_WIDTH; + isc->max_height =3D ISC_SAMA7G5_MAX_SUPPORT_HEIGHT; + } =20 isc->config_dpc =3D isc_sama7g5_config_dpc; isc->config_csc =3D isc_sama7g5_config_csc; --=20 2.34.1