From patchwork Tue Mar 19 12:22:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 781088 Delivered-To: patch@linaro.org Received: by 2002:a5d:46c1:0:b0:33e:7753:30bd with SMTP id g1csp1896110wrs; Tue, 19 Mar 2024 05:23:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXUP+phQejftaH5jtMk6TWPJ6yEeH/jYANbOgsHllMdMashS07JThgnfhCnP9nNxHXqzY8Xab1RgVrtEEzS52vI X-Google-Smtp-Source: AGHT+IGitmeRbxUBIgHDxUnX4HEv52zKfUvbD7AbMWZrM5Yz42XN4CqqmUvEu8gra6mDRx/1rcV3 X-Received: by 2002:a5d:470b:0:b0:33d:365a:64ce with SMTP id y11-20020a5d470b000000b0033d365a64cemr1639495wrq.34.1710851023248; Tue, 19 Mar 2024 05:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710851023; cv=none; d=google.com; s=arc-20160816; b=Sbac3fqrU6aN02z/Jsu2KHFaG0lhWxJKud549emfNa4ROlvY//n28no78q1hcv1BdR 4WG48W6HaCrq/fbDkDBhfwFb/C3VhIxsv5NX2gPAhhrlE+N/vxYM1mb2DYCE5qeUiI2h zhzIbL+Jp4jN6Ql97xy7mORzgxEHAH1cx5pY32k3JCs2CB9emt3d7yN10mFbSnoYBW6T jYvIdtfEK7mnWufJ8nP+4EtNqZppQNUM9mpQEU0n+LQch7jpc+SbV1+61AePzKe6jltk YHX1HuE6pn7VjjvMue0KRZMl9dASYeG6iPBK+iyNQcREBBrkqPBmOZz16OA3cla+ACjU DxJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=4lb8PEob9/JiYx6ZN3WF/j0PD2DXtiyVJcX5Mb4avcQ=; fh=gSVpyLKtvZ+QePPYgVwr0OwBuSQ/slJGUurC/y9msiw=; b=h5xhOKRLuRzwLR2sjwZH2iXlm6uoaeJiTw7dE1wW3i5+xxYRx+ZJJf1aoQzhH3NHxh y1+Ag8TWHDoItAdoRJEktFnAunMAhXRzcsPX9Y3/4u6zUJD69ekH3n+gjiNhZ53oamO6 jzmaRfAKN91WfFHvF+JykdBZfMW3oZsBaxN9b4rKaDrgkhScLUZUSQ8tWuouEBSKj1dS YaY9gth9pwQF+zpGZzGXu+0QH05738mSiSAmAyV1a5EPPuC4HqOY0M+vaBStVfW4LJuO bw4IhN5iTnWjAlOlM6zaUgNh8t5O/BuZatXoEiP9dklcB4ru+eyuondU/CLMekimFXnB JcxA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ESb3w9c4; 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 Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id h8-20020a5d4fc8000000b0033e2793be37si5846581wrw.421.2024.03.19.05.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:23:43 -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=ESb3w9c4; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3AA0F88078; Tue, 19 Mar 2024 13:22:49 +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="ESb3w9c4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F2A5A8808B; Tue, 19 Mar 2024 13:22:46 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 DDEE787F76 for ; Tue, 19 Mar 2024 13:22:42 +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-33ec7e1d542so2993398f8f.1 for ; Tue, 19 Mar 2024 05:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710850962; x=1711455762; 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=4lb8PEob9/JiYx6ZN3WF/j0PD2DXtiyVJcX5Mb4avcQ=; b=ESb3w9c4Vmf+ZHL4s2O7TGBvBJfZVmZYLrVX34W7jZ+olGXtq0mOF5xLSYuvmzIeuA qnR5V+L5qIAPONDqw3IAVpC+21qbNipKisxDipRFmeOmX9f1axHsqskLwCzir1Y6isVc lg9XxwHS8Q5yX8gnkKJ9c/mXpmp6CLyGAWDvKef6kP3TAhRooCdvy8hSrfD/3Lot6t2J IhSAaLq7Zfw80tqZrZJ87apHG327a9BrPgZJfWhtAafH6rjNWb7Rytj0mFVVbNi1jFr3 4n+TrWaL1c6zjM1irapY+br4Rf2dlpSG2IgxlxBVLZ4M/yXZxBsUaOYZvFNhJKv5kle4 5omQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710850962; x=1711455762; 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=4lb8PEob9/JiYx6ZN3WF/j0PD2DXtiyVJcX5Mb4avcQ=; b=WJByfVFu1ETZL00Mww20FMRZSThInMBTwwBX6zX5/UziUIVEm2XEPui7CgaGLTiQE9 dnMFs92Sjega0Mdsw9ar8Cher3xJKW7/6bKpJWxvvuGDHXqc+9I7B3KOPty1IuGbvVug 9fuVQ/wLNt6AaNnoIYQMN4GQx2KgnoCZcLEWg9vZCgc5bg22YRxWli5FpZNrP5r4wjWf TA7Ej+nMAM34W1VLfgWsw04SJrMo1K92iAqM7ghL7+IvTzXm+g3egPRpolOpbiZfO613 J+xIfogfJ2NZGmAw5zVH0Py89KUKZs5Ux3k1zsfVI3+9EbAw5eOdOxLYHZWoJwQOsmyj Hc4A== X-Gm-Message-State: AOJu0YxhkcjiwnmdiG8itXfxHRzhRbQzJOn6iFy+JF0ODJ1+Fmhj13wO MFs++Sg5aauUu6bL25Gep/Sy/6198zpZFADeUtArrzMr9KevhdfkB6QbJA2xAshbyhvnbZFLU5y K X-Received: by 2002:a5d:62d1:0:b0:33d:524f:7bfb with SMTP id o17-20020a5d62d1000000b0033d524f7bfbmr1515640wrv.71.1710850962272; Tue, 19 Mar 2024 05:22:42 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id du18-20020a0560000d5200b0033b7ce8b496sm12170498wrb.108.2024.03.19.05.22.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:22:41 -0700 (PDT) From: Caleb Connolly Date: Tue, 19 Mar 2024 12:22:05 +0000 Subject: [PATCH v3 06/14] clk/qcom: sdm845: add gdscs MIME-Version: 1.0 Message-Id: <20240319-b4-qcom-livetree-v3-6-e1b38d9b4fa4@linaro.org> References: <20240319-b4-qcom-livetree-v3-0-e1b38d9b4fa4@linaro.org> In-Reply-To: <20240319-b4-qcom-livetree-v3-0-e1b38d9b4fa4@linaro.org> To: Tom Rini , Caleb Connolly , Neil Armstrong , Sumit Garg , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1665; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=NiVaW0NdVxESjcJwJJNmAYR7pzUuvaSjYCNONaTI9A0=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtSfzZ3rPllcXLXE2C+9/N/tJ5dWsBl9b9y1T/fwBJ3cB 9V6Mp4OHaUsDIIcDLJiiiziJ5ZZNq29bK+xfcEFmDmsTCBDGLg4BWAiNqwM/8zPPTv9UsRE7usr SdmV29eXhaX8/tc34x9js3Lt5DL5KiuGfxqpVuVMjN+fzbzOULEhuvPe4oifG1fb7fPYn3bmeDD T58MA 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 Define the GDSC power domains for SDM845. Reviewed-by: Neil Armstrong Signed-off-by: Caleb Connolly Reviewed-by: Sumit Garg --- drivers/clk/qcom/clock-sdm845.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/clk/qcom/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c index ccb0cf245d33..b7154360894a 100644 --- a/drivers/clk/qcom/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -145,13 +145,31 @@ static const struct qcom_reset_map sdm845_gcc_resets[] = { [GCC_USB3_DP_PHY_SEC_BCR] = { 0x50014 }, [GCC_USB_PHY_CFG_AHB2PHY_BCR] = { 0x6a000 }, }; +static const struct qcom_power_map sdm845_gdscs[] = { + [PCIE_0_GDSC] = { 0x6b004 }, + [PCIE_1_GDSC] = { 0x8d004 }, + [UFS_CARD_GDSC] = { 0x75004 }, + [UFS_PHY_GDSC] = { 0x77004 }, + [USB30_PRIM_GDSC] = { 0xf004 }, + [USB30_SEC_GDSC] = { 0x10004 }, + [HLOS1_VOTE_AGGRE_NOC_MMU_AUDIO_TBU_GDSC] = { 0x7d030 }, + [HLOS1_VOTE_AGGRE_NOC_MMU_PCIE_TBU_GDSC] = { 0x7d03c }, + [HLOS1_VOTE_AGGRE_NOC_MMU_TBU1_GDSC] = { 0x7d034 }, + [HLOS1_VOTE_AGGRE_NOC_MMU_TBU2_GDSC] = { 0x7d038 }, + [HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC] = { 0x7d040 }, + [HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC] = { 0x7d048 }, + [HLOS1_VOTE_MMNOC_MMU_TBU_SF_GDSC] = { 0x7d044 }, +}; + static struct msm_clk_data sdm845_clk_data = { .resets = sdm845_gcc_resets, .num_resets = ARRAY_SIZE(sdm845_gcc_resets), .clks = sdm845_clks, .num_clks = ARRAY_SIZE(sdm845_clks), + .power_domains = sdm845_gdscs, + .num_power_domains = ARRAY_SIZE(sdm845_gdscs), .enable = sdm845_clk_enable, .set_rate = sdm845_clk_set_rate, };