Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp303800rdb; Wed, 17 Jan 2024 02:26:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3yLV7ngIhZjCZrerpb/rRSF89wdNN6ASVgb4scD34VzMU58A+R3Gi0lWZjBDnAEVqeWGR X-Received: by 2002:a05:6402:1d36:b0:559:dd09:8b83 with SMTP id dh22-20020a0564021d3600b00559dd098b83mr353737edb.18.1705487163311; Wed, 17 Jan 2024 02:26:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705487163; cv=pass; d=google.com; s=arc-20160816; b=wttAWQTMGeRjE73s6vzuOMwdsEQkQ31uy1IVIUsDXqEJzlnwQsjGyzv4OOLpGWrdk9 9ABQTy85xEYrTjiK+JGmNmFP4loinnhmJDRJqpJhZk7RmluyXjkZfwaj11nec1Lc8Myh Bzv7Mny6HtKF+ie9y/80LzyWvf5tVlz+vj5him/srGIWOoQAfQn1wTq/J3hXH8KBF0x/ bC2juMvMktUnjKt3HIZisv7BSaBaQ2bE6l5q09hKvU+zlDYWZJ88MSg6c3BucJ+Wclzo lQwaRv9b+E/m5Q68Sf+nIejRXSWShNouZeHE21V99H/YrPnRRpc9EPGocin6eOJECnmR 7yhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=hrjlcWfn/pDpqQxIFmiRolfpjezwCtleMfj2jxEGGng=; fh=Klnj2H2jh5LsN4+6p55CGshGVhSW1jAIqspvf4dIuyE=; b=RVI/z75kcjKc4D+hyBzjkJj/Htgj337uD3rCFmBfgUHRNQxYLHIa7OpOfm1GdUWTUg Xi9ghbfPf6jBAjkipY/wLFruj5THp/NuDwcQ0Y/9IGkJmTQBIliyVNPbta4q45Db0e3j suQZxUco/gLcd6GLzbu5cplW7KEiFPL2MzP97aKo4az4O4VvYiyhhC/HvmxD6t4H3Ebe bTvOU0jlXTZhCPTxAiT2gRGCrXSMaWcPXhQx5DhbdRLV9jQFCiH+bVsqhsQCpF6QPY2O vXXWvuNEpnFndjQgt0uoTuLzh8Z2v9+rqpBeGXM0bHZ+mH0HhXdbaLV1hXTH0ERTeXmO w+Ew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@8devices.com header.s=8devices header.b=eevvGNsl; arc=pass (i=1 spf=pass spfdomain=8devices.com dkim=pass dkdomain=8devices.com dmarc=pass fromdomain=8devices.com); spf=pass (google.com: domain of linux-kernel+bounces-28819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28819-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=8devices.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x11-20020a056402414b00b00559675992b4si2505095eda.593.2024.01.17.02.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 02:26:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@8devices.com header.s=8devices header.b=eevvGNsl; arc=pass (i=1 spf=pass spfdomain=8devices.com dkim=pass dkdomain=8devices.com dmarc=pass fromdomain=8devices.com); spf=pass (google.com: domain of linux-kernel+bounces-28819-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28819-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=8devices.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A73641F278D1 for ; Wed, 17 Jan 2024 10:17:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E77B14A8C; Wed, 17 Jan 2024 10:17:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8devices.com header.i=@8devices.com header.b="eevvGNsl" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 0558A1427E for ; Wed, 17 Jan 2024 10:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705486644; cv=none; b=uxmn5pN/hT+Pluc7YPkXtzhsjpg78HmB7GirlUQ3POd+nqWya+hSSFcJY0YyXgxXP4ojOR9Tt15MGgcz32XphknZyLRA1C5peM4/o6ZW5HkdIDq69Vmt1ieF0HtEVMV3E3ZmLQ0iMo1A/MYzprocSOYEMzQ9ttHNDMW1rGPAaz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705486644; c=relaxed/simple; bh=754t0uTULSRpJAMac1CD95NbzZnhj+FFC+mGT+l7NBs=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:From: To:Cc:Subject:Date:Message-Id:X-Mailer; b=dKV3F4C/WXkC5LnNsJofHSRkjDX6br4QchzRzhnxukFf3FOSQCCsLXspTpYpb8VeFT1I5cMeOIkAwlZJBCQlo4/0aSXiTzmN4c1RB/abTCh6hAV0/jLpIwH+vXnoer3AQFGIWafbzx+HWYGFhiXnGRMC9zUYPbsOMIvVJaSim84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=8devices.com; spf=pass smtp.mailfrom=8devices.com; dkim=pass (2048-bit key) header.d=8devices.com header.i=@8devices.com header.b=eevvGNsl; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=8devices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8devices.com Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a28a6cef709so1199195766b.1 for ; Wed, 17 Jan 2024 02:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8devices.com; s=8devices; t=1705486641; x=1706091441; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hrjlcWfn/pDpqQxIFmiRolfpjezwCtleMfj2jxEGGng=; b=eevvGNsl/Qb3lS8PTmOKBvhbO9UPT+rbpR5GQgPEuB53zNNZMVv7g+kSfgy853/IcG NXralb7aTjJQ+agQkMDmMTZ0RcGMt1th6zWD3TCzGe2JS9GFpaqQcCCCXPjIAi+ZuXVz b9H41hPSuJMSVg0OqvhOYAuSZmQvmF1MdEGBkPbEiRrK1LYciYe7b5cdBajd6AB/1+rc p3WuCESQD27ksH03Y451WxgalSHvyHfv9/M5iEmVB1ZqkZUJyFz173RxMzW+psqFmQNw h8gegC1Njm5QsCrtmdqAj8rViVqGyc6Lysq/QIZpJ+CGwq4O8xXZ70TisNlWA04p316Z 3HaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705486641; x=1706091441; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hrjlcWfn/pDpqQxIFmiRolfpjezwCtleMfj2jxEGGng=; b=KlfaC6sSNtLEKVvOmRNRe/RCZHZS+3WkoICzv8IFbx2jRjVaNpbcjb6wL7v6/gENJp mtsTL26lDF/z1Tn0yfL4XRe0FBSAiGicuk4ZgYq/X+QOEccrz8MS+BwPQzyqAfym3kTH d/UqlLkWridQON0Bh+GpswAwqTvBi9liYnCYPhRakbNBDK+Oqmyws47rU9EN+U+ggHUF trc23xzDK2wRk+pvYqiShrIXleB7JqiO1UKX+Oj8Ep2nU4c0DCRNpDyH2ayh4eewbISI d74mnBWNsZEzuZhaQp8izYuJr3AVivkPZG/eHPsNVVuOPtTzP3bDfe4AEoLjZUQxTWSt WGYg== X-Gm-Message-State: AOJu0Yy91DY5ZQf3QUj1ypfsV/z0PAMUBCODQiMlMhU9Gc/SRb+OHmf1 mnXPx3/Ivdlv4XUMZUIgKF/vqwxSofLI6g== X-Received: by 2002:a17:906:2411:b0:a28:fd13:ecd with SMTP id z17-20020a170906241100b00a28fd130ecdmr3558696eja.129.1705486641393; Wed, 17 Jan 2024 02:17:21 -0800 (PST) Received: from mantas-MS-7994.8devices.com ([84.15.37.222]) by smtp.gmail.com with ESMTPSA id p12-20020a17090653cc00b00a2c56fb5ad5sm7558767ejo.21.2024.01.17.02.17.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2024 02:17:21 -0800 (PST) From: Mantas Pucka To: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd Cc: Mantas Pucka , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: qcom: gcc-ipq6018: add qdss_at clock needed for wifi operation Date: Wed, 17 Jan 2024 12:17:08 +0200 Message-Id: <1705486629-25592-1-git-send-email-mantas@8devices.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Without it system hangs upon wifi firmware load. Bindings already exist for it, so add it based on vendor code. Signed-off-by: Mantas Pucka --- drivers/clk/qcom/gcc-ipq6018.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq6018.c b/drivers/clk/qcom/gcc-ipq6018.c index b366912cd648..7cdaf7751566 100644 --- a/drivers/clk/qcom/gcc-ipq6018.c +++ b/drivers/clk/qcom/gcc-ipq6018.c @@ -3522,6 +3522,22 @@ static struct clk_branch gcc_prng_ahb_clk = { }, }; +static struct clk_branch gcc_qdss_at_clk = { + .halt_reg = 0x29024, + .clkr = { + .enable_reg = 0x29024, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "gcc_qdss_at_clk", + .parent_hws = (const struct clk_hw *[]){ + &qdss_at_clk_src.clkr.hw }, + .num_parents = 1, + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch gcc_qdss_dap_clk = { .halt_reg = 0x29084, .clkr = { @@ -4361,6 +4377,7 @@ static struct clk_regmap *gcc_ipq6018_clks[] = { [GCC_SYS_NOC_PCIE0_AXI_CLK] = &gcc_sys_noc_pcie0_axi_clk.clkr, [GCC_PCIE0_PIPE_CLK] = &gcc_pcie0_pipe_clk.clkr, [GCC_PRNG_AHB_CLK] = &gcc_prng_ahb_clk.clkr, + [GCC_QDSS_AT_CLK] = &gcc_qdss_at_clk.clkr, [GCC_QDSS_DAP_CLK] = &gcc_qdss_dap_clk.clkr, [GCC_QPIC_AHB_CLK] = &gcc_qpic_ahb_clk.clkr, [GCC_QPIC_CLK] = &gcc_qpic_clk.clkr, -- 2.7.4