From patchwork Mon Jan 29 05:10:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 193241 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp368790dyb; Sun, 28 Jan 2024 21:12:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGL0Fko7USPCcZ2qudL7ybE7aF8lF0pj/xFGUarFLkvi4jyY07G1oQYi6su2K/HVGn8HsY3 X-Received: by 2002:a0c:cc92:0:b0:681:927c:c19e with SMTP id f18-20020a0ccc92000000b00681927cc19emr8065718qvl.37.1706505178831; Sun, 28 Jan 2024 21:12:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706505178; cv=pass; d=google.com; s=arc-20160816; b=vdJkqWmgpoBiUnblwx6zPzI7HvO/PeC/ruTUA2nPbcEFw8+Ol5GK1aYPIOA6MGSWlq eDN85/wOpCIOHGyaZ9ou5oayb5dgYKf4HYq152CNazYcawqO5AbFHaI8dYCvzoVSyVGN jRVWQKJHErkui/vYXJrMe9yOqgYRQt3yUBuu4cZNhlseza70iWSlp8OhYG5pe1fPVPUJ 8Co9hu8l2vyBSaWylB5nESNEVOVuSOBmEj+UFQty6xrhABaoX4q5uUcF4B9loYYSNNwF NnkGaTlU+To/TvcKZB0mxITWsL5GDsLiRgqap3M8TW9Zg0R1wh/D2cGSlCZqsLvbg4eh 2Ugw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42179-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g7-20020a0562140ac700b006841e1bbc0esi7424777qvi.320.2024.01.28.21.12.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 21:12:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42179-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42179-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9E4171C21C8D for ; Mon, 29 Jan 2024 05:12:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B9174CE04; Mon, 29 Jan 2024 05:12:03 +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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789400374683700196 X-GMAIL-MSGID: 1789400374683700196 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, };