From nobody Mon Feb 9 08:55:54 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 BC130202960; Thu, 9 Oct 2025 15:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760025248; cv=none; b=kVkPbd6CRdx9S0AwxgvwAG4VjX4/UCnJiVpY8UEN3Qk/l0SDKA8rrVixlmaCs/or58KKAWnzHO5DaTwziH1n6zfmqQvm9gbdyEIowkZ+VgloLmj13EnO3Uj0be3JUyJ2JD90WZI76UZQjPZxz/Qq3XyJpAXL1y5/IHBpVaw2ihU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760025248; c=relaxed/simple; bh=eZRfFP4QYpbbBFwWWF7KOqKZTWGgp1G+7gJDqrkniAw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=l9XpMJINYKXONNwFFdKU75mgi26Ghfkcm+s53zwS7rO2GSnTkBe0VSqvhgDYTS5skbtAu5qgP0pjlg9T7Sfll8T0sFphtM0FCrdOnvIJ32yPaV0KzIc2p/RpnesY1O6VsZEU9NrUFHSqhroUpEgokRMfJ4Royu+wZs6lkadWQ5A= 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=LNt5+rab; arc=none smtp.client-ip=68.232.154.123 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="LNt5+rab" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1760025247; x=1791561247; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eZRfFP4QYpbbBFwWWF7KOqKZTWGgp1G+7gJDqrkniAw=; b=LNt5+rabejsez8qkWiClBvorERRk8DYu/2BIFeN//DkWHW+cvpgwiV7M jv0ItISn34KPbXQFGvqMFpGTyrofHJhH29+CLCEvudKW5vlWPeR5gwpos uoTCYwunKwjVYTyxj3WwVVjqDwe8ncKeAeJX+9dAT6jA8T9nDmmhCLCAv hdc6xxt7L6/8Cb91KyASaZU88jB1ZM+Mt4ypXvu6cgu4PGw2DEvBdU4gu wERCHu8UbbCeUCUMMJK1SSuYH86DmjrEq4+SOcMeAYQJbZx1ST0BX8v7A 6lzn9zYxieVQCBzc1E4tyK/rvbjsipyR+gJ3TzKJKT25OZu8ePDdBi2mR Q==; X-CSE-ConnectionGUID: cxE1NKlcTy6ijIhpLPFRrQ== X-CSE-MsgGUID: X+w3SBkHT/uckuP5ZIYqvQ== X-IronPort-AV: E=Sophos;i="6.19,216,1754982000"; d="scan'208";a="48057846" 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/ECDHE-RSA-AES128-GCM-SHA256; 09 Oct 2025 08:53:58 -0700 Received: from chn-vm-ex1.mchp-main.com (10.10.87.30) 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.58; Thu, 9 Oct 2025 08:53:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.87.71) by chn-vm-ex1.mchp-main.com (10.10.87.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.20; Thu, 9 Oct 2025 08:53:27 -0700 Received: from che-lt-i64410lx.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 9 Oct 2025 08:53:20 -0700 From: Balamanikandan Gunasundar To: Mauro Carvalho Chehab CC: Eugen Hristev , Chas Williams <3chas3@gmail.com>, Nicolas Ferre , "Alexandre Belloni" , Claudiu Beznea , Balakrishnan Sambath , Hans Verkuil , "Ricardo Ribalda" , Laurent Pinchart , Jacopo Mondi , Daniel Scally , Tomi Valkeinen , , , , , , Balamanikandan Gunasundar Subject: [PATCH 01/18] media: platform: microchip: set maximum resolution for sam9x7 Date: Thu, 9 Oct 2025 21:22:34 +0530 Message-ID: <20251009155251.102472-2-balamanikandan.gunasundar@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251009155251.102472-1-balamanikandan.gunasundar@microchip.com> References: <20251009155251.102472-1-balamanikandan.gunasundar@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The maximum resolution for sam9x7 is 2560x1920. And its is 3264x2464 for sama7g5. Signed-off-by: Balamanikandan Gunasundar --- .../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 b0302dfc3278..36c3f4ba1962 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