Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp149406lqe; Wed, 27 Mar 2024 01:20:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBgAaDcsfqFpTP2EkNpeiVl8QIaokOppWOaaxw7QYsCB2SPLDlw1vDCfGZnlQV7NA6t1jSxNI7RKm3jqT6a4EqtHL6THBmUIdqMe3f4w== X-Google-Smtp-Source: AGHT+IFgO+JtgpNwHOX+Mo+3BAUBUwZ8sayiFv7vOa2SGnXBcQY+t+Woejm2ndliHs6L0QaBndnM X-Received: by 2002:a05:6214:2623:b0:696:315e:943a with SMTP id gv3-20020a056214262300b00696315e943amr4272501qvb.39.1711527630480; Wed, 27 Mar 2024 01:20:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711527630; cv=pass; d=google.com; s=arc-20160816; b=wihzUyd7KCQCHfZLHx1/k8PYqzjTRPynGdMHwz2zXfRRT3JSobTIIP36XjlfZgGDmU UnhdbsdhlcoHZ/oAtwQ2/H11pfz8UkbPWP5V5OPlLlLRUy2k5nsoj95J3cmxG6Ov74yZ +ivHx3C79n3PBQ30Xe2XtH4sqYqr9YkAmrtESuIRGY3Y+IlTNV7yOWPFxWKClti51EdP ubKduRHrmtcXDOd94qOAy94HhXRjII449USDYEU1LG6FBg4ZiAXk02oQhFxKY9kWyg7j 3fCOwKafYEPjbQs2vm0v95+dcHFwD17DULQ3nJsK3BJ7hrIILo7QjYEIDS77gBKeHDsj lEIQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=b1Dw41bQyXMFzFQyeT2fXuDbkes6K0mKY6009FjYA4A=; fh=P7+qBLbZ1ArJGMMTS39GUumoE59tkMzdbGlXOz4ngUw=; b=uWw7P6HwxULWs18lN2x8E+OErac6pijPJGEF1YH4MWKp+QWem4TAMK1cTT69alNlrJ uyRzRg1dnh3QB04Mh7KMWGQDV7Clf2Yhz/XGCsvW6c4MLSBcYa/GzjiKv3W3oPeWh/1h x+vFRJk0+coDQ9JaDzEYsnQbRBAZKLdxZXmewJIE/OxQFk3tOUa7+eZKOETZVCJTzwQW cwIgvYlZtDmx3zQgmivvYgGfxkS2+UaVJx4Ym9vw+sdqP/qmFjpcRO2aEHX3+ywfLJz2 Ux36QdVeBcaVfshrgDC0/P7IO9HBnqbtwap6VL3dPBhpwxvsSX9ZLMZlgx0UzbYwclqy PLFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="YP/y5dru"; 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-120518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jn12-20020ad45dec000000b00696b0e41d62si219264qvb.562.2024.03.27.01.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 01:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="YP/y5dru"; 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-120518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120518-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3745E1C26FB4 for ; Wed, 27 Mar 2024 08:20:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 249B72DF92; Wed, 27 Mar 2024 08:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YP/y5dru" 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 8339724A08; Wed, 27 Mar 2024 08:20:17 +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=1711527619; cv=none; b=XSBzmdw22Zt+gq9ZMH5rF0qBCnhZBTwZRbRd1W6mbHBx+7ceEeUUENYEeOlEbfEfY0QLoOivrh+UEgffK6FIH0f4o/JnkrpmELveeYq8kst0Xxm0g2wZvpQVVG3JUdZ54hWy5kDt2KtTJK6Qrnc6alD4GsT9hbOiWWoy9YAlV8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711527619; c=relaxed/simple; bh=4/FAYLTXQmjxdLbvd49UrSfamwGUSPPlHwFEhSJo3Vk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JMIOkh0gBK/VdSRVZ1okzq17hrwP46oZQcIJfWPLzWHSt/GKu97K5/1TI/xLsY8ihEeKiFkyWXQS/ew5QSLGg58t2+Fif8FoCtEuRShiLmne3UrsfRKY8sO7AD4xVmMhGiafm/Kw4VKLYKgwJJE2tBLzBrdtfn+zorNrfwx6VSw= 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=YP/y5dru; 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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42R50LET014007; Wed, 27 Mar 2024 08:20:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=b1Dw41b QyXMFzFQyeT2fXuDbkes6K0mKY6009FjYA4A=; b=YP/y5druxh4iYbL1iEjAxxV uaP1kHvKk3ITRsy6w9kbzVQxELJkin15wegn6twHhGcbTXoQKOK4DByYeJLZIcg9 cTkTrkdPFavN2sjDXat8YySl4yWCb+9vz0jk7J/7G4KtKOrWvyLiaSXGvRyoJ905 NkFT+e4Abjfj6rOqU6a5wchpJgHnUGnDhS6YkssKNYbV54VngKcGk0mXzA7mYjs0 BeXgc4PV46SdzNZiTELU8VtgXnvx09p1Ur3kNkMTJ36icULKyKvbO7CMdCleQ8Ms 4TKDR96kYUkUndDTPoMckZKFc7GqpRwZwooyFE5jiW3ud0JDLC/c97KtzC1i++g= = Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x4784h3xk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 08:20:12 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42R8KBa0011202 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 08:20:11 GMT Received: from hu-varada-blr.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 27 Mar 2024 01:20:06 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v3 0/3] Add interconnect driver for IPQ9574 SoC Date: Wed, 27 Mar 2024 13:48:47 +0530 Message-ID: <20240327081850.2924870-1-quic_varada@quicinc.com> X-Mailer: git-send-email 2.34.1 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 nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: nw6eIpLXHyDwPKBeEnbQC2t5bRa8E0vL X-Proofpoint-ORIG-GUID: nw6eIpLXHyDwPKBeEnbQC2t5bRa8E0vL 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-03-27_04,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 phishscore=0 impostorscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270054 MSM platforms manage NoC related clocks and scaling from RPM. However, in IPQ SoCs, RPM is not involved in managing NoC related clocks and there is no NoC scaling. However, there is a requirement to enable some NoC interface clocks for the accessing the peripherals present in the system. Hence add a minimalistic interconnect driver that establishes a path from the processor/memory to those peripherals and vice versa. --- v4: gcc-ipq9574.c Use clk_hw instead of indices common.c Do icc register in qcom_cc_probe() call stream common.h Add icc clock info to qcom_cc_desc structure v3: qcom,ipq9574.h Move 'first id' define to clock driver gcc-ipq9574.c: Use indexed identifiers here to avoid confusion Fix error messages and move code to common.c as it can be shared with future SoCs v2: qcom,ipq9574.h Fix license identifier Rename macros qcom,ipq9574-gcc.yaml Include interconnect-cells gcc-ipq9574.c Update commit log Remove IS_ENABLED(CONFIG_INTERCONNECT) and auto select it from Kconfig ipq9574.dtsi Moved to separate patch Include interconnect-cells to clock controller node drivers/clk/qcom/Kconfig: Auto select CONFIG_INTERCONNECT & CONFIG_INTERCONNECT_CLK Varadarajan Narayanan (3): dt-bindings: interconnect: Add Qualcomm IPQ9574 support clk: qcom: add IPQ9574 interconnect clocks support arm64: dts: qcom: ipq9574: Add icc provider ability to gcc .../bindings/clock/qcom,ipq9574-gcc.yaml | 3 + arch/arm64/boot/dts/qcom/ipq9574.dtsi | 2 + drivers/clk/qcom/Kconfig | 2 + drivers/clk/qcom/common.c | 34 ++++++++++- drivers/clk/qcom/common.h | 4 +- drivers/clk/qcom/gcc-ipq9574.c | 54 +++++++++++++++++ .../dt-bindings/interconnect/qcom,ipq9574.h | 59 +++++++++++++++++++ 7 files changed, 156 insertions(+), 2 deletions(-) create mode 100644 include/dt-bindings/interconnect/qcom,ipq9574.h -- 2.34.1