From nobody Wed Nov 27 13:36:56 2024 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 268531C2DBF for ; Thu, 10 Oct 2024 11:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728559125; cv=none; b=MvdvixUBoohsFRf4aIuh+gI+3e/agsDHCaIB+3w/Evo0V3LYEWqv2OQNTAzOAO0Too7ILqE+G9pPab/XIf3TeY1o+NGaa8cODPxTaRfjIgGJEJ1ecUTul2WCqppWY0lT3IKJCdV4+CFXc62SAIvJyt/4QNICvt1Jcm5UPu6J4/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728559125; c=relaxed/simple; bh=VSwZWlxz1VeNMQwWcnNYN0iIOcX5lra2nWwP/BRzkZc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:MIME-Version: Content-Type:References; b=qCgW5/wljZSH7W9CRpBWSOYsG6UkdWI8/Mh4QrKnHwE5u8tYZhtMf6Agh35m4qibakkzRoFhjTmt/m50NFA3UDH7o/4tF7I4DIER3ihi9jeBrh1dENoV/EfxWVY6vS2KwIkbyaMRwp335Aia6a6Wfucyp6JsUQ0iMstJDriLq8k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=rpyURC3Q; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="rpyURC3Q" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20241010111840epoutp049df70972191ab4a88ba2016c34939b8a~9E1y56pM80363503635epoutp04M for ; Thu, 10 Oct 2024 11:18:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20241010111840epoutp049df70972191ab4a88ba2016c34939b8a~9E1y56pM80363503635epoutp04M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1728559120; bh=jff9NSuMoS7Yqc0bLCDQyQa6uBRmIcSfMJ/0V7DhauA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rpyURC3QFlhlFxVTTD43XYoxhl9vVXl1xEiyw96EsP3bJZUhfIzFT1jI+gSBQG2pK oOixPra14gxzKfzsgbQkJLNzdCpvyfaPlk24dJb8IxM66V1KgTJdWUQ79LYdO56Ria 1RXpWp7sVm9/F38PgDDKWVeRgL/hPpyK403G3HFA= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20241010111840epcas2p18a960c6c543ea329b9ea718eee5d7f1d~9E1ySJvRs2326923269epcas2p1N; Thu, 10 Oct 2024 11:18:40 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.70]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4XPS1W58WLz4x9Ps; Thu, 10 Oct 2024 11:18:39 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id A8.17.09776.F08B7076; Thu, 10 Oct 2024 20:18:39 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20241010111839epcas2p10a4386f2097c8ec9bebe1df6832e15b1~9E1xcKXRh2327023270epcas2p1D; Thu, 10 Oct 2024 11:18:39 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241010111839epsmtrp1fa39588eaa4f241503f2661c99e67a55~9E1xbSP2u3121631216epsmtrp1Z; Thu, 10 Oct 2024 11:18:39 +0000 (GMT) X-AuditID: b6c32a47-aefff70000002630-38-6707b80f88b3 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id FE.FE.07371.F08B7076; Thu, 10 Oct 2024 20:18:39 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.55]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20241010111839epsmtip18769cef815600d2739a75d693b82d4cf~9E1xN-J6j1147711477epsmtip1b; Thu, 10 Oct 2024 11:18:39 +0000 (GMT) From: Taewan Kim To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Byoungtae Cho , Taewan Kim Subject: [PATCH v2 2/3] watchdog: s3c2410_wdt: add support for exynosautov920 SoC Date: Thu, 10 Oct 2024 20:18:06 +0900 Message-ID: <20241010111807.3635504-3-trunixs.kim@samsung.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241010111807.3635504-1-trunixs.kim@samsung.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 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLJsWRmVeSWpSXmKPExsWy7bCmmS7/DvZ0gy1LNSwezNvGZnH/Ux+T xZq955gs5h85x2rxctY9NotNj6+xWlzeNYfNYsb5fUwWN9btY7d4svAMk8X/PTvYL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T+frU2Ipzkg01GIuKk4EAIvroZL8AgAA X-CMS-MailID: 20241010111839epcas2p10a4386f2097c8ec9bebe1df6832e15b1 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241010111839epcas2p10a4386f2097c8ec9bebe1df6832e15b1 References: <20241010111807.3635504-1-trunixs.kim@samsung.com> From: Byoungtae Cho Adds the compatibles and drvdata for the ExynosAuto V920 SoC. This SoC is almost similar to ExynosAutoV9, but some CPU configurations are quite different, so it should be added. Plus it also support DBGACK like as GS101 SoC. Signed-off-by: Byoungtae Cho Signed-off-by: Taewan Kim --- drivers/watchdog/s3c2410_wdt.c | 37 +++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 686cf544d0ae..aa128099c47d 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -63,6 +63,10 @@ #define EXYNOS850_CLUSTER1_NONCPU_INT_EN 0x1644 #define EXYNOSAUTOV9_CLUSTER1_NONCPU_OUT 0x1520 #define EXYNOSAUTOV9_CLUSTER1_NONCPU_INT_EN 0x1544 +#define EXYNOSAUTOV920_CLUSTER0_NONCPU_OUT 0x1420 +#define EXYNOSAUTOV920_CLUSTER0_NONCPU_INT_EN 0x1444 +#define EXYNOSAUTOV920_CLUSTER1_NONCPU_OUT 0x1720 +#define EXYNOSAUTOV920_CLUSTER1_NONCPU_INT_EN 0x1744 =20 #define EXYNOS850_CLUSTER0_WDTRESET_BIT 24 #define EXYNOS850_CLUSTER1_WDTRESET_BIT 23 @@ -303,6 +307,32 @@ static const struct s3c2410_wdt_variant drv_data_gs101= _cl1 =3D { QUIRK_HAS_DBGACK_BIT, }; =20 +static const struct s3c2410_wdt_variant drv_data_exynosautov920_cl0 =3D { + .mask_reset_reg =3D EXYNOSAUTOV920_CLUSTER0_NONCPU_INT_EN, + .mask_bit =3D 2, + .mask_reset_inv =3D true, + .rst_stat_reg =3D EXYNOS5_RST_STAT_REG_OFFSET, + .rst_stat_bit =3D EXYNOSAUTOV9_CLUSTER0_WDTRESET_BIT, + .cnt_en_reg =3D EXYNOSAUTOV920_CLUSTER0_NONCPU_OUT, + .cnt_en_bit =3D 7, + .quirks =3D QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | + QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_CNT_EN | + QUIRK_HAS_DBGACK_BIT, +}; + +static const struct s3c2410_wdt_variant drv_data_exynosautov920_cl1 =3D { + .mask_reset_reg =3D EXYNOSAUTOV920_CLUSTER1_NONCPU_INT_EN, + .mask_bit =3D 2, + .mask_reset_inv =3D true, + .rst_stat_reg =3D EXYNOS5_RST_STAT_REG_OFFSET, + .rst_stat_bit =3D EXYNOSAUTOV9_CLUSTER1_WDTRESET_BIT, + .cnt_en_reg =3D EXYNOSAUTOV920_CLUSTER1_NONCPU_OUT, + .cnt_en_bit =3D 7, + .quirks =3D QUIRK_HAS_WTCLRINT_REG | QUIRK_HAS_PMU_MASK_RESET | + QUIRK_HAS_PMU_RST_STAT | QUIRK_HAS_PMU_CNT_EN | + QUIRK_HAS_DBGACK_BIT, +}; + static const struct of_device_id s3c2410_wdt_match[] =3D { { .compatible =3D "google,gs101-wdt", .data =3D &drv_data_gs101_cl0 }, @@ -320,6 +350,8 @@ static const struct of_device_id s3c2410_wdt_match[] = =3D { .data =3D &drv_data_exynos850_cl0 }, { .compatible =3D "samsung,exynosautov9-wdt", .data =3D &drv_data_exynosautov9_cl0 }, + { .compatible =3D "samsung,exynosautov920-wdt", + .data =3D &drv_data_exynosautov920_cl0 }, {}, }; MODULE_DEVICE_TABLE(of, s3c2410_wdt_match); @@ -643,7 +675,8 @@ s3c2410_get_wdt_drv_data(struct platform_device *pdev, = struct s3c2410_wdt *wdt) /* Choose Exynos850/ExynosAutov9 driver data w.r.t. cluster index */ if (variant =3D=3D &drv_data_exynos850_cl0 || variant =3D=3D &drv_data_exynosautov9_cl0 || - variant =3D=3D &drv_data_gs101_cl0) { + variant =3D=3D &drv_data_gs101_cl0 || + variant =3D=3D &drv_data_exynosautov920_cl0) { u32 index; int err; =20 @@ -662,6 +695,8 @@ s3c2410_get_wdt_drv_data(struct platform_device *pdev, = struct s3c2410_wdt *wdt) variant =3D &drv_data_exynosautov9_cl1; else if (variant =3D=3D &drv_data_gs101_cl0) variant =3D &drv_data_gs101_cl1; + else if (variant =3D=3D &drv_data_exynosautov920_cl0) + variant =3D &drv_data_exynosautov920_cl1; break; default: return dev_err_probe(dev, -EINVAL, "wrong cluster index: %u\n", index); --=20 2.46.0