From patchwork Mon Sep 9 10:30:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 826574 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp1923328wrb; Mon, 9 Sep 2024 03:30:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXMbhJ8o8wR7XYoAi1plKMOBN5F55rRfP1oPKAW5rF1i7fBt3zKQ4ZT7rofW0m3trTTBloabA==@linaro.org X-Google-Smtp-Source: AGHT+IE2Wq4sCus/rejWQAwVLxIPP1aJijnpLX61cRuX0chVU7Zzgmt6J10kHn2Gw03nJQpOsn1y X-Received: by 2002:a05:6512:110f:b0:530:daaa:271c with SMTP id 2adb3069b0e04-536587b3427mr5857470e87.16.1725877839621; Mon, 09 Sep 2024 03:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725877839; cv=none; d=google.com; s=arc-20240605; b=Wh5jSFfPDLXOOjLaLgh1XM8FzIFu7iuddf4+044/Ii0/fEDlfLHw7Kpqq2Y80i05YT YAHa5O1TWA6I6svBtcoMeZCq5pt0JK85I9mPdB6tx/i4FNvz++0tTe06Lb/V+ZxsxR0X Joo2lkYAVoToHbOvQ0MT71qHRaVIqH6hDaxPWF5IKM8pTKYbUFFI0Iix69bjvdORcXrR 6W3nbGnH1S0ITXxk2XIZVLiR+KXvVjeBcbNpQkfJW1FLcDqhZcY/iVf33+Dl7+8Cflzr EyZ+LOVksGjxxsrfvMBDKGRb0BMOjtN/FCiFM8lgrAJuPb5hPZ+cU9PjtmGjAsWzJvN4 dwiA== 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:content-transfer-encoding :mime-version:message-id:date:subject:from:dkim-signature; bh=9WUVUui5kQ7yz63vIDdE2W1GzhpKYGd87s3MmwT/DCo=; fh=etMQ72CWZm/tmMvErs/CQK7sJqa0sOqerP8G7xLv44A=; b=KP/AGOizZzWF2Gc5NAk5GNhg7/sTGgqVh3ePCGGeY1JsmLQp9vTPP7wGlHBN8uqJ0A duPCv0XnIjR342nvxrJlN2+kl1sORztjMUWMIzhM/9D9eyEbGOt/iZzRCI0plSCcQWYD NljqpeQzLY0xssc3lFG4yAvsX8i5JZoip51tcjthaFCRhV6V8nOCJMOxoDBh+EKlkWzI dDiPIC95Hdg7Iyw+D+U9UTTAotqQjLW5nIkeQ33flqVoHG9+3dgHxsQTV74d5lG2jtgn hd3DGCgX//TU2kR2KGJjMiRYcT4mq6aBjWh6W/UAKzC37/vnt35l5R0cPCezr7yc763F x+AA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fTCsM0dq; 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 4fb4d7f45d1cf-5c3ebd9ff2fsi3481735a12.464.2024.09.09.03.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 03:30:39 -0700 (PDT) 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=fTCsM0dq; 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 2F61688D84; Mon, 9 Sep 2024 12:30:38 +0200 (CEST) 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="fTCsM0dq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F132188D97; Mon, 9 Sep 2024 12:30:37 +0200 (CEST) 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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (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 9F11988D84 for ; Mon, 9 Sep 2024 12:30:35 +0200 (CEST) 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-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5c25554ec1eso5468608a12.1 for ; Mon, 09 Sep 2024 03:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725877835; x=1726482635; darn=lists.denx.de; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=9WUVUui5kQ7yz63vIDdE2W1GzhpKYGd87s3MmwT/DCo=; b=fTCsM0dqRokS+ln5IHwGqR57y/UQy5Xna83Q/ruNqdNZ41GE2xvvl/2ZAyrxaWCyCu 3bf9wO/JhafdBV/DBEVe8o1OzKhDT69+FZX4zr2mi0GLrnh2AMWhiAirZJvqc9Vk4lXm cHXJcCs2doHzdqXqUPvXW8NA7X848NkZi4ggDtB7vI8bFoS99TzwzszcyC1V6eMFvmCj Gf8K0S6d/6W8Cy38z2/y69iRykCShoDf41lRMI5eSO66Qb4x/Z3bCk7HECfpnV+2+PBJ rlW0ik+zSBBo8VlsoEysXBmpu9ZuHZfUy7CGiBeT0bNHEO80mWUfhU7iCksC6QOPb37s ABcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725877835; x=1726482635; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9WUVUui5kQ7yz63vIDdE2W1GzhpKYGd87s3MmwT/DCo=; b=s1tBKtZQHhukpnaK5RXtw3HisiyGk+EQM2HalcXxD7KLtZkeAaMGHGwC+uSkOu+Dx0 8ZXhre1hEIGQZ3kymeATLNqvrx5oWQHedbXZm2kKNkbcy3JgKNjshz5DWFrUwnKedn4q sVLAxm6bns51RTjiF/QfUiWUL9hL83YSJzK67T+R0gUbY+0yFjXerzWi7OM+Wv/g0UMb F6L2zXOPCBBqiOYgvB6PD1zixsj4a3mBsJO3Oy+Z7dPJG6pLaGnCytycmAXaQzY3ZrZY z8zLLDEzN3fAIlc9EKSww4CYIFGeQZVd0COwDL1ZruXPlfQCSqyYZUMBJmTHvBtzt+CF gygw== X-Forwarded-Encrypted: i=1; AJvYcCVp74Q6TtC3FLWTnQ4hTQf4AQnHmTlHatbaNZ0jXYLaFXETo6+ZijZmWZAfdZzOvU6AxYH7010=@lists.denx.de X-Gm-Message-State: AOJu0YzLlH009xfhRu7x2G/FxVpzn6nHPAoC+l83hHJMSIZM+w73JDxH FbWLdKVz8RAFlqorXdIROf6+7s5tYYHgiCrFgeG/ptmJ3FS1lQHayQ7nvIuAWGM= X-Received: by 2002:a05:6402:1ed4:b0:5c2:e888:4cd3 with SMTP id 4fb4d7f45d1cf-5c3e974ba73mr5991285a12.35.1725877834844; Mon, 09 Sep 2024 03:30:34 -0700 (PDT) Received: from lion.localdomain ([2a02:8109:aa0d:be00::8db]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c3ebd46733sm2822287a12.27.2024.09.09.03.30.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 03:30:33 -0700 (PDT) From: Caleb Connolly Subject: [PATCH v3 0/2] clk: add a stub clock driver Date: Mon, 09 Sep 2024 12:30:31 +0200 Message-Id: <20240909-b4-clk-stub-v3-0-ef09307534d5@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEfO3mYC/13OTQ6CMBCG4auQrq3pL6WuvIdxAbTARELNFBsN4 e4WXBhdvpN8T2Yh0SP4SE7FQtAniBCmHPJQkHaop95TcLmJYEIxLQxtFG3HG43zo6G2tJWxpi6 170he3NF38Ny1yzX3AHEO+NrxxLfrx1Gcbc5uOITkMdLEKaOllbpxomXG8fMIU43hGLAnG5bEF /h/JIk8FpZxWWntpZI/43Vd31dpHJPoAAAA To: Tom Rini , Lukasz Majewski , Sean Anderson , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: Heinrich Schuchardt , Ilias Apalodimas , u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1972; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=L0Y3jnTzgpDcYz8/pE5xRV2g7d1K6/tou9U99sY0nRE=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhrR75zySf7zxFVrms7HqquuPl/XREUtdzY9XTecU3PaD6 9a9aYWPOkpZGAQ5GGTFFFnETyyzbFp72V5j+4ILMHNYmUCGMHBxCsBEHD4w/LMsSJ/4+/nKxY8f dFXzfTj8zOP6qy2/TbyPqW/ZzjFRcDEvw3+vHT/kGNvkm18G+qnVv/67u+VVp/029RNLPi1d3v3 sxvJ9AA== 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 As U-Boot works to align itself with upstream devicetrees, there are some common issues we start to run into, that of hardware blocks which might be important for an OS like Linux, but which aren't useful in U-Boot. For example, the Resource Power Manager found on Qualcomm platforms includes clock controllers and power domains which are only useful for managing power consumption and enabling low power states. As this is not at all relevant for U-Boot, we can safely ignore these devices, but we don't have a good way to communicate that to U-Boot. As an initial step, implement a "stub" clock driver which can be bound to these devices so that drivers will work as expected. Add the necessary compatibles for the rpmcc and rpmh-clk controllers on older rpm (non-h) platforms and the sm8250/8550/8650 platforms. To: Tom Rini To: Lukasz Majewski To: Sean Anderson To: Caleb Connolly To: Neil Armstrong To: Sumit Garg Cc: Heinrich Schuchardt Cc: Ilias Apalodimas Cc: u-boot@lists.denx.de Cc: u-boot-qcom@groups.io Changes in v3: - Add 8250/855/8650 rpmh clk stubs - Link to v2: https://lore.kernel.org/r/20240527-b4-clk-stub-v2-0-29013855e343@linaro.org Changes in v2: - Take the other discussed approach of just implementing a stub driver. - Link to v1: https://lore.kernel.org/r/20240410-b4-stub-drivers-v1-0-6935bd2c07d1@linaro.org --- Caleb Connolly (2): clk: add stub clock driver qcom_defconfig: enable stub clock configs/qcom_defconfig | 1 + drivers/clk/Kconfig | 7 ++++++ drivers/clk/Makefile | 1 + drivers/clk/clk-stub.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+) --- base-commit: d0f74bd417daf6492975ce346843ba0767caf51c // Caleb (they/them)