Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp189461rdb; Sun, 28 Jan 2024 21:12:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJzkN+UPd4M9558TCbL50lgFnTDX5h0qSqH1uRB57B4lXYL9E5/xSjhgevubHgQVhJh91B X-Received: by 2002:a17:903:244f:b0:1d7:8a03:e23 with SMTP id l15-20020a170903244f00b001d78a030e23mr6510040pls.65.1706505158400; Sun, 28 Jan 2024 21:12:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706505158; cv=pass; d=google.com; s=arc-20160816; b=Gyu0S1wPOOi/svm9oLTBOlOXtyO+9aMy/C5QYzYFbPw5uWEGMIuZWHrqVn10X19yPy IVjohPjYOxg1CZirug/xpyfTQJebK/UDP4uC8f8n1qcz7Q1Ck8OXfzPPheEXDeKDOuHE AgUZKTH90ii/tbn93l379LChBMeJkE0pxWgfTpsHZmnQ77SzQ5c61ON0RsphjLs4HUZy 41/8u6Bdq60PQQDJCFtrfl9rc5O958QmMbc1pfkmYXwR+AWgUnqvEfSdHp63OqAuMcix jyt5Eb0RnS6z0sbAGiWnFPBZvbgjvel4fDCs0oYuBM8drL1jqK5rP9DdlpkOcZMbRkHV uxnw== 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=NJz8aSU3oQNioLkBudLKZiN7/dUWFSg/MY79PWnzlNc=; fh=iybeK/k+v7NLQNOHe0GrPWYDMHAIJDNDDcCKip1/kCY=; b=LFxtuMJlcRVcRDoLkYax6JWBuFQFO3XM/bcYQalecaa7dKyNiXKUADn59c2uHN3qKr SvyGW1kLB05KYILV1uXLCcZCD3+e36yh0uKj6QlDjbCw9g3WnYQ0U2r37nzlqf759rqQ 5wZIuqkYznLKykwEvS13NZEne786W3oInMoOFXhBUMOCfmhIURImtK+XQWcNdmC0UPhN mzdqzQti/zUfTM+pnVPeKlnfl9JTnT/JUMXqN0ZPfGAqnZNhE4iAvhlouSeK9mR1bcUh YHrgZL64NKwnLvhhR/OfdkJFGq2KsTNJNMYvwqMQlOveY4JqzNQuZmAHt/gWkcHgDhFX 98iQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=O13vZzux; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-42179-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j3-20020a170902f24300b001d8f111804csi229083plc.653.2024.01.28.21.12.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 21:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42179-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=O13vZzux; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-42179-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 9E91C2819AF for ; Mon, 29 Jan 2024 05:12:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23AD84C601; Mon, 29 Jan 2024 05:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="O13vZzux" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A6D741C93; Mon, 29 Jan 2024 05:11:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706505120; cv=none; b=KippBJufRh3KN73U6eYRaZnSgKL8Ary2QtbcYw8gN9lN1NoBQQo+eh3YSSTAmSe/ixioKcC0Ga11Ec9/6Iv6/TrNigiWHaUbHB13qprHwG0frknlBE6H9jxInRm/XARsMWTxEw/9QwJIXmfNV46KsBtVSJNphu51JgiFLF8ahps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706505120; c=relaxed/simple; bh=SuZ3JFoiYofL4Xuqfr4nTGd+ipqF15xaIeMMiJvK6l4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F2RJN9qaM3G8jfcn8/NSlf1mKSIJUdP9EwGm0DkutMqmwLJCYD1XqoOQuR3whmOY95qa5tjdoU7xb1X/DFEgvvtYJFuSlej0uY8yzUR5N71dzYimfNWVh6rjE0lOlfIEVuXtTlE2ZdY6N7I2SXZ/NGBaEIw8el9GFEJ42LqvXiw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=O13vZzux; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40T4TY3g021129; Mon, 29 Jan 2024 05:11:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=NJz8aSU3oQNioLkBudLKZiN7/dUWFSg/MY79PWnzlNc=; b=O1 3vZzuxbbL4JVx8QNikq1dNadsjbuxfYgOoAebCJp3mItDJmStRxHuzJD5uHdXmtI yDzmpEqWhbQ1lKaIoJGmwQDsEn5qyJossaX9VljzOHqAY3yRMQpXRSHZX9gE2xm9 KDUuqY1dvUi0EsHVsytWQRYUe2+/G0S2CFj+Prqf3mUnWIcjOaY+ofcDURGls1dI KDradieMxScW8F6fMQDwQZcAUH3CSbCnVTZQmXKVNybsBRhnhy77XIw/okcDrxLu Oanm5M+Y6W0aHR9Joqw83Z6RJcpBEz89x3NTxNof69GxWA3BgHYgx0P5UqTtplTS TraQqvQgYxJyOnS4ofIQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vx3t9r5hy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 05:11:33 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40T5BWXF021318 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 05:11:32 GMT Received: from hu-devipriy-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sun, 28 Jan 2024 21:11:25 -0800 From: Devi Priya To: , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V3 1/7] clk: qcom: clk-alpha-pll: Add NSS HUAYRA ALPHA PLL support for ipq9574 Date: Mon, 29 Jan 2024 10:40:58 +0530 Message-ID: <20240129051104.1855487-2-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240129051104.1855487-1-quic_devipriy@quicinc.com> References: <20240129051104.1855487-1-quic_devipriy@quicinc.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 Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: yiQcEQ1dubYuV9EDg7LVaaZdh2JJm_yz X-Proofpoint-ORIG-GUID: yiQcEQ1dubYuV9EDg7LVaaZdh2JJm_yz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-29_02,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=780 phishscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 impostorscore=0 clxscore=1015 spamscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401290034 Add support for NSS Huayra alpha pll found on ipq9574 SoCs. Programming sequence is the same as that of Huayra type Alpha PLL, so we can re-use the same. Signed-off-by: Devi Priya Reviewed-by: Dmitry Baryshkov --- Changes in V3: - Dropped the extra new lines in clk_alpha_pll_regs drivers/clk/qcom/clk-alpha-pll.c | 10 ++++++++++ drivers/clk/qcom/clk-alpha-pll.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 05898d2a8b22..f5f380624ec2 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -228,6 +228,16 @@ const u8 clk_alpha_pll_regs[][PLL_OFF_MAX_REGS] = { [PLL_OFF_ALPHA_VAL] = 0x24, [PLL_OFF_ALPHA_VAL_U] = 0x28, }, + [CLK_ALPHA_PLL_TYPE_NSS_HUAYRA] = { + [PLL_OFF_L_VAL] = 0x04, + [PLL_OFF_ALPHA_VAL] = 0x08, + [PLL_OFF_TEST_CTL] = 0x0c, + [PLL_OFF_TEST_CTL_U] = 0x10, + [PLL_OFF_USER_CTL] = 0x14, + [PLL_OFF_CONFIG_CTL] = 0x18, + [PLL_OFF_CONFIG_CTL_U] = 0x1c, + [PLL_OFF_STATUS] = 0x20, + }, }; EXPORT_SYMBOL_GPL(clk_alpha_pll_regs); diff --git a/drivers/clk/qcom/clk-alpha-pll.h b/drivers/clk/qcom/clk-alpha-pll.h index a1a75bb12fe8..adade3919ce1 100644 --- a/drivers/clk/qcom/clk-alpha-pll.h +++ b/drivers/clk/qcom/clk-alpha-pll.h @@ -28,6 +28,7 @@ enum { CLK_ALPHA_PLL_TYPE_BRAMMO_EVO, CLK_ALPHA_PLL_TYPE_STROMER, CLK_ALPHA_PLL_TYPE_STROMER_PLUS, + CLK_ALPHA_PLL_TYPE_NSS_HUAYRA, CLK_ALPHA_PLL_TYPE_MAX, }; -- 2.34.1