From patchwork Mon Feb 10 16:27:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 863814 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp1681226wrt; Mon, 10 Feb 2025 08:27:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCURGdbiLf54mPM8klPal8o3XwyEu8EECPft1Hk75QZ+thyVSVZ7h/zbu/97z8tsp984Rc71zg==@linaro.org X-Google-Smtp-Source: AGHT+IFAoFU0BhTJFEk8GbOKsprFwC0SVN2oLKgNQp0vUfl3lDobFrj/6HIc2MGUMbUP6Tsk5apf X-Received: by 2002:a5d:4e48:0:b0:38d:dd70:d70d with SMTP id ffacd0b85a97d-38de4189b7bmr184406f8f.18.1739204862469; Mon, 10 Feb 2025 08:27:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739204862; cv=none; d=google.com; s=arc-20240605; b=Ud+MxzgV7ZftvHdIzzSbB6Fqh0rAljoB6Nh1vL39JtDpc0rvRrUeLrBUMXGorfEgLl cIZ7hHoLrDM+K+AxnkYSG50bbsYBc+y13g3H+BO4Ewud0zTt1WhNXIog5XERVYZ0Zaft iqd8P/HoKTwZlirFUH/EBuA2EEXIbHPcrWN5DYdp6afKuNjZht853+P/IvfI0CzwNlEX 7N6yWCCz0sYF7Cc5CyZIrUQ9OMUYWP+pSx/6ZWWVFV+o7QUmOpGkq5zNa3kZew6Cer9O 7nlO0tRqV9EJB9VG3L8TwKMzXCHtCngc6EwKdUsIOy127JAkC7N8UKdqAnk2xMtmA5my 9T/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=yOKm3WjOKoy+hx+tTAcG9B7csRkhuQtZDiAqQ1LozRM=; fh=sIrZsc7MqAdz9o3mJPEivx4Cesu54aD0aNgWAVx+8c0=; b=WNyQOEdJN9U9zKLetHJqZxTUwKws89lT4GSwUja+CAhPxBbd4Az4A46KuE2c9io9Nz 3frCJI/XyonRaNH4XLRpFWUpVFDbRsAh/r+RLtQc5nA8IekIBtxJLSWnk4EpjpawOTUs liFYjOsNGFAy9LYcG8VsihK5CiOY1oqRK2aQT+rdms3CWJJpiWW6P+lvLFUwry9VtJ8M eSk1kp4ksJMb6kjOAPzOc7UziCJ1Q9LxrNOTQM/cWl0tahQVWMQ3PswYVD4qJrVsAbK1 7WWlAAoJVW8KSKHi1vQTEOzKL8LMfFJmwplaoRt2rHepw1B8CSCL/76v0vVBLW8KMCzy oVDQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4Rj2N5t; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-38ddaf333b6si2639338f8f.182.2025.02.10.08.27.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:27:42 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4Rj2N5t; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A72D980BA9; Mon, 10 Feb 2025 17:27:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="X4Rj2N5t"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7F92880548; Mon, 10 Feb 2025 17:27:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5DD9080A55 for ; Mon, 10 Feb 2025 17:27:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-38dc6d9b292so1827324f8f.2 for ; Mon, 10 Feb 2025 08:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739204851; x=1739809651; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yOKm3WjOKoy+hx+tTAcG9B7csRkhuQtZDiAqQ1LozRM=; b=X4Rj2N5tjjFKYmWHkbz7n4+ezp/BZoGIRH5x79NHvnM+FYKnAhd8XwQ+PAby6evaie VvdBnXP+urM+DEXKHSYl8tnAEBuPypFWPlH3CM3m1521008DlxNUesrOYaJWLhZRhioB V5nrRSgP/OXUFz3u0cqnJAkQbDdH/MQg4EznDJoHG97k4HdPbS7EMHRtn9q5bVDiXs83 gJkGfK4U9zZ5zwa1N4fmDaryxt4oBqUQT/o0oEMjHN/v4ZDCjcS1ULVhz5xAsgOXpdHn HASjEq0RTV+ZykHVXv/3q3Cl7QEoNdyazWmEMR9Tc6JHvjaeyq3uUrDrXvETZIY3bClN C1UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739204851; x=1739809651; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yOKm3WjOKoy+hx+tTAcG9B7csRkhuQtZDiAqQ1LozRM=; b=NABkQuW51R4Yq2gFlhCg3txleF4PcfPMqfwRoCr5FDdDVl0BTHVt9lgujt+HD3otQf Mqvld7mMBKuAhkuMbu2FEtjh8AX2g5TAQFYFMBSQdbY4F+kl9Gfvzbejdwxv90C/dQ3n iYt2ZsDgf2mp+35j+IiSeQJksi2AfwyVh4dw7vy2ryJ2lcFgSoL0YKcsnudgBQ37c0y4 GVseBEo/kR0WD2DA5NFuEn5+SW5LXbX2MSGwIYlOVx38/oebetCwIv21OqHTMqvZ1VOg nyZ7qvejWEojNc3Y1y9chuvG7ZLr8DkTBzVG/INeL0WwQjW2D+kXvkihAZcnN9fU9B+Q 3BGA== X-Gm-Message-State: AOJu0YwIbqu/sWjECu8Tks4tOeYt0C9L8lu5iLRHPaQnHLUI+0GgeWuS 14yafchm7Gd3H3BYXZKo7l3geEEPyQ18kMU9j1bMAQfXow+DgAflS8EWcmtX/o0= X-Gm-Gg: ASbGncvjc4i0NMaiBoy5Cqn2fj4mhz59a0QJRybnp/jcKhpbDFaj1dve78kzvqjcJMf NTDVKdSkUdImyAENyIvjdWq/H77EFDaIV6vbT0DXs+dW0JFIfeHAQWE30+YeuMe+AT1SQdXA5sz t+95PY13uunmZTNOSa59R6wopm2SpP/tyqAtG8sA1bLGNmf/IHEu8KVrkw8YTunsxW+jarSyAXJ mgFBfx8HVXNe7XUW6jtnRtIXUcQbG0sQ1vR7aivOSn7kfxYzhonHWszC6VSxZvP7Hl4yAPJ948Z 2Ml26IBzyg/MD+ComxNDtir1nlRgavw= X-Received: by 2002:a05:6000:2ae:b0:38d:d4c7:d2d2 with SMTP id ffacd0b85a97d-38de4194326mr286825f8f.25.1739204850852; Mon, 10 Feb 2025 08:27:30 -0800 (PST) Received: from toyger.powerhub ([2a0a:ef40:1d11:ab01:7693:a594:d8cc:16e9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dd6080926sm6648295f8f.83.2025.02.10.08.27.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:27:30 -0800 (PST) From: Caleb Connolly Date: Mon, 10 Feb 2025 16:27:25 +0000 Subject: [PATCH v4 1/3] clk: add stub clock driver MIME-Version: 1.0 Message-Id: <20250210-b4-clk-stub-v4-1-f1e7d845f57e@linaro.org> References: <20250210-b4-clk-stub-v4-0-f1e7d845f57e@linaro.org> In-Reply-To: <20250210-b4-clk-stub-v4-0-f1e7d845f57e@linaro.org> To: Tom Rini , Lukasz Majewski , Sean Anderson , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io, Heinrich Schuchardt , Ilias Apalodimas X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3867; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=7QRmkNL6m86WDqZCYRbutbity6NHl7M2UqWOPzXq05w=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhvRVGh8mfT0wLzVr7uVtsVdNQkJeeEdXFBZIf4oqYVpTd eVutlVMRykLgyAHg6yYIov4iWWWTWsv22tsX3ABZg4rE8gQBi5OAZjItCcMf8UPCqan2bWrpiYv vSKUcTDzSMO9Npeo+IJuvYVXziQofWL4ZxUavmbjstwdN/i7VOQT60Ou29u/fLlX8CQfa/6kBzu cJgEA X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add a stub clock driver which can be used to bind clock controllers which aren't required for the platform to boot, but which are needed for U-Boot drivers to work. In addition, add a NOP parent driver to allow for binding the parent nodes of the clock. Initially this driver supports a Qualcomm platform where the MMC driver tries to fetch the RPM clock controller, which is not actually required for the device to work. Reviewed-by: Neil Armstrong Acked-by: Ilias Apalodimas Signed-off-by: Caleb Connolly --- drivers/clk/Kconfig | 7 ++++++ drivers/clk/Makefile | 1 + drivers/clk/clk-stub.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index d9d518d70387120f6261ac4a6ae7038992c5f888..18bd640a68b60a9ba8a87fcd1d5489140653c344 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -95,8 +95,15 @@ config SPL_CLK_GPIO help Enable this option to add GPIO-controlled clock gate driver in U-Boot SPL. +config CLK_STUB + bool "Stub clock driver" + depends on CLK + help + Enable this to provide a stub clock driver for non-essential clock + controllers. + config CLK_BCM6345 bool "Clock controller driver for BCM6345" depends on CLK && ARCH_BMIPS default y diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 7f84f22d4b1d100a1116db4c71b067e30283d162..fe0e49f6112e19e86db29c2b039d67ded774eae9 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -10,8 +10,9 @@ obj-$(CONFIG_$(PHASE_)CLK) += clk_fixed_factor.o obj-$(CONFIG_$(PHASE_)CLK_CCF) += clk.o clk-divider.o clk-mux.o clk-gate.o obj-$(CONFIG_$(PHASE_)CLK_CCF) += clk-fixed-factor.o obj-$(CONFIG_$(PHASE_)CLK_COMPOSITE_CCF) += clk-composite.o obj-$(CONFIG_$(PHASE_)CLK_GPIO) += clk-gpio.o +obj-$(CONFIG_$(PHASE_)CLK_STUB) += clk-stub.o obj-y += adi/ obj-y += analogbits/ obj-y += imx/ diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c new file mode 100644 index 0000000000000000000000000000000000000000..ea817031fa6c0cc1ea21000273b5651be5d05e65 --- /dev/null +++ b/drivers/clk/clk-stub.c @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Stub clk driver for non-essential clocks. + * + * This driver should be used for clock controllers + * which are described as dependencies in DT but aren't + * actually necessary for hardware functionality. + */ + +#include +#include + +/* NOP parent nodes to stub clocks */ +static const struct udevice_id nop_parent_ids[] = { + { .compatible = "qcom,rpm-proc" }, + { .compatible = "qcom,glink-rpm" }, + { .compatible = "qcom,rpm-sm6115" }, + { } +}; + +U_BOOT_DRIVER(nop_parent) = { + .name = "nop_parent", + .id = UCLASS_NOP, + .of_match = nop_parent_ids, + .bind = dm_scan_fdt_dev, + .flags = DM_FLAG_DEFAULT_PD_CTRL_OFF, +}; + +static ulong stub_clk_set_rate(struct clk *clk, ulong rate) +{ + return (clk->rate = rate); +} + +static ulong stub_clk_get_rate(struct clk *clk) +{ + return clk->rate; +} + +static int stub_clk_nop(struct clk *clk) +{ + return 0; +} + +static struct clk_ops stub_clk_ops = { + .set_rate = stub_clk_set_rate, + .get_rate = stub_clk_get_rate, + .enable = stub_clk_nop, + .disable = stub_clk_nop, +}; + +static const struct udevice_id stub_clk_ids[] = { + { .compatible = "qcom,rpmcc" }, + { .compatible = "qcom,sm8250-rpmh-clk" }, + { .compatible = "qcom,sm8550-rpmh-clk" }, + { .compatible = "qcom,sm8650-rpmh-clk" }, + { } +}; + +U_BOOT_DRIVER(clk_stub) = { + .name = "clk_stub", + .id = UCLASS_CLK, + .ops = &stub_clk_ops, + .of_match = stub_clk_ids, + .flags = DM_FLAG_DEFAULT_PD_CTRL_OFF, +}; + From patchwork Mon Feb 10 16:27:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 863815 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp1681285wrt; Mon, 10 Feb 2025 08:27:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVcaBH+w3afzynesCJN0gGwWVqTIyBYNNkYsGQomAkKb34mt4YlWDYqbISfPG1i1MC/957htw==@linaro.org X-Google-Smtp-Source: AGHT+IHUHQAHJjCayC9/Clo6ePDyrA7rC7wuULLuQQtMUq1X4Hed+Y62+rd/byrB+pLVI01TOpol X-Received: by 2002:a05:6000:1ac8:b0:38c:2745:2ddb with SMTP id ffacd0b85a97d-38dc99096abmr10427947f8f.2.1739204870134; Mon, 10 Feb 2025 08:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739204870; cv=none; d=google.com; s=arc-20240605; b=W15QNLnUyGDn/g65lSOwLsLqHGZ6LI63fIGOixGwvBd3hTx5vKf0BgIe9IwzobxqP3 O+buYuu5J/ZstQXr2ifnkeXh6GGV1C/Nx+9flFaahM7D1xtmq2zERMxZPBQDiSBXDQek QDVlci9cQbV04qV2jX9XK6rFR/S/0q9WYZohNyOSDtloBYeurw3xmkq9/060Uwo5YL+7 wPuVyyZcoOLaYPj13Je5XcGg1IxUY/rGnwTol3cq5c8jvyt3TPAIKGflaaGawK5YqjHM +fioBnW9JVFO5BTdQ0pzVMH9CrBDUZyjyfq8SUT5Z+gt9ZZuJr5Tvgti7UKGcOMcMFp5 q+Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=oz+85OP9doZVJ9G2yRvT7+t65pSdghXkurJcMytopdI=; fh=sIrZsc7MqAdz9o3mJPEivx4Cesu54aD0aNgWAVx+8c0=; b=QR1oTYj0yx939eR5eY8l+7BiUzaeieve84ikyc/lWOsI0N2mYe4WnBKn9TKyUjfDfK NV/P7pasnqQjP0xIwdsSGAddYUM+YxdJmexnih5ttyM8rE731xgd0WnAscXFARlg+dOD NA/J77HBVU9OL5qoQUQre+qExbmnL5E2PztSuxSuIAkQmTUYw0sWBDrWPdDQIzQJfjIk gTOgy291vN5dbP9P3ULNyqAR6qrVPqRPFK1SJobbMj3W8kDibF6sY3GksKz42WaDD+OA BSKkwxigBRwMou9ws3UHP0FTaCmWNnHvVdEIN6WPyf8DeBMiw81cLmD2Ac+n3gsHrVBV gHag==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dw0Ey4iT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ffacd0b85a97d-38dce130f6dsi4521499f8f.227.2025.02.10.08.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:27:50 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dw0Ey4iT; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 04400807D6; Mon, 10 Feb 2025 17:27:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Dw0Ey4iT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1023E80BAE; Mon, 10 Feb 2025 17:27:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8823F80AE5 for ; Mon, 10 Feb 2025 17:27:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-38dcac27bcbso1957369f8f.0 for ; Mon, 10 Feb 2025 08:27:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739204852; x=1739809652; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oz+85OP9doZVJ9G2yRvT7+t65pSdghXkurJcMytopdI=; b=Dw0Ey4iTq/7Bs+GePbhJwnFvSDapYm1aysVS3Z28shrtTCnP0snRjHkIfJFNE2lSso FoKO5XzDMfQj0OXV6kj5Y8sSHD6jp/AZEtbgxnp6Fekrfi+jRbvl2HNnY+mR9ww8N34l 5I5OAEywoRVBmURa/zrxUjiRnDMuWGBurKk1hC+bhwQ6smA6oePBFhULkMjVUW4bVqF3 t8vJV9t3mTC5f2p4ZfhGCYoLq/vaEMKZ6tZfe9ro5hXbFEbVFHCPsxLzQXEy3BwyGniG u3mEHchmHLgNUyT5lkO3uVfILR19F2Qfvpx9AM+5+D5E9/mNN0FzXA/a2cn6JSxAAUQe 4Eng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739204852; x=1739809652; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oz+85OP9doZVJ9G2yRvT7+t65pSdghXkurJcMytopdI=; b=koAJ0DxazRkq4lPVk/wnPqu0dDo9Pphkt9qPKtcHmgfAdjw8c/RFhs+BuLM0n4OfVS MIR5rgF+3wn2psSoB6uaVtllLHYdUIT1ZtJeIdSpsX/IleeX5s+XxnPwR8zHyuB4rIdx aT+ecKxYtZhjWpH8a9dJGCyYrKIsSo6ri+RSnDMk2f0E4VLnUfTerAPrIpoPnpUZSnU9 hL7ZYvtpk/x7585s578EcL4qjyMjnxrC32vuAifDOnJx90lQu804zzoEtN/YlQz9ktl7 Sn44/0UVnflu08CjAeFceJMy+IIl9XKd0lpml/cgSrQNGnPX9SA912WvBb+Kjpe/hPru E+VQ== X-Gm-Message-State: AOJu0YyXyAcXpAWTiCozpvJo5RZZI7V9WuH17b4dqwoVxEjoJgB0z7p0 W3ThskWPuF8ru0a+pU9tznHq8snfRmp+p1kKNhxWWPdCl3EqmxSYGA25DD2e+l8= X-Gm-Gg: ASbGncsrQHyMf8j1LHd0GYrGEOIP5bBH1AU0BNHizenwu70Yzkd043VJKb30uRGox/l okonrZC56jFGtkXoh6YgE3u4SJ47ercGOBS8NrezRTx+xJsedUvCQt8b2s5EEj2upbht1VHEVvh ytkRdyfHBUNZffduAgPz9qsf0gz8v+IxfxquPVPdEdgwekKfMzxmM24/VS6A2dMHVJA+dzH23Bx qkDmQQdzYyPcbK519RIlaYdB1ImQd4A5N92hQIIiBSlPnFm9kd1vO+h7jR7h1ijpr6ckxDBcQCd o7zP0Exo45xYRuD8N4H8FCv1x0JV8Ds= X-Received: by 2002:a5d:68ce:0:b0:38d:c88e:d57b with SMTP id ffacd0b85a97d-38dc88ed864mr9008352f8f.26.1739204852022; Mon, 10 Feb 2025 08:27:32 -0800 (PST) Received: from toyger.powerhub ([2a0a:ef40:1d11:ab01:7693:a594:d8cc:16e9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dd6080926sm6648295f8f.83.2025.02.10.08.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:27:31 -0800 (PST) From: Caleb Connolly Date: Mon, 10 Feb 2025 16:27:26 +0000 Subject: [PATCH v4 2/3] qcom_defconfig: enable stub clock MIME-Version: 1.0 Message-Id: <20250210-b4-clk-stub-v4-2-f1e7d845f57e@linaro.org> References: <20250210-b4-clk-stub-v4-0-f1e7d845f57e@linaro.org> In-Reply-To: <20250210-b4-clk-stub-v4-0-f1e7d845f57e@linaro.org> To: Tom Rini , Lukasz Majewski , Sean Anderson , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io, Heinrich Schuchardt , Ilias Apalodimas X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=794; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=988x0yGrHEqroB9Tvv/9YXcLTTclE0J9JkZeKFs1iVY=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhvRVGh/qE/ccF4ytarW/9tOsoj41vsDVVewxa764S/N+5 36Z9xc7SlkYBDkYZMUUWcRPLLNsWnvZXmP7ggswc1iZQIYwcHEKwER6uRgZek7JZM48mbZ+qpZr 0aOTLvUls3cy7ppUz5OqK5NZX3comZFh2lMvb5cky7ffgvzs0v717HsTuvGcJe/czC/1rTVNAso /AA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Enable the stub clock driver for rpmcc Reviewed-by: Neil Armstrong Acked-by: Ilias Apalodimas Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index e4abfdf16bb50503953b79fcaec1263c6b74f41f..9f5518a9fe935d289b44909c6f2e9c401847bea5 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -57,8 +57,9 @@ CONFIG_CLK_QCOM_SM8250=y CONFIG_CLK_QCOM_SM8550=y CONFIG_CLK_QCOM_SM8650=y CONFIG_CLK_QCOM_SC7280=y CONFIG_CLK_QCOM_X1E80100=y +CONFIG_CLK_STUB=y CONFIG_DFU_MMC=y CONFIG_DFU_SCSI=y CONFIG_SYS_DFU_DATA_BUF_SIZE=0x200000 CONFIG_MSM_GPIO=y From patchwork Mon Feb 10 16:27:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 863816 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp1681335wrt; Mon, 10 Feb 2025 08:27:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWWMvdqt2z2b5Bv8GWy3kCy+ABp4DvsGlbOqlKXeOQ8431KKgL6sXbBv49zik8YE+ev71acvA==@linaro.org X-Google-Smtp-Source: AGHT+IG5deuh0mCBJRdPNl79n1EW/5FjlMqF8tqCshkLxQ3mQI0NBJj8tdsDWCXKS2cH6mTZw5i2 X-Received: by 2002:a5d:5987:0:b0:38d:d759:3dea with SMTP id ffacd0b85a97d-38dd7593ff6mr6758913f8f.26.1739204877637; Mon, 10 Feb 2025 08:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739204877; cv=none; d=google.com; s=arc-20240605; b=SoKOX5cBph4qWzUc2mtvm4ou54ui9eGbp/1piXhE25HESKHo+eF0G3Hn9N3/Bp4PoX VyfahT4xCxc4YTJ6Sko3IRZzEvRfDP16S/hLm87007ge1E7k61Jfd16he08CaGpf7mJq s2fD08TPz6Rg/CHhBzqDVecXs8r+AxT4jwl8vyn4WP7/FHfwwwkXS/zukseRyEMngHEZ AiW7zkM6hXU7atBEdoSdFL6ISyPlAD/FdvsvKoDTAPdLK2ASFS3Y3SdGmasGgcrKHQBG ZPGgZBpvA3ghMQwSlZRVXX4iMcvLHWkSKOqTeF8JBXb1kaiUK7uouXAlDeARPKKw37DX w9Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=7c5uu1yLPOnid4qb59cfCziQR0prFTa8G6G5vQse1n0=; fh=9CZQ4E52PzXFhaF4vacSCss0BuVpZ2BhwXxXQMFRupI=; b=HwovIC+VKwW/ZKm5hXkfxfd9x+WSjON6XomAjaG8wvncYzAmmWBQIDJoQlQDgD66RM F3lZD6SClcRlxxyoVcyK7Nbp0hQdiEgs8odUr+sWOjanJ36CgPg3xlo3htJEp8JjvoKQ TM8wiDBwteIfmyyj+KR7AaA4PgrJzRBSnI3oMOeliHf2BRx2YvpGiDjqSiqj5Kcgmdcq unceGkgAsf97R8MOSvTf4tbvI7DSvllQ2j4zP8f6z032MEFBbTt0FebEQCfpaSTJM/y2 frM1g1qcP496jeOrue0BWVl1ifVr++NnyXDKMK5P3d3KTM8FblNqDsoK23l87L8jMBka VF0g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VR8Lnyhl; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-38dd069f285si4345514f8f.148.2025.02.10.08.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:27:57 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VR8Lnyhl; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5B80E80BA8; Mon, 10 Feb 2025 17:27:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="VR8Lnyhl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CE91D80AE5; Mon, 10 Feb 2025 17:27:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C7E2380548 for ; Mon, 10 Feb 2025 17:27:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-438a39e659cso31493015e9.2 for ; Mon, 10 Feb 2025 08:27:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739204853; x=1739809653; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7c5uu1yLPOnid4qb59cfCziQR0prFTa8G6G5vQse1n0=; b=VR8LnyhlqjaUCyjFogPQRttul7ptxyF3xKIH32rOwrqvstg5IwceB2I1H7xpI1QmGU v2FhSSreAw3IC7YIhn9PdXt7kuFfqz918lyoh/QlrVVYiNK3jUuuIz2Imcw6MBkSku4j G68DyxLSmitu4vX8J6kyzVNsAQexnUPmJ0Sy3Pk8iACerMiL8ODFGhkPuzcw70d8ZQ1Z 2wofbyXeyMgHzRZcCEhsMyRptjkI+RECrV/S9NYHIVnwF2CP2Y2IhMfsSmG9oXJGF1xI m7vB0e9Xu5lqxjHy6+w/71V7jS9wsgDjAlQ4juCE/pz3ZsHGKdp0f164sVt9wnaEghEU q/Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739204853; x=1739809653; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7c5uu1yLPOnid4qb59cfCziQR0prFTa8G6G5vQse1n0=; b=Z8GlSg8wHvhTbMVfayRvPs4/lxtXI/y0bjPQpI+aD1Cw5QdZsd1z05trwiIszP9vh/ zzdf53qZSqfcgYZoCRcj+Kj8hDYYE5IgJUOkiGRr7XQVf28Je4M45boQZkGfdrqOZYe3 xfprWvqT2MchmYt2znfppmsu6FEW+f5Fo5OnXZPQUbm+jzWeibqwKV9wHcLcofa25CMj pRKPUoMeVZQFzDS7IIqZyt/Qq/BUK7aGG4xAurWCi5eumk6U0nBS0+5pJo6QtYC5CcQ3 hkyKKaN0XRI1JhJeK3aKj0FjWLvAXbwiYENx35eOaA6dJ22rwUCTGWQ3DaPmHtNQ0L8I s/Ig== X-Gm-Message-State: AOJu0YxnTReau4Ui9CoGOpkcwLn9cE6liUWqVbszFlvInzIewqtSSIa/ wgjtDQP9anWHXTH9euWJjsXbQZTg7mXW3fR7puLCFr1VScHRAotXISzc1NHBI4w= X-Gm-Gg: ASbGncvp0UVnnW8mHbQaGhg6wLa6Yyix2ND/ctAtbmQzQ3Ob52vVUd69e4IKdOQdPec /YY6NvL5S2orJOjgEdlCRuVNJ+HXrJiE9d5pxX36/lkZytZaVMnPsM1l+qkYcFD/xABufFvjTDd AuI0DtSM3rHROaj1dUcrqDKPhwF2JDinJT/nXqu9pJ1h+/R/6aSCduvnLG9S/YGqELp30VNVBwR 0zF2XzPY5km+wzPp4xnOf7wTs3wcA3E6FKZKuIfAbb9WoHfZJaAlbYqEBc4JMMfk8h36DpUxRQj FjPqokO36zpjFC543T2NZYCnqw9Oiz8= X-Received: by 2002:a05:6000:2c3:b0:38d:dbbc:3b01 with SMTP id ffacd0b85a97d-38ddbbc3d03mr5190425f8f.52.1739204853270; Mon, 10 Feb 2025 08:27:33 -0800 (PST) Received: from toyger.powerhub ([2a0a:ef40:1d11:ab01:7693:a594:d8cc:16e9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dd6080926sm6648295f8f.83.2025.02.10.08.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2025 08:27:32 -0800 (PST) From: Caleb Connolly Date: Mon, 10 Feb 2025 16:27:27 +0000 Subject: [PATCH v4 3/3] clk: stub: add sm8150 compatible id MIME-Version: 1.0 Message-Id: <20250210-b4-clk-stub-v4-3-f1e7d845f57e@linaro.org> References: <20250210-b4-clk-stub-v4-0-f1e7d845f57e@linaro.org> In-Reply-To: <20250210-b4-clk-stub-v4-0-f1e7d845f57e@linaro.org> To: Tom Rini , Lukasz Majewski , Sean Anderson , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io, Heinrich Schuchardt , Ilias Apalodimas , Julius Lehmann X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=759; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=Mxv8/JtvYAimZrcPTzj9h/t2wMA793CLnQvxY5lPNmU=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhvRVGh9mbNvWq//W+kTdIulf60+oan/nMvrzyMwvUvMMo 5QX2/R5HaUsDIIcDLJiiiziJ5ZZNq29bK+xfcEFmDmsTCBDGLg4BWAi8w8x/I96HafyaNZ1dbuG tvlT4tYVp9ce/rDBYbVbfJB4fqBl8kOGPxy2T6vnHNZczed67lvirfbwq2ZhqducI8MuzzlmfCa z6gUA X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Julius Lehmann Add support for sm8150 clock controller to clk stub driver. Signed-off-by: Julius Lehmann --- drivers/clk/clk-stub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c index ea817031fa6c0cc1ea21000273b5651be5d05e65..5fbbb07b7f7b93e619baf596064c4b3a3bfeecc0 100644 --- a/drivers/clk/clk-stub.c +++ b/drivers/clk/clk-stub.c @@ -49,8 +49,9 @@ static struct clk_ops stub_clk_ops = { }; static const struct udevice_id stub_clk_ids[] = { { .compatible = "qcom,rpmcc" }, + { .compatible = "qcom,sm8150-rpmh-clk" }, { .compatible = "qcom,sm8250-rpmh-clk" }, { .compatible = "qcom,sm8550-rpmh-clk" }, { .compatible = "qcom,sm8650-rpmh-clk" }, { }