From patchwork Wed Jun 29 01:56:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12899150 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1972AC43334 for ; Wed, 29 Jun 2022 02:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=goRutVMPShyvaFjc1/vANLV8c0uhAWtsppBPacReRS0=; b=vYF/Y9XwLNLUd/ 2YBulgtS9cROTd0hWPiwhSUXyiNBMQwSh8hcm7egfJx43w88H2CMTmjIyJvWoqhfg43Ll4wIAeeXt ul7j3cmpWoA/UCWeOsvXZ3q8xre/G6oJ2tsT6BrEYBaFK/g+QGHmtK/S0r8QWeYKuFeMmcHlocOia TzV2BCEVDAOrWqHAtF02u1MF9xFQa42KMKpLzbqJKI371T+nllZ00+t/OIU7exDgJupTPt5otiK2r LYCm8WfLH5j+WmFH/eSBoIJmexR/22QaIoiiaBj4aIHOeGtjko1WMCuD3Da3DiH0t5LtO8T9fcE3v lYQrnaKRRLsVtCuQuLVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6MzI-0090XS-D3; Wed, 29 Jun 2022 01:59:28 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6MzF-0090V7-8t for linux-arm-kernel@lists.infradead.org; Wed, 29 Jun 2022 01:59:27 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220629015915epoutp022a63b599361b10906ad5e9f151f57d5e~89NQvXTIE2980429804epoutp021 for ; Wed, 29 Jun 2022 01:59:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220629015915epoutp022a63b599361b10906ad5e9f151f57d5e~89NQvXTIE2980429804epoutp021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656467955; bh=RwioUKvKTYhfgLBTlcew+rLf93t5REYcbsLHXDHDJnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ntUZV2IQgEYYubm9MH1BO2uOxJRiGmyqWZJxyqyrfzWcOV6ywyovTcXUAZ76ggN0A iW3KlYOP+36fM8H1F4djvYvirfBLJqzMl2z16xzykACWLW6m0GR4LR/HgQa5sSNX22 UTn2Alk9vCcSkj5y1f+eFhYXw8GCrxm9jOkUBjSE= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220629015914epcas2p3ac571238fd5ff1160d570feb3a35d38d~89NQYV2Gw2548325483epcas2p3Y; Wed, 29 Jun 2022 01:59:14 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.102]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4LXl4y1nzTz4x9Q6; Wed, 29 Jun 2022 01:59:14 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 38.6D.09650.1F1BBB26; Wed, 29 Jun 2022 10:59:13 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220629015913epcas2p4b7839d1d66027cfa01cba73f7593902c~89NPChjJm1518315183epcas2p4W; Wed, 29 Jun 2022 01:59:13 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220629015913epsmtrp1d3dd3b3bbb6f7a4caa0d16c5e347b92b~89NPBmNJ42671026710epsmtrp1S; Wed, 29 Jun 2022 01:59:13 +0000 (GMT) X-AuditID: b6c32a46-0a3ff700000025b2-6b-62bbb1f19060 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id E6.C5.08802.1F1BBB26; Wed, 29 Jun 2022 10:59:13 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220629015913epsmtip1f3473dd7a9e39c41cd855b4c1858fc06~89NOxq1Z41166211662epsmtip1t; Wed, 29 Jun 2022 01:59:13 +0000 (GMT) From: Chanho Park To: Krzysztof Kozlowski , Rob Herring Cc: Alim Akhtar , Sam Protsenko , Jaewon Kim , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH 3/3] arm64: dts: exynosautov9: include exynosautov9-usi.dtsi Date: Wed, 29 Jun 2022 10:56:50 +0900 Message-Id: <20220629015650.138527-4-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220629015650.138527-1-chanho61.park@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIJsWRmVeSWpSXmKPExsWy7bCmme7HjbuTDL41mlg8mLeNzeLyfm2L +UfOsVrsaDjCatH34iGzxabH11gtZpzfx2TRuvcIu8Xzvn1MDpwem1Z1snncubaHzWPzknqP vi2rGD0+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generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220629015913epcas2p4b7839d1d66027cfa01cba73f7593902c References: <20220629015650.138527-1-chanho61.park@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220628_185925_699054_214DC3CE X-CRM114-Status: GOOD ( 16.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org By including exynosautov9-usi.dtsi, we can remove usi_0 definitions from exynosautov9.dtsi. We also need to overide serial_0's pinctrl and clkreq-on property in order to be used it as serial console. Signed-off-by: Chanho Park --- .../boot/dts/exynos/exynosautov9-sadk.dts | 2 ++ arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 29 +------------------ 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts index 2b30a7458297..eec3192c0631 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts +++ b/arch/arm64/boot/dts/exynos/exynosautov9-sadk.dts @@ -50,6 +50,7 @@ ufs_1_fixed_vcc_reg: regulator-1 { }; &serial_0 { + pinctrl-0 = <&uart0_bus_dual>; status = "okay"; }; @@ -74,6 +75,7 @@ &ufs_1 { }; &usi_0 { + samsung,clkreq-on; /* needed for UART mode */ status = "okay"; }; diff --git a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi index 3217d5fed018..af0164204bb0 100644 --- a/arch/arm64/boot/dts/exynos/exynosautov9.dtsi +++ b/arch/arm64/boot/dts/exynos/exynosautov9.dtsi @@ -351,34 +351,6 @@ syscon_peric0: syscon@10220000 { reg = <0x10220000 0x2000>; }; - usi_0: usi@103000c0 { - compatible = "samsung,exynos850-usi"; - reg = <0x103000c0 0x20>; - samsung,sysreg = <&syscon_peric0 0x1000>; - samsung,mode = ; - samsung,clkreq-on; /* needed for UART mode */ - #address-cells = <1>; - #size-cells = <1>; - ranges; - clocks = <&cmu_peric0 CLK_GOUT_PERIC0_PCLK_0>, - <&cmu_peric0 CLK_GOUT_PERIC0_IPCLK_0>; - clock-names = "pclk", "ipclk"; - status = "disabled"; - - /* USI: UART */ - serial_0: serial@10300000 { - compatible = "samsung,exynos850-uart"; - reg = <0x10300000 0xc0>; - interrupts = ; - pinctrl-names = "default"; - pinctrl-0 = <&uart0_bus_dual>; - clocks = <&cmu_peric0 CLK_GOUT_PERIC0_PCLK_0>, - <&cmu_peric0 CLK_GOUT_PERIC0_IPCLK_0>; - clock-names = "uart", "clk_uart_baud0"; - status = "disabled"; - }; - }; - ufs_0_phy: phy@17e04000 { compatible = "samsung,exynosautov9-ufs-phy"; reg = <0x17e04000 0xc00>; @@ -466,3 +438,4 @@ watchdog_cl1: watchdog@10060000 { }; #include "exynosautov9-pinctrl.dtsi" +#include "exynosautov9-usi.dtsi"