From patchwork Thu Dec 28 12:58:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13505995 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 C687DC47073 for ; Thu, 28 Dec 2023 12:59:01 +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:MIME-Version:References: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=MTkC8nXjdXM4tRD62P8AjA+GR9yrMrVB3hILkBwHE0c=; b=h0vf1gYhRQW1xQ 78u5ENYuhU3to6/8ODhhdV7C/KGJv5+pe2eiEFVnTgVe/bHjxoI8y2dkssRJ3ujajH//NP661tAiZ E5iS7u048vmfq3t2So93Dd16CbBeDF297O22V8flUV/mz8/+/PS2uwmhtAVUhq/jVT47+xrsrRa4S tWp9MpZSSWB4j5MyA3QmRElMY4aVWDb7/7f8Uf0rLLes7TcjbioGrWFaH1iK70srSGIEtGUNUXe8Y nrGvYqLmGjrW+MY0IQpo7TuGo5Cuw0tZ0dXQccxQmqn50Uk/pUzCRWt/YME04dNj/ZTdMan0ahcwx nEo2NnOQgaxbJCy7LxCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIpy3-00Gr6x-1j; Thu, 28 Dec 2023 12:58:31 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rIpxt-00Gr1d-2Q for linux-arm-kernel@lists.infradead.org; Thu, 28 Dec 2023 12:58:23 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-40d5d8a6730so14305885e9.1 for ; Thu, 28 Dec 2023 04:58:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703768300; x=1704373100; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fJqndlg00hz3kS0K9Xt/wzcgwz2RWYotM3QsJXJKxvc=; b=dBaYBKTagWiYwJdQio7nfgKYi1zkpK4Ode76lQyrKBwVYC5LBOaf5rM/jneKqBeaBV /ZWud5wf5OTCYA2TnmivJjRYJKd/tNX1JpL0mvAt9dzFA3ir558LIXUCZH7nymnTA8XV pCAZsnMRnPdgUQ6eCCygnmjca2MrX99MFLYwM7hQ/8Y+N/IViGAPlhSeuRRf8G4YJ8dg x9bMDJBJ7lmwAWGw0fa81IEyzwjImI9M5eqbsfIstQcUJPHGC0dNu2Zx0yYzH15R+RiI Jh1R0/bI2m3CMORFdJLo3SyUIiQ7UcEdkrGifia7X4ahctUmVx4PWpepnBEQklebWi2Q z8Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703768300; x=1704373100; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fJqndlg00hz3kS0K9Xt/wzcgwz2RWYotM3QsJXJKxvc=; b=CZLZLZal3d/bwntPCOlTK5ZSbimEXd0fDpCWkfsbnxccsHNFTbhhPuE8Zt8lZS/TPf UB0bdB+L8rq6SSomvDotLGDxPJtGbhfxwoZxX9P+jThxQfS/nRE5qwyFQGi2YxXnJdjF pUqEdRWk8yUXNw93yI6Qk1TlOiHCXuI0LUThqDxKzMEN9dRlEdA2qvIFfJgOOT9ZXXTL CJ7BiC9MjSiDm0v6Jku/w4psrJTUZvdtm2ZucSzcpO1UBoJ9OGhBrFE3aJbBx1ez9hh+ cm/cChGJ2I/LQs4nP946iYP5NZN0jczWYTEHjyKBlX/P5JhRd0nP6hXkf8iRzlekNWsE Wo6Q== X-Gm-Message-State: AOJu0Yzdh6eenLzqoIWvTGUQoVjxZ1O6BFTsctvniHLH8SQ5/GUaUXed OTb0eSIsZNt2clAeUnnxhE0A0h/vcxTS0g== X-Google-Smtp-Source: AGHT+IHl5TUZZLgMiTlie5qagsHCRsc5xzAp7JZjoJ6yG5wP+nbvBqQhFQDOaktrnm5ijLKALVeCGA== X-Received: by 2002:a05:600c:2192:b0:40d:71c1:9985 with SMTP id e18-20020a05600c219200b0040d71c19985mr81689wme.29.1703768300597; Thu, 28 Dec 2023 04:58:20 -0800 (PST) Received: from ta2.c.googlers.com.com (216.131.76.34.bc.googleusercontent.com. [34.76.131.216]) by smtp.gmail.com with ESMTPSA id h9-20020a05600c350900b0040d5aca25f1sm8615807wmq.17.2023.12.28.04.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 04:58:20 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org Cc: andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, kernel-team@android.com, Tudor Ambarus Subject: [PATCH v2 10/12] arm64: dts: exynos: gs101: update USI UART to use peric0 clocks Date: Thu, 28 Dec 2023 12:58:03 +0000 Message-ID: <20231228125805.661725-11-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231228125805.661725-1-tudor.ambarus@linaro.org> References: <20231228125805.661725-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231228_045821_791197_EEFA0778 X-CRM114-Status: GOOD ( 10.02 ) 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 Get rid of the dummy clock and start using the cmu_peric0 clocks for the usi_uart and serial_0 nodes. Tested the serial at 115200, 1000000 and 3000000 baudrates, everthing went fine. Signed-off-by: Tudor Ambarus --- v2: identify and use gate clocks instead of divider clocks arch/arm64/boot/dts/exynos/google/gs101.dtsi | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index c693791ae584..0e5b1b490b0b 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -180,14 +180,6 @@ HERA_CPU_SLEEP: cpu-hera-sleep { }; }; - /* TODO replace with CCF clock */ - dummy_clk: clock-3 { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <12345>; - clock-output-names = "pclk"; - }; - /* ect node is required to be present by bootloader */ ect { }; @@ -369,7 +361,8 @@ usi_uart: usi@10a000c0 { ranges; #address-cells = <1>; #size-cells = <1>; - clocks = <&dummy_clk>, <&dummy_clk>; + clocks = <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI0_UART_CLK>, + <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0>; clock-names = "pclk", "ipclk"; samsung,sysreg = <&sysreg_peric0 0x1020>; samsung,mode = ; @@ -380,7 +373,8 @@ serial_0: serial@10a00000 { reg = <0x10a00000 0xc0>; interrupts = ; - clocks = <&dummy_clk 0>, <&dummy_clk 0>; + clocks = <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI0_UART_CLK>, + <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0>; clock-names = "uart", "clk_uart_baud0"; samsung,uart-fifosize = <256>; status = "disabled";