From patchwork Fri Jan 19 11:11:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13523636 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 6A6EFC4725D for ; Fri, 19 Jan 2024 11:12: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: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=mFmDLAdSe0FJF9DLoktyBPSlm2ATnoNA8L78XaS4a4E=; b=mteqn5PJWwsgrc R9h5geDb2jqC/GMJNOkvnBsO1QcbkGVBfYDe5c13SZv2WgKLmo6yhKJK6VLmLYbdwOEUn1kXniEJs V16PkenBd8ir/LRHqibyGE6mINPQFcJf77QcRaH0z2SyGaGu+sy0W96hXWzj4wSM6rEzEGhTOhCzT ITTINvxwcefFlskxWXoArhVmKEqycpkxAQsj9WhFPxiUbQZW7RyYFAiKx6KUi+ym9LDEQ+MRRO173 /yH93pO7Svn5crbPuxv0/LRX/lm4Q08btbCm8dZQ1hC9G+oakkIbKB6JsI66uC0p8+bDzcWd1Z6/4 ihl/fF3Z4BqXg1+lLNZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQmnD-005Bzu-2v; Fri, 19 Jan 2024 11:12:11 +0000 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQmn5-005Bt9-0Z for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 11:12:04 +0000 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-337b71a0240so570906f8f.0 for ; Fri, 19 Jan 2024 03:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705662714; x=1706267514; 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=tDx9IJeu4q4vg7sxnjP3+o90/kYREKpXEiMwOte9XSc=; b=EyNJawdJWxIubQz5HQosdIRlN3HrzVhwWy3W1NsYKM8UPiLl+zLwpK0XpDt2V55DOB IzbdX577LJWtfZzExklPtiGQwhONgvovFERo3AUqBXMfB4zN69ga9UYb8IeL6HPwJW8M bNJOEZgu6W9Lyqz8a89ZYN5fI9f+hda4eZ8JdlO3AZxjo3hGZTdCGuwjDBtaASUAfyrh VHlCbVP5LXhj1TBZA98QtWxc+vj0OmwlUfYvd3GcbgdLYqY5IPcyH3VoST9vmFnFWF8L +l0qyMQtSopvdKr+ZMnjmotaXsf49tOms7TeHQZuJlON0ATF3NkGUL1Gy1vyiKQ6FMit B4nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705662714; x=1706267514; 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=tDx9IJeu4q4vg7sxnjP3+o90/kYREKpXEiMwOte9XSc=; b=oPr8RAhPumol6glqsfns3bZz+odx5Z9SA5Oq60KW3yUzzqdQ9ILl62Sv7Gb+M6MD/h MHVYzkoosdHEKfF3fqBYhnW6GSu8Mcy2YevhJ8YMWDfDh8392Be6PsQKuU4Big8TuKay w/W97l8UDIrX7u3ehaeBrFJB/J+GIFQFSa9yiNFBVlc3S4Gyb9jf2tykj9qBk7sO8IzO cOr7gkSDd9rbG1llDKIkcg0F82wz/2OwhpSRBdFKcbih3UFAPyuyc6OXnBf4a2YVXk94 X29cpvADT9vTgLCkjyY0/C3WcjHrkI7q7BMP371iqeVWjdwDI5MNlTDwiUCRd1wxMwNo XWlw== X-Gm-Message-State: AOJu0YwZe/D9gIVb8R3rb3zNWE39Pj35g9p1pnlkw/YqzXPvbzHbUqPF TTxcc+wNpdrLPCpCfvEf+KOWyeHZP8+N8F/yaCwuqfpzk2gRtLtLo9iNBLdYkKY= X-Google-Smtp-Source: AGHT+IFa9EXNILXQkEvGWQUIOOA63etKevXkmw5q28slYY6iHwHtb/9wtgcuyorN42OKWTa9d7vFYg== X-Received: by 2002:a05:6000:1010:b0:337:c642:7acf with SMTP id a16-20020a056000101000b00337c6427acfmr1422410wrx.108.1705662714705; Fri, 19 Jan 2024 03:11:54 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id o10-20020a5d62ca000000b00337d4ce6ab4sm3341868wrv.20.2024.01.19.03.11.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 03:11:53 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: andi.shyti@kernel.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.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, andre.draszik@linaro.org, semen.protsenko@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus Subject: [PATCH v4 6/8] arm64: dts: exynos: gs101: update USI UART to use peric0 clocks Date: Fri, 19 Jan 2024 11:11:30 +0000 Message-ID: <20240119111132.1290455-7-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240119111132.1290455-1-tudor.ambarus@linaro.org> References: <20240119111132.1290455-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-20240119_031203_249219_8DDFBCBF X-CRM114-Status: GOOD ( 10.57 ) 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. Reviewed-by: Sam Protsenko 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 2d1344a202a9..6aa25cc4676e 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 { }; @@ -367,7 +359,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 = ; @@ -378,7 +371,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";