From nobody Fri Oct 3 15:35:50 2025 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (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 1BD7C31E114 for ; Fri, 29 Aug 2025 13:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756475833; cv=none; b=gRV4rTEinKWL3n2JhIYAANiTT0kS+o1U6cYBFvAYmFU0D4mL12ljPwqydV6cXUM1CQjupOWH84K5Suf4DV0dPDl2rILQkJ7v6qBx2eJS461XXVRDI3gQ7DkT4pILtspiLZF6mV6koVPzfCbKyKQeOXrO2UOoSujct1etpL5b9/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756475833; c=relaxed/simple; bh=vFyDBnfP53DD4DU5Rcby9ynhNajWyoGdaF1Ez5xb7KM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:MIME-Version: Content-Type:References; b=RCbA3Xd1Gxia4DslKRPGDGbXnkyyhHRCR0n6p2Ij68HXLAhEAvib+m3Sp/7hUjA0G+4NWzlPSCsBro8UdJF//GFL+va1POUdp6c8EDYLPIt1makYiSS4WJcM6FQvcS1CwallCEnIBlCUzsaOBhkIYdmRRRCKz4SPlQIyjhNBDew= 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=QHymAVN5; arc=none smtp.client-ip=203.254.224.25 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="QHymAVN5" Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20250829135710epoutp02cb660703b723920ccce35008fe175423~gQXYg3NX52867728677epoutp02J for ; Fri, 29 Aug 2025 13:57:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20250829135710epoutp02cb660703b723920ccce35008fe175423~gQXYg3NX52867728677epoutp02J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1756475830; bh=zsNJV5XBOk2XFH4BrVvHECkoQB0m4MGPZolqolvJYUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QHymAVN5MXFJx36XUG0nkx5WaCqHP3o9HFl7EiZIbfgAVN9es+/q00yxYPY2HpzjA ECK1Hl51NW2+S6I80Wx7AisXwVB3jOd68XSIlyISflyjfFwmH5+Eln6N6NFEFc0UT+ wruBwzN9SiNf8lxj87cWtNzNqV3JzrJualkreoaM= Received: from epsnrtp04.localdomain (unknown [182.195.42.156]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPS id 20250829135709epcas5p23ba392fdce0bc20be5002ea41052af04~gQXX6jm0w1958719587epcas5p2e; Fri, 29 Aug 2025 13:57:09 +0000 (GMT) Received: from epcas5p3.samsung.com (unknown [182.195.38.92]) by epsnrtp04.localdomain (Postfix) with ESMTP id 4cD0FJ70Gjz6B9m5; Fri, 29 Aug 2025 13:57:08 +0000 (GMT) Received: from epsmtip2.samsung.com (unknown [182.195.34.31]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20250829135708epcas5p1b62d44f8a712b1c865fd82d26e89896f~gQXWnylAw0508305083epcas5p1J; Fri, 29 Aug 2025 13:57:08 +0000 (GMT) Received: from cheetah.samsungds.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20250829135706epsmtip25ca5f73ca9f7b0fde2d6f80c634f7b01~gQXVB7a6l1416014160epsmtip23; Fri, 29 Aug 2025 13:57:06 +0000 (GMT) From: Varada Pavani To: krzk@kernel.org, s.nawrocki@samsung.com, cw00.choi@samsung.com, alim.akhtar@samsung.com, mturquette@baylibre.com, sboyd@kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: aswani.reddy@samsung.com, gost.dev@samsung.com, Varada Pavani Subject: [PATCH 2/2] arm64: dts: fsd: Fix Clock handle for WDT Date: Fri, 29 Aug 2025 19:26:43 +0530 Message-ID: <20250829135643.105406-3-v.pavani@samsung.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250829135643.105406-1-v.pavani@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-CMS-MailID: 20250829135708epcas5p1b62d44f8a712b1c865fd82d26e89896f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P cpgsPolicy: CPGSC10-541,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20250829135708epcas5p1b62d44f8a712b1c865fd82d26e89896f References: <20250829135643.105406-1-v.pavani@samsung.com> FSD SoC WDT has few changes when compared to exynos7 interms of Clocks, PMU register bits for each cluster. So use "tesla,fsd-wdt" compatibility for using correct driver data. FSD supports 2 Clocks for WDT (PCLK and CLK). - use fin_pll source Clock for all timer related calculations. - use bus Clock (IMEM_WDT0_IPCLKPORT_PCLK) to gate/ungate the register interface. Update both as per WDT UM. Signed-off-by: Varada Pavani --- arch/arm64/boot/dts/tesla/fsd.dtsi | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla= /fsd.dtsi index 690b4ed9c29b..ff031a630f10 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -624,30 +624,36 @@ pmu_system_controller: system-controller@11400000 { }; =20 watchdog_0: watchdog@100a0000 { - compatible =3D "tesla,fsd-wdt", "samsung,exynos7-wdt"; + compatible =3D "tesla,fsd-wdt"; reg =3D <0x0 0x100a0000 0x0 0x100>; interrupts =3D ; samsung,syscon-phandle =3D <&pmu_system_controller>; - clocks =3D <&fin_pll>; - clock-names =3D "watchdog"; + clocks =3D <&clock_imem IMEM_WDT0_IPCLKPORT_PCLK>, + <&fin_pll>; + clock-names =3D "watchdog", "watchdog_src"; + samsung,cluster-index =3D <0>; }; =20 watchdog_1: watchdog@100b0000 { - compatible =3D "tesla,fsd-wdt", "samsung,exynos7-wdt"; + compatible =3D "tesla,fsd-wdt"; reg =3D <0x0 0x100b0000 0x0 0x100>; interrupts =3D ; samsung,syscon-phandle =3D <&pmu_system_controller>; - clocks =3D <&fin_pll>; - clock-names =3D "watchdog"; + clocks =3D <&clock_imem IMEM_WDT1_IPCLKPORT_PCLK>, + <&fin_pll>; + clock-names =3D "watchdog", "watchdog_src"; + samsung,cluster-index =3D <1>; }; =20 watchdog_2: watchdog@100c0000 { - compatible =3D "tesla,fsd-wdt", "samsung,exynos7-wdt"; + compatible =3D "tesla,fsd-wdt"; reg =3D <0x0 0x100c0000 0x0 0x100>; interrupts =3D ; samsung,syscon-phandle =3D <&pmu_system_controller>; - clocks =3D <&fin_pll>; - clock-names =3D "watchdog"; + clocks =3D <&clock_imem IMEM_WDT2_IPCLKPORT_PCLK>, + <&fin_pll>; + clock-names =3D "watchdog", "watchdog_src"; + samsung,cluster-index =3D <2>; }; =20 pwm_0: pwm@14100000 { --=20 2.49.0