From nobody Tue Nov 26 09:50:52 2024 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (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 970051CF7DE for ; Mon, 21 Oct 2024 06:39:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729492784; cv=none; b=SrsU0Xz0Nk8NAMcRkzbQ39R7c8Hqz+H1gwOdPE7a6ZB7Juhci3bcxAGSTqMO9s02bXu1uwl2/Q9HcitxcQ3xuO/L0WuaqvbeCO5hmMZSw748wea+zU611MwfMRdrEFE1jeDIA4z1JiXGPZ6YqziFu1NzpX5udkXClqT73MfiEDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729492784; c=relaxed/simple; bh=yP63p3olM6y48xBFe7ix+AC1xOfxPYOA0crl2Zz54lM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:MIME-Version: Content-Type:References; b=CoT4UD28/vwz2sQo+AdxsPRcy3s2JPOURgUeULBFFzf0/8A3NHsbHj2dWUF9oHvIfIV2LUi/5OcsrSA0EWfASr9hetbl0Uf10Nj5l9PKNP599jX4u2RE02Ze4jyg2kaKcA1AtO/YeLsxfgGkXvpgOplEmJvx/iZFJyqTGSH7oZs= 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=fdMzb7Z/; arc=none smtp.client-ip=203.254.224.24 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="fdMzb7Z/" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20241021063939epoutp01b08685622d8f3a1b92075094722eb5ba~AZIUWHd792237122371epoutp01v for ; Mon, 21 Oct 2024 06:39:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20241021063939epoutp01b08685622d8f3a1b92075094722eb5ba~AZIUWHd792237122371epoutp01v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1729492779; bh=y1rVAAUbL4XZfrYkt5r90v9JFxYMUZqPCTcgm/yJbCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fdMzb7Z/l70wqGdlAjIsM/uBh/g7TMZMhzVCsycqFwfgKZR2aNf/FpX2jJrvjZsz4 T8OHdZJhaPBEu6hRaMc1g/MSKyuQoZYym8T8TvebrZ6IQGYQt/X/zyJiuaZqk2BpDD GpcUCc4IDAVSl1gM+A9IewXV4CBR8nK3pBty5vFI= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20241021063939epcas2p253d4fd6e3af9b6310857b0d4cb72570a~AZIT3Hiyh2063720637epcas2p29; Mon, 21 Oct 2024 06:39:39 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.68]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4XX5JV3X2Tz4x9QD; Mon, 21 Oct 2024 06:39:38 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id DC.57.09770.A27F5176; Mon, 21 Oct 2024 15:39:38 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20241021063938epcas2p22e0a9f4f869237ceadf4f2035778bfc7~AZIS4FlqH2063720637epcas2p24; Mon, 21 Oct 2024 06:39:38 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241021063938epsmtrp1eaa5da4c43b8b32e0b92f7a621cf634a~AZIS3NkOs1158811588epsmtrp1T; Mon, 21 Oct 2024 06:39:38 +0000 (GMT) X-AuditID: b6c32a46-00dfa7000000262a-11-6715f72a8699 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 28.99.08229.927F5176; Mon, 21 Oct 2024 15:39:37 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.55]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241021063937epsmtip261c9eb531f2414339874f3626022d22d~AZISoWHWN1927319273epsmtip2V; Mon, 21 Oct 2024 06:39:37 +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 , Krzysztof Kozlowski Subject: [PATCH v3 2/3] watchdog: s3c2410_wdt: add support for exynosautov920 SoC Date: Mon, 21 Oct 2024 15:39:02 +0900 Message-ID: <20241021063903.793166-3-trunixs.kim@samsung.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241021063903.793166-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+NgFtrBJsWRmVeSWpSXmKPExsWy7bCmua7Wd9F0g/W7pS0ezNvGZnH/Ux+T xZq955gs5h85x2rxctY9Nou9r7eyW2x6fI3V4vKu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kj3Ox986mQUrvXlzRlH0 F1sqp+WONbf9b4a4aD5XX9w74dTs73nt+mYy7+wElFiKMxINtZiLihMBSIxYWgcDAAA= X-CMS-MailID: 20241021063938epcas2p22e0a9f4f869237ceadf4f2035778bfc7 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: 20241021063938epcas2p22e0a9f4f869237ceadf4f2035778bfc7 References: <20241021063903.793166-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 Reviewed-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- 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.47.0