Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp624607lqp; Sun, 9 Jun 2024 11:23:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+/asIcmV7YSkfpjt+ClG9w6xxSCEfkqGhkvTotTVG6S+/PUcBg3CHy3M6rlfRcKeZw6bGMgmpgMbqOYXu07Bh3fc4l3f/Bb3cS6jbAg== X-Google-Smtp-Source: AGHT+IG1w0ZHStV3RKCVw49kj9C3uzAOpvzL4EFfzHW/r8IAqAjS9164jW2+M0BWDdj26JYTcxRW X-Received: by 2002:a05:6358:280e:b0:19f:4b31:962f with SMTP id e5c5f4694b2df-19f4b319a68mr270581055d.32.1717957406793; Sun, 09 Jun 2024 11:23:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717957406; cv=pass; d=google.com; s=arc-20160816; b=KlqQxplikdQP/CEP8VaC53xTNG6MTzivwQa+X61cTFmtJJYbO0vRCMTDoafHpBIxbJ VeewpG4sxuNxHQEFQyROOQoD+GWzMS7bS4WUOV7EP5HKY53ezSUZlmGKMNiK0ymN1xIL RAk9MKv2ID8/jZ5NZU/MZxQfgXd7txi1F8s8WLFSCuXOPsJ16dvE9yqo4ZJPSDYU07Vn kRxNXitym8qbH29r6GsEgKejk30AuMhCaQD893hOGUcBlYaRGa4fKN7zBVSRTe2wSvp/ RyJvCNd9HGKOcU41eapBzYcAusLxzPYZzxCVtBWG13q+4qmzN/DFpF2x8jDE2K4CyLZe VvNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3gZSh9n4VoihrqMJsLyugkkv17qMI/zEJG5hw5YFK4o=; fh=lXonOYgWEqmYN6x24pTceQ4RBs/v4LKarTvcGhWutq8=; b=OQrFpEGYe3wLcGrCvM3XkigaS9SFak7yxOGFKsYD8bqginF/bfaOsEc5QuutWwR8Jx PczWHjIFpu6F1SkkVkblTGxSiudwvbQBu7hoeo38bIB0Rc8v+A19fTRteus4SzH7u7lA ogZsja9acXx438ZYgJGmwKKYSMLAl2iNqdvneOhK/bUOCRSpyrzJiikwKtBY9MkxdwU9 cL6wiGrE6+/cWHuZl30p206QeQXvm33QJP1xp7iNa5bfAqsKrAvkTtixSznAZgkylMYw uA0BKAwfRa/qcBQBbv/bLOuIUor87wmphyyPuUk0leGWrbDS3rRbLk+7SuXSwufCL4Qc 07/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=edjMIEDS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de25eecf7csi2190683a12.422.2024.06.09.11.23.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 11:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=edjMIEDS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 52C09281515 for ; Sun, 9 Jun 2024 18:23:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C09816F2E8; Sun, 9 Jun 2024 18:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="edjMIEDS" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C4A25C8FC; Sun, 9 Jun 2024 18:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717957311; cv=none; b=CZNCh3NUvWjhGK7N6BDt1VFDpEG+KRKcfzwpuhLwD/Q3Txyc/ErdFgpy+hXnHV74q0hg0LNlFg/eJzcaVQA/IAGcgSqfbOnbU5cwA2/H5HmgygAlZmBPFE8BEd6By2TghEk/YDK45cY96KTkDXM23SCdo/Kf4nx3QyouekPB5Lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717957311; c=relaxed/simple; bh=49NIrx6iEwmU7QlEqnIzslRrjtAjcvfG52aOoP/2WZw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mFTzEdiPl+33JgX2t1TYe2hRHgFUVrt5EKi6f/muPpbO08qS20ywiuaiIf81iuzmaowYlBqY6tTdjAAxr26BT3S+uB221kVmT3LyO1DG12Y+aKoI8idtHd8cNQyBqSF4sr2lx98ECUwHraSkLLlZnlf8Mba21w8ms06l8dBPYmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=edjMIEDS; arc=none smtp.client-ip=209.85.208.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2ebe40673d8so5013861fa.3; Sun, 09 Jun 2024 11:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717957308; x=1718562108; darn=vger.kernel.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=3gZSh9n4VoihrqMJsLyugkkv17qMI/zEJG5hw5YFK4o=; b=edjMIEDSKvSZRSr45u+Q3+wQab8/Ss0/jxoTpymeMUyLLOOLc6ZRbOYlDilNjvZd6C Kj5vUoRcNkDh7LPwwbGrUZoMGgBc/9+gBuyDF6LuuW5PlArD2Bcmy/pnTz3FmAOSOoyu 2R42gwQs1/FWauU9hy/l6lxMwrWz0KugkkN3GD+qYLHZIJcKvlw4mqZpVMqJZvh3jhl4 m2Q3+j56mPb6uwAnHKalYmhZOdHt46GMBPOTYOqkYXaZVMjRGKJG6QK6jn4hqLxePaCo g3NMrl9/8liM/7j7+1WUQTrLkhtaCQUj8D2XBX/53tjkBf0NPUfB8QrB5Sh0w1mWJQjm R45Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717957308; x=1718562108; 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=3gZSh9n4VoihrqMJsLyugkkv17qMI/zEJG5hw5YFK4o=; b=khATeflfF6XDkwn/sv4TTLGAWI939N7NkPL4fAl4BI7IZOr9PUmgn7P3Vs6dixb87k u/ro8l4DodfURvRDJFuqqugjykBDJUiHeyslvtWJhzrqPACNtisptfUZqZ8cg24/ui1R 3dWViXeUXsnjERixqjf8Con7xENkilQ8IEm55p8V4NZbR916c94U/USEpNp1OzmB3+Yv wJCejCnI3XWlzHkJiorzVaZA/Lxlh6lOdrTN/jILjCWpD1XgI6NaYD08WcegC4NclYOA bmUDEkjrwyORgjxyLZQfqp1TsOhSIuemNt/j3eSHIWkvQaeZvoJSffFZZXxO6bQ+TGKx F5Qg== X-Forwarded-Encrypted: i=1; AJvYcCUSuptMfX+mygn3s9hyWYQNxOaFVqdolUNmNYpfNgVVxFT4bwcVhe+QoQyUaEYMvQwGZ/OkWlbruIf1rStCCp4bpZ1+rUM7lZ89utuokBeeJOCYAufArAvHSDEjOC5yJWKINyJXq9vJeaGkOTpsWMCqF8AA1yj4XiM+ybH/FjiLgC5gTBD2H4lGOvTZ4iLdlYYA4eiRnP6VWz3WaXBWA69abA== X-Gm-Message-State: AOJu0Yyu9oXR8YPi6mamGhr9+aSdhh5Lxj3RVjCxFuUl+tgiy7hnl3T6 iMw5yJx1Y+qBa0IU/smWJ8+6v0uzPSVYgwk/W6SqPxhOE/PWgxUJWYYr/6DK X-Received: by 2002:a2e:bc09:0:b0:2eb:dd68:b522 with SMTP id 38308e7fff4ca-2ebdd68b898mr20280901fa.41.1717957307656; Sun, 09 Jun 2024 11:21:47 -0700 (PDT) Received: from localhost.localdomain (bza83.neoplus.adsl.tpnet.pl. [83.30.46.83]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ebd5a63bf2sm6679841fa.33.2024.06.09.11.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 11:21:47 -0700 (PDT) From: Adam Skladowski To: Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] interconnect: qcom: qcs404: Add regmaps and more bus descriptions Date: Sun, 9 Jun 2024 20:20:59 +0200 Message-Id: <20240609182112.13032-7-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240609182112.13032-1-a39.skl@gmail.com> References: <20240609182112.13032-1-a39.skl@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently we are lacking descriptions of regmaps and buses, provide them. Signed-off-by: Adam Skladowski --- drivers/interconnect/qcom/qcs404.c | 41 +++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/drivers/interconnect/qcom/qcs404.c b/drivers/interconnect/qcom/qcs404.c index 91b2ccc56a33..f9b508a56588 100644 --- a/drivers/interconnect/qcom/qcs404.c +++ b/drivers/interconnect/qcom/qcs404.c @@ -1067,10 +1067,22 @@ static struct qcom_icc_node * const qcs404_bimc_nodes[] = { [SLAVE_BIMC_SNOC] = &slv_bimc_snoc, }; +static const struct regmap_config qcs404_bimc_regmap_config = { + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, + .max_register = 0x80000, + .fast_io = true, +}; + static const struct qcom_icc_desc qcs404_bimc = { - .bus_clk_desc = &bimc_clk, + .type = QCOM_ICC_BIMC, .nodes = qcs404_bimc_nodes, .num_nodes = ARRAY_SIZE(qcs404_bimc_nodes), + .bus_clk_desc = &bimc_clk, + .regmap_cfg = &qcs404_bimc_regmap_config, + .qos_offset = 0x8000, + .ab_coeff = 153, }; static struct qcom_icc_node * const qcs404_pcnoc_nodes[] = { @@ -1122,10 +1134,22 @@ static struct qcom_icc_node * const qcs404_pcnoc_nodes[] = { [SLAVE_PCNOC_SNOC] = &slv_pcnoc_snoc, }; +static const struct regmap_config qcs404_pcnoc_regmap_config = { + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, + .max_register = 0x15080, + .fast_io = true, +}; + static const struct qcom_icc_desc qcs404_pcnoc = { - .bus_clk_desc = &bus_0_clk, + .type = QCOM_ICC_NOC, .nodes = qcs404_pcnoc_nodes, .num_nodes = ARRAY_SIZE(qcs404_pcnoc_nodes), + .bus_clk_desc = &bus_0_clk, + .qos_offset = 0x7000, + .keep_alive = true, + .regmap_cfg = &qcs404_pcnoc_regmap_config, }; static struct qcom_icc_node * const qcs404_snoc_nodes[] = { @@ -1151,10 +1175,21 @@ static struct qcom_icc_node * const qcs404_snoc_nodes[] = { [SLAVE_LPASS] = &slv_lpass, }; +static const struct regmap_config qcs404_snoc_regmap_config = { + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, + .max_register = 0x23080, + .fast_io = true, +}; + static const struct qcom_icc_desc qcs404_snoc = { - .bus_clk_desc = &bus_1_clk, + .type = QCOM_ICC_NOC, .nodes = qcs404_snoc_nodes, .num_nodes = ARRAY_SIZE(qcs404_snoc_nodes), + .bus_clk_desc = &bus_1_clk, + .qos_offset = 0x11000, + .regmap_cfg = &qcs404_snoc_regmap_config, }; -- 2.45.1