Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5896668rdb; Thu, 14 Dec 2023 02:53:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxUjLjouiX9Q+d0t4zwybbs/Q1YN21VJ2GPX70vdZPTwAEMgpHj4FRc9HTmFAUOr/eKkYj X-Received: by 2002:a05:6870:9d14:b0:203:46fe:99da with SMTP id pp20-20020a0568709d1400b0020346fe99damr1192060oab.32.1702551222615; Thu, 14 Dec 2023 02:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702551222; cv=none; d=google.com; s=arc-20160816; b=LOmBr4yPWcXaWnnLBm0h1kMc0akpyNePangwwwhydRlacH5p5mKAByJ0wIKsYC5jX+ cFoPYSLy4jv+1gz6VecZnnN9nglw0SO1hg6rg8KNyX8MS3D4NaOHQ/Qr6dEFdMI5X+cZ uhqC6oV1MOXQCHzvc6Q29jKoOzxHTd2WvbpJQ/dxaGag2HhD+QkTwgyeVa+4LkQxVNCG mLrIJ7REtlNLGCixaZ0YFDuLnAWkMJF5ga1//3JANAaNPNXxzJAyOta4Pa29UuVyHdc5 fPL6CgFzpsktos/xVqclTc6U2edfRe8AOk/S8V/kVr56z7NtRcV9SCt8NShy8+2QbvpT 1KLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zzA2dIkRl3zi6KLIovteqBU+Yufsa0nL24/l8CSy6vo=; fh=OYFPLntDFpYgvzT/NKtNMO52NSVJYkQpXOK+UQuZgww=; b=UsLa937RmL/OuowD7DkXEKghLhaNdiS0jUAyxT2vKo+4wGkcZTPclo6PvrTkT7gsd+ hV6j29ICIM4wJE1TCPShym8A35dgYiUJB7pvK6Zsly21Gk7xz4egcD+vfp2dg9Ui92ej zJvsTs7yWa4XGNiNHwiLuQ3julbXIAu36n2ECxysfpuq+QonHqv0GZ1FXB4KfWYMYW3T aSuyrz1R8po3xts56Riu/zzlQwdJi0rq3kSIEVhrJ9IN6cxK+lDsFHMIFmTY/yT0Lpb0 z6i7QpdPt5Z2gEuj+py4g95VVsWcnlq+Gn847471/EQhHXm9o24xc+3lkPEh8hXujCEH T1Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LxDwOFzf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ch3-20020a056a0208c300b005c6bd30ec1fsi11181150pgb.455.2023.12.14.02.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:53:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LxDwOFzf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 906348026A7E; Thu, 14 Dec 2023 02:53:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443863AbjLNKxS (ORCPT + 99 others); Thu, 14 Dec 2023 05:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443777AbjLNKxA (ORCPT ); Thu, 14 Dec 2023 05:53:00 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C7161AE for ; Thu, 14 Dec 2023 02:53:01 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40c236624edso78807145e9.1 for ; Thu, 14 Dec 2023 02:53:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702551179; x=1703155979; darn=vger.kernel.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=zzA2dIkRl3zi6KLIovteqBU+Yufsa0nL24/l8CSy6vo=; b=LxDwOFzfk1mk+5E1bTajsbZZurk8ncwEgE3e/mLgw99ELriUqpFuRUcAdz20xR37W4 u9FEqecRe5aE/3G1MLIwXLQilHOFJy0ZiQ6eIGn6TTRziz8wVJicN7gVFWEDsmZUzgWP MwLLqxgOb7HjlrAaPYcl7jrZN5gW0y1hpUfYNfx/ZTuolzJCQVMSDsebP5ryM/DgQ4D/ b2g4TtRESD2YoGyxuq7c4KIkYtnSL+TgrYnwrZt2HqgRxQpYWMCJWpzRfEXZ2DHjHthM lehXU5TNuVpiFIc2jI2vlg7s3LYocs//mVEd24nRjEim57OYetvIvqiWdXvOkdaVBNUQ 5TVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702551179; x=1703155979; 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=zzA2dIkRl3zi6KLIovteqBU+Yufsa0nL24/l8CSy6vo=; b=QBmwj6HCDH4BFTl93VVZZDhF461iv9Q3H1rl1jB7lbeBX7nwVxwwFc+hI8G7V1WLMR 1XOsO/b1fy/Ih9mVr7SQJAjBRxqoRxJwgXUPYKI0J2e6glZjnb5sCzfmxbnhi5k0Pn9z oVqJdg5UjcjpYjVp10q+om+17lKa0ERpsF1KbmmvLN4/tT2BMOVqLzKy+o4YeGWNVzcV /gjBTjJRE/L9+TjEU0w+F44G9xqaIEQLadGYsCfJ8Fq2Neq31du7auuOTmYsZgzWiyAK lknjWECEmr2QcFg35eGDTkL4Lptq+yLu2Rx+iNEe8GUiyEzcphsT4orxYgnh9tgieqwC +AHg== X-Gm-Message-State: AOJu0YzpCMyCyqS1q/Z+ByeGQJeWkhlFjL/XMLaw4XWN2PM94T32VEoj L7RiQVchK1caBX+P/HBwDItqEA== X-Received: by 2002:a05:600c:2111:b0:40c:2910:50c0 with SMTP id u17-20020a05600c211100b0040c291050c0mr4828141wml.89.1702551179737; Thu, 14 Dec 2023 02:52:59 -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 p7-20020a05600c468700b0040c420eda48sm17614854wmo.22.2023.12.14.02.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:52:59 -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, catalin.marinas@arm.com, will@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, Tudor Ambarus Subject: [PATCH 09/13] arm64: dts: exynos: gs101: update USI UART to use peric0 clocks Date: Thu, 14 Dec 2023 10:52:39 +0000 Message-ID: <20231214105243.3707730-10-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231214105243.3707730-1-tudor.ambarus@linaro.org> References: <20231214105243.3707730-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:53:38 -0800 (PST) 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 --- 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 d0b0ad70c6ba..ffb7b4d89a8c 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_DOUT_PERIC0_USI0_UART>; clock-names = "pclk", "ipclk"; samsung,sysreg = <&sysreg_peric0 0x1020>; samsung,mode = ; @@ -381,7 +374,8 @@ serial_0: serial@10a00000 { reg-io-width = <4>; interrupts = ; - clocks = <&dummy_clk 0>, <&dummy_clk 0>; + clocks = <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI0_UART_CLK>, + <&cmu_peric0 CLK_DOUT_PERIC0_USI0_UART>; clock-names = "uart", "clk_uart_baud0"; samsung,uart-fifosize = <256>; status = "disabled"; -- 2.43.0.472.g3155946c3a-goog