From patchwork Tue Jul 30 07:12:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunyeal Hong X-Patchwork-Id: 13746790 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 D3F0B19007C for ; Tue, 30 Jul 2024 07:12:35 +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=1722323557; cv=none; b=EHj6GKiKJElyAMIWLJRguRMBAQnzRTINJDJhpaXOJFxIyDcikpGGIYzw9Du8Qtl77uVKawSiXUq9KiIygc0lD0rgcJbNSExuSg9YtboDifJmLlmmrPzvIEc8gkbNyETjFEGtp+iXOylzZnd4SjB2Zg3Vr/IH1Kt592Xhp9rwG0g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722323557; c=relaxed/simple; bh=AkyWJ9I6Hd2zktck1kauTocadzukvCDLU9FEN2IAB8E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:MIME-Version: Content-Type:References; b=J7vQy+XF6BItMMs4M2NEK4w4GL778oQyXvgr5+3tDk8KkMGdv9FaxrrMbWIWVZEGRR9KeKHog6X9vK+lp20BJLY95XExxtMN7b9Yo95Du4BB5bpu6MhIVGRurgalMijz91+SvY9si2foOEXw36adBUxHQxGrVn2TbpRrjjCGAhI= 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=XNnJsJfT; 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="XNnJsJfT" Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240730071229epoutp01242822370dc9e5e5d88071b3451782ff~m7CSmyX7v2294022940epoutp01Q for ; Tue, 30 Jul 2024 07:12:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240730071229epoutp01242822370dc9e5e5d88071b3451782ff~m7CSmyX7v2294022940epoutp01Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1722323549; bh=bAiZEbXYaEhIP7FM2a6MyvX2CrU3Y1JE6JPzxHX7HAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XNnJsJfTH17Hw4T4IezzSqLjh4r6YH59ul6Xqq4KqSM3F6PiVkMGgecXMa0sERRWL 3Nv50/MnVFQ6PSns3P9uJqCcSaBrGL8atA/mxLVk7SYLAhcHeb/42rES4I2wNnr7XR THXYBfkc7xQr9U7rwC1H04LQADlwPPcG8D/f2V6k= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20240730071229epcas2p32661a5be60b686d4b9beafada506b9ce~m7CSHZoBT0692706927epcas2p3F; Tue, 30 Jul 2024 07:12:29 +0000 (GMT) Received: from epsmgec2p1.samsung.com (unknown [182.195.36.97]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4WY5yh39zqz4x9Q1; Tue, 30 Jul 2024 07:12:28 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmgec2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 7A.94.08901.C5298A66; Tue, 30 Jul 2024 16:12:28 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20240730071227epcas2p1d1c0d9d1f40b045002ce0509f5168648~m7CQ-j7qt1604616046epcas2p1l; Tue, 30 Jul 2024 07:12:27 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240730071227epsmtrp2ac2a525d9120ba163e45175baae4a88d~m7CQ_sxLy1318313183epsmtrp2S; Tue, 30 Jul 2024 07:12:27 +0000 (GMT) X-AuditID: b6c32a43-a0fff700000022c5-8a-66a8925c3475 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 63.FD.07567.B5298A66; Tue, 30 Jul 2024 16:12:27 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.60]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240730071227epsmtip2c1c5c64d8b961b6c53d0132430d44930~m7CQscqHo0507805078epsmtip2g; Tue, 30 Jul 2024 07:12:27 +0000 (GMT) From: Sunyeal Hong To: Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Michael Turquette , Stephen Boyd , Rob Herring , Conor Dooley Cc: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sunyeal Hong Subject: [PATCH v5 2/4] arm64: dts: exynos: add initial CMU clock nodes in ExynosAuto v920 Date: Tue, 30 Jul 2024 16:12:19 +0900 Message-ID: <20240730071221.2590284-3-sunyeal.hong@samsung.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730071221.2590284-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+NgFlrLJsWRmVeSWpSXmKPExsWy7bC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d8ulAvPqm9edKPGQXv77Vh/ 6cKVIivW6jt+/3rorzbHZXVVxnVq2l9UEx77zj+SeMlRxnjqMs8Ss2A2rWKug9mWwXMezGV/ m92oafh2zr2uZywTTj8v9E+6JX3sya44JZbijERDLeai4kQAiqBcqPsCAAA= X-CMS-MailID: 20240730071227epcas2p1d1c0d9d1f40b045002ce0509f5168648 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240730071227epcas2p1d1c0d9d1f40b045002ce0509f5168648 References: <20240730071221.2590284-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..91882b37fdb3 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>; @@ -192,6 +182,19 @@ gic: interrupt-controller@10400000 { interrupts = ; }; + 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", + "noc", + "ip"; + }; + syscon_peric0: syscon@10820000 { compatible = "samsung,exynosautov920-peric0-sysreg", "syscon"; @@ -213,7 +216,8 @@ usi_0: usi@108800c0 { #address-cells = <1>; #size-cells = <1>; ranges; - clocks = <&clock_usi>, <&clock_usi>; + clocks = <&cmu_peric0 CLK_MOUT_PERIC0_NOC_USER>, + <&cmu_peric0 CLK_DOUT_PERIC0_USI00_USI>; clock-names = "pclk", "ipclk"; status = "disabled"; @@ -224,7 +228,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"; @@ -254,6 +259,15 @@ pinctrl_peric1: pinctrl@10c30000 { interrupts = ; }; + cmu_top: clock-controller@11000000 { + compatible = "samsung,exynosautov920-cmu-top"; + reg = <0x11000000 0x8000>; + #clock-cells = <1>; + + clocks = <&xtcxo>; + clock-names = "oscclk"; + }; + pinctrl_alive: pinctrl@11850000 { compatible = "samsung,exynosautov920-pinctrl"; reg = <0x11850000 0x10000>;