From patchwork Thu Feb 29 12:20:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13577058 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 F2CF1C54798 for ; Thu, 29 Feb 2024 12:20:47 +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: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:In-Reply-To:References: List-Owner; bh=bduDsjkvm6CIYBD5V5EZ4okEoY70MeNFfRtK6+ltE5E=; b=CMbhnnuDDX0bNU fIKKvbHv18BeMtrHvhx/ipGbrINQfsljHjieVlgRHURx9DrbFsYp03vcfeRX92/PlmExI/cbT+tjg Eu43N6E9jSKgoFUVrMmzD6CI/Pju4aZAQsnQvqVn09qvNy9Y8CHfmdM840EponNYcQHuz5CyDqxax DEVDvW7FURLWJDcN0IAZY+PrsR6ip7rYjD4mQRz5cdPZP+VcS7LP2nuBTfUBZL9idNbpXL/7j/1oS xlw+ct91CkR0Sz/GbpnU9U20WSQPAFr8/buEjIkxVDqCy9gp1zoLplBc2Cwfjl2U61sp4NuQxokHW mMbMmNrqoMjIqM5ZXtZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rffOq-0000000DTxa-0TFz; Thu, 29 Feb 2024 12:20:32 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rffOm-0000000DTvn-2twK for linux-arm-kernel@lists.infradead.org; Thu, 29 Feb 2024 12:20:30 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2d28e465655so10743411fa.0 for ; Thu, 29 Feb 2024 04:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709209225; x=1709814025; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0vjzIB8u0IabtEYVRJzJAEQ3mD04zR5ijVvS5JF9Y6Y=; b=K3lXpqSUxHXkZrPHtqvoypZpWN4SQSzV2h+zARmiiFVa57Iq26hcJ1Cb3RPTbQm+DS lbIS6wtHTb44LS/RXKf93XMtsLvy7qFtCTbi6HVhVv8mAcj+ZiTJpBnlsS0fTmAMEwhm Z3VDFxkWL++9DqxpUr4/S58YXzbPbUGD404Zrg20Hnt5MyYFag6F8LJSA7KGsezy5Ipk 3pavIzgGL2Lg9fR0oKyNYEhQ66pq8/M4J3FsJN2O3JWbXq7/Jsx/DnPTxYj8d6HCGVoB yS6p8tYse5RwrAUmH2FM9HpO+oq5v4k+xub3Aehib525DxroTTkkaDRC9ujHVsB8Cdpj bO8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709209225; x=1709814025; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0vjzIB8u0IabtEYVRJzJAEQ3mD04zR5ijVvS5JF9Y6Y=; b=PxPTiP8ZCdhed/4xSBX3rhHQFCe9ckx23u59YNnxHNnl9AQmJ+AKGcBDijURe73b58 UFjlXB7Dnkxw2b6pdlhhLr5e/PhvShDSbsU/Z92+PQrzN+Rs6GF65KBWDffSxwBKy7ZE 6MMX+nfVa9pczNsF6J16Bc5PIAqVYWsDFUTum6jTl9mJTUg059PG4R+iIgti4rX4tibL a9sL7HEdLWlKbI/ddWOGvdGYBHFD7QQCSqPGFSyFIgr69rGBWhtkf7UQEfl9Ups0/dRL vCm0AwZzTkuJpUDsN5Ah8tXZOCSlFaS/nMH/yoFSh/z31O9/48Mha7dnsVWWC558Ejt1 uJ6w== X-Forwarded-Encrypted: i=1; AJvYcCXoZJQlqvbPdYvxoL8ydaxHzmAv/g5/t0k0jytS0CfhljKRO24y5/Y2msl/yUIgwFl2xfJNPKNO+qzHWnR64832Iho8LaN0wB2gK+hl4XnmCpBnOyg= X-Gm-Message-State: AOJu0Yzd8/zibgIBOeJP1vhF5GxbBlyeNJEyiqf1AiKgldGOqMW74TaO xYtnQrCes7OMtMnwguMND7WmZ594MayV4noD30CaYjqUXOVuufx7pGuwx8SavuU= X-Google-Smtp-Source: AGHT+IG8n5Uwvbvs8YE19xuHslAxDWVpeTnYjInoghHURNZKQMGqmCLjO4J8AQclmPxxrOwq2z/Afg== X-Received: by 2002:a05:651c:19a3:b0:2d2:6c75:9a67 with SMTP id bx35-20020a05651c19a300b002d26c759a67mr1670331ljb.38.1709209224600; Thu, 29 Feb 2024 04:20:24 -0800 (PST) Received: from ta2.c.googlers.com.com (110.121.148.146.bc.googleusercontent.com. [146.148.121.110]) by smtp.gmail.com with ESMTPSA id dx14-20020a05600c63ce00b004129f28e2cdsm5009121wmb.3.2024.02.29.04.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 04:20:24 -0800 (PST) From: Tudor Ambarus To: krzysztof.kozlowski@linaro.org, s.nawrocki@samsung.com, cw00.choi@samsung.com, semen.protsenko@linaro.org Cc: alim.akhtar@samsung.com, mturquette@baylibre.com, sboyd@kernel.org, peter.griffin@linaro.org, andre.draszik@linaro.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus Subject: [PATCH 0/4] clk: samsung: introduce nMUX to reparent MUX clocks Date: Thu, 29 Feb 2024 12:20:17 +0000 Message-ID: <20240229122021.1901785-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240229_042028_757965_AF79F30F X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. 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 Introduce nMUX() for MUX clocks that can be reparented. There are MUX clocks that are dedicated per IP. The reparenting of the MUX is safe without affecting other IPs. Follow with 2 patches for GS101 to propagate the USI SPI clock rate. nMUX is used in GS101 to reparent the USI MUX to oscclk. Tested with USI6 and USI13 SPI. Fix USI SPI clock propagation in exynos850 by allowing MUX reparenting for the dedicated USI MUX clocks. Stop propagating the rate change from the USI muxes to the common bus dividers (dout_apm_bus and dout_peri_ip). Other leaf clocks (HSI2C, I3C) are no longer affected on SPI rate change. USI SPI clock range remains the same. Exynos850 patch is not tested! All 4 patches can go as fixes, since they fix the clock rate range for gs101, and stop affecting other leaf clocks for exynos850. I don't mind however if K choses to queue these for next. Tudor Ambarus (4): clk: samsung: introduce nMUX for MUX clks that can reparented clk: samsung: gs101: propagate PERIC1 USI SPI clock rate clk: samsung: gs101: propagate PERIC0 USI SPI clock rate clk: samsung: exynos850: fix propagation of SPI IPCLK rate drivers/clk/samsung/clk-exynos850.c | 15 +- drivers/clk/samsung/clk-gs101.c | 225 +++++++++++++++------------- drivers/clk/samsung/clk.h | 20 +++ 3 files changed, 147 insertions(+), 113 deletions(-)