From patchwork Fri Jul 5 02:11:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunyeal Hong X-Patchwork-Id: 13724335 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 E9BEF175BE for ; Fri, 5 Jul 2024 02:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720145537; cv=none; b=CBSwnU8kMcSsMWfYzWtOm2PcWr5NItmDE4Yzw/ecguR08O72gFGESwy+EhkLeczGBA1JQESb8JuKNmoYg2Hafx6Ib+ji/C/OT1eLSx1Xywu/EjyXzraxJaQaJzgmAuq2cjbN6IoE5oZan/jpBlNJOPQ0pkBduEHqT6xhMfyQXvg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720145537; c=relaxed/simple; bh=evqOhEHE2upptAD7WRmbvkcFMuEpd4kQoDphWFl55Jo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:MIME-Version: Content-Type:References; b=aSsaOHpJFk+4DIANm5c+xDf33lHFTCPV1ixUGBO0S78sRr+kbAfLjBNEoJVHETGEc/Cpnk3H5lzTuniOK+0UIJtObDaWOxrQluhW8TYtmirKiwN78dMPCX67K7ZZaHxrs1GyVqsVlKAW9irkXZzMQ4wtvIAXNxAVD2QztzOUhlc= 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=BKk95aff; arc=none smtp.client-ip=203.254.224.33 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="BKk95aff" Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240705021214epoutp03f847aa81e6109acf32bf8d7f21cc4821~fLz-vhROT2173421734epoutp03u for ; Fri, 5 Jul 2024 02:12:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240705021214epoutp03f847aa81e6109acf32bf8d7f21cc4821~fLz-vhROT2173421734epoutp03u DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1720145534; bh=XVFZe/RlTfZ0gA3EWGc+8QPGSV5E3YUOmcVLqN695DE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BKk95affS2SvBJt2LCqhsybAFCpCRauSnUImwAC5wI9B1BzFISx24lQJZYqBU5er+ kHadKTazlpXgCWQTd4C7CrBnKm8tWJ7cFGmTFU6e/cTdm/QAx15khW48xZJm1kWO5V LVB/0p5bVAM3k5jUVrEVMUmXRfxEA+eRTUq62Hno= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20240705021213epcas2p1ba53f91bba7521f9ba4ec70b3d945773~fLz__q9qV2928729287epcas2p1h; Fri, 5 Jul 2024 02:12:13 +0000 (GMT) Received: from epsmgec2p1.samsung.com (unknown [182.195.36.101]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4WFcTm6N3Rz4x9QD; Fri, 5 Jul 2024 02:12:12 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmgec2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 09.51.56241.C7657866; Fri, 5 Jul 2024 11:12:12 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20240705021212epcas2p169cdc84203e007c7a25bb53f41fc61a0~fLz9_0jrB2928729287epcas2p1a; Fri, 5 Jul 2024 02:12:12 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240705021212epsmtrp2d463b6665f78ea6a8d670c4300094093~fLz9_DbLg0904509045epsmtrp2N; Fri, 5 Jul 2024 02:12:12 +0000 (GMT) X-AuditID: b6c32a43-c03fd7000000dbb1-e7-6687567c2f68 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 49.39.19057.C7657866; Fri, 5 Jul 2024 11:12:12 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.60]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240705021212epsmtip268c0403006fd31fb69ccec8b5ce921a4~fLz9zMVTQ0030900309epsmtip28; Fri, 5 Jul 2024 02:12:12 +0000 (GMT) From: Sunyeal Hong To: Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Michael Turquette , Stephen Boyd Cc: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Sunyeal Hong Subject: [PATCH 3/5] arm64: dts: exynos: add initial CMU clock nodes in Exynos Auto v920 Date: Fri, 5 Jul 2024 11:11:08 +0900 Message-ID: <20240705021110.2495344-4-sunyeal.hong@samsung.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240705021110.2495344-1-sunyeal.hong@samsung.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGJsWRmVeSWpSXmKPExsWy7bCmqW5NWHuawcR5BhYP5m1js7j+5Tmr xfnzG9gtPvbcY7W4vGsOm8WM8/u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X-CMS-MailID: 20240705021212epcas2p169cdc84203e007c7a25bb53f41fc61a0 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240705021212epcas2p169cdc84203e007c7a25bb53f41fc61a0 References: <20240705021110.2495344-1-sunyeal.hong@samsung.com> Add cmu_top, cmu_peric0 clock nodes and switch USI clocks instead of dummy fixed-rate-clock. Signed-off-by: Sunyeal Hong --- .../arm64/boot/dts/exynos/exynosautov920.dtsi | 40 +++++++++++++------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynosautov920.dtsi b/arch/arm64/boot/dts/exynos/exynosautov920.dtsi index c1c8566d74f5..1659c0a375c9 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov920.dtsi +++ b/arch/arm64/boot/dts/exynos/exynosautov920.dtsi @@ -6,6 +6,7 @@ * */ +#include #include #include @@ -38,17 +39,6 @@ xtcxo: clock { clock-output-names = "oscclk"; }; - /* - * FIXME: Keep the stub clock for serial driver, until proper clock - * driver is implemented. - */ - clock_usi: clock-usi { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <200000000>; - clock-output-names = "usi"; - }; - cpus: cpus { #address-cells = <2>; #size-cells = <0>; @@ -182,6 +172,28 @@ chipid@10000000 { reg = <0x10000000 0x24>; }; + cmu_peric0: clock-controller@10800000 { + compatible = "samsung,exynosautov920-cmu-peric0"; + reg = <0x10800000 0x8000>; + #clock-cells = <1>; + + clocks = <&xtcxo>, + <&cmu_top DOUT_CLKCMU_PERIC0_NOC>, + <&cmu_top DOUT_CLKCMU_PERIC0_IP>; + clock-names = "oscclk", + "dout_clkcmu_peric0_noc", + "dout_clkcmu_peric0_ip"; + }; + + cmu_top: clock-controller@11000000 { + compatible = "samsung,exynosautov920-cmu-top"; + reg = <0x11000000 0x8000>; + #clock-cells = <1>; + + clocks = <&xtcxo>; + clock-names = "oscclk"; + }; + gic: interrupt-controller@10400000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; @@ -213,7 +225,8 @@ usi_0: usi@108800c0 { #address-cells = <1>; #size-cells = <1>; ranges; - clocks = <&clock_usi>, <&clock_usi>; + clocks = <&cmu_peric0 CLK_DOUT_PERIC0_USI00_USI>, + <&cmu_peric0 CLK_MOUT_PERIC0_NOC_USER>; clock-names = "pclk", "ipclk"; status = "disabled"; @@ -224,7 +237,8 @@ serial_0: serial@10880000 { interrupts = ; pinctrl-names = "default"; pinctrl-0 = <&uart0_bus>; - clocks = <&clock_usi>, <&clock_usi>; + clocks = <&cmu_peric0 CLK_MOUT_PERIC0_NOC_USER>, + <&cmu_peric0 CLK_DOUT_PERIC0_USI00_USI>; clock-names = "uart", "clk_uart_baud0"; samsung,uart-fifosize = <256>; status = "disabled";