Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2582542lqb; Tue, 28 May 2024 04:44:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMUSMXmbM8EGONREt2WbEnhx4IRFKOa3hdU7ErZou+qsVNsMko6v7w7zoVyM1p5EEuRf4TYNuaIBoLtdMbE1lBBgp3lwtZRB7PJMrP7A== X-Google-Smtp-Source: AGHT+IEIY+6q7rmO6tMVGPI7TjiXbJbfBeAOk4jcfXERdWgtZ+ccU/qZnWb3RFPUDoLO5hU6nYQW X-Received: by 2002:a05:6214:440d:b0:6aa:2d64:2015 with SMTP id 6a1803df08f44-6ab9d0002e8mr209594046d6.18.1716896658142; Tue, 28 May 2024 04:44:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716896658; cv=pass; d=google.com; s=arc-20160816; b=BdF5gnnzqM0jBSS30Si56jkAgxSo3udIBUoytcimcBH/SO68LyemA3SC0kQTwf3Uid 01wEcjGwiFTBiSgVf75qZL1KSdvY+Id5fBBLt0M7Xm7xVybzN3WzdrZS0RUGldpWjTjl xLmYotnwmd9UiJ5qJtA7kF+BwDF6zcfnBJrVFgxWVzDQb/AgW10+dEdsUiSNAWdN3ePk LnSW8EGPQ07iGSrPAOygq2RKojHr8pf9VJMWc+dpgUr2bXku4l67fbDb1EAArxC2eUCV dBq5yqwce0B4q+/MotjHbySkIscakUm0v4Y7Z37EUpse8vgG/kHlEQhj6MD7/UYHqeBr 8bqg== 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=0FAGocEjcBEmncpoJtA9QFvm1wrW5g5AZndFgjfE1Bo=; fh=qN1Vvd3TEFs5whLlFtZoJ+Lx4sYOBYJu/DooioH13ds=; b=g/3hXSMJgS5ydBGRTDi+tCb6FaDaHpdJ6936kcJcXTNoLE1BaEDGm6JTiZlfTX31Yd Aq1rf82nv3+hx9MRHLuPkJ3iDZ22HH3pSleKje7k/Jk9soL4TQ2PdjJAwxlSBC3o/Ca0 oPFgOlEs0UxiNXs0tCz0ikDITlpaKBi8NllG0z7MyJMYLIKBHy4c/jPVtCC7+EN/RdGP qKQ9IdDMrqgI4DmgvswrhzojlI4k5IUEuCSwm3sxkoJqscfp1NiTSkCBNJ1mmEhlEP6I RExRoYeZd5nFnDnyp9GmR2Id5nIVDkPg+nwWmt0tWkY5HDsCFK8C23YR0gEHj010ZRqm QWtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="KfyW62/P"; 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-192204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192204-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. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac1625f684si100383396d6.405.2024.05.28.04.44.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192204-linux.lists.archive=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="KfyW62/P"; 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-192204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192204-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 C48031C22003 for ; Tue, 28 May 2024 11:44:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C51116D305; Tue, 28 May 2024 11:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="KfyW62/P" 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 3369916C849; Tue, 28 May 2024 11:43:53 +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=1716896635; cv=none; b=hUlC3nWk77zpTOiEEWkC5q9q/tTkw7s0glp4xX4GVpKtep/wce2CqTcvum8hXOE9+r2OovYAii608O+4YKdLVmTftqXFwZ4n7JvUhcuxcFqpKx0NO3WieeUgBo28hg/bLWSBsaYfR6SkMZiujcjjBOhrjTK1tn6aRSMuX9AHdqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716896635; c=relaxed/simple; bh=HT8UoLvuzaAWSnPcgEviqzEwUvabn2/pzZgk55vt0io=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=hoEZAlZ1I/7+2Y8nijzcd4hkeMQJfMkCVVv0lgFLzcrRZ6YSH7nlnV3ZcOKhMyzG+gYUQ9v7PkUzhZgHjajShoStn2UNHla4G0o8cNZvjSNndE8Vbkm8IHV7umzxSUfL9Ijk+6Z3awKTT97BDVcrudDjIhC6wbmclwCfyViJwsk= 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=KfyW62/P; 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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44SArqId030893; Tue, 28 May 2024 11:43:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=0FAGocEjcBEmncpoJtA9QF vm1wrW5g5AZndFgjfE1Bo=; b=KfyW62/P3/ff+E2HWt+YQmgMt7BNB8IaCMyQbA S8/gOQP/3rd34hArZuxp/zvSm61rd3P/nDMHbuv8ThXWybtpHdXsL+JngOf6QZBZ AoIFjBFDKVSSi9Dhkph/QfuPEbxDy13Hs6Eq6TadBiXRhAEdSYEs8O+lBwH0YJx4 zaIdQCCpFaOR0Khpqab0/x9LfzRAPAxsN0bfvLWGpuwb2qzZlS/CZFcvb7ks2/+j QxJoXBQikZwJpL20RTRMHmNgVLDZ38xbIJhzzywZmVPlL7aln3rwghSiCApSB0ua rXcEHkQ6/9EDgsSXBMFnRc2sytcZZ0jL5bY7z9FcLgCOSLng== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba0qdvcr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 11:43:43 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44SBhfBb024744 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 11:43:42 GMT Received: from hu-ajipan-hyd.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.1544.9; Tue, 28 May 2024 04:43:36 -0700 From: Ajit Pandey To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Vladimir Zapolskiy CC: , , , , Taniya Das , Jagadeesh Kona , Imran Shaik , Satya Priya Kakitapalli , Ajit Pandey Subject: [PATCH V3 0/8] clk: qcom: Add support for DISPCC, CAMCC and GPUCC on SM4450 Date: Tue, 28 May 2024 17:12:46 +0530 Message-ID: <20240528114254.3147988-1-quic_ajipan@quicinc.com> X-Mailer: git-send-email 2.25.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: EXb4yiK3u9kYrUGqZ8ivuKDZ_CKxBLZx X-Proofpoint-ORIG-GUID: EXb4yiK3u9kYrUGqZ8ivuKDZ_CKxBLZx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-28_07,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405280087 This patch series add dt-bindings, driver and device tree support for DISPCC, CAMCC and GPUCC on QCOM SM4450 platform and also includes a fix related to LUCID EVO PLL config issue in clk-alpha-pll driver which is required for correct scaling of few supported frequencies in graphics clock controllers on SM4450. Changes in V3: - [PATCH 1/8]: Updated commit tags order and added Reviewed-by: tags - [PATCH 3/8]: Fixed reusing of pll0_config and added Reviewed-by: tags - [PATCH 6/8]: Updated commit text and added Reviewed-by tags - [PATCH 8/8]: Updated node order for gpucc. - Link to v2: https://lore.kernel.org/all/20240416182005.75422-1-quic_ajipan@quicinc.com/ Ajit Pandey (8): clk: qcom: clk-alpha-pll: Fix CAL_L_VAL override for LUCID EVO PLL dt-bindings: clock: qcom: add DISPCC clocks on SM4450 clk: qcom: Add DISPCC driver support for SM4450 dt-bindings: clock: qcom: add CAMCC clocks on SM4450 clk: qcom: Add CAMCC driver support for SM4450 dt-bindings: clock: qcom: add GPUCC clocks on SM4450 clk: qcom: Add GPUCC driver support for SM4450 arm64: dts: qcom: sm4450: add camera, display and gpu clock controller .../bindings/clock/qcom,sm4450-camcc.yaml | 63 + .../bindings/clock/qcom,sm4450-dispcc.yaml | 71 + .../bindings/clock/qcom,sm8450-gpucc.yaml | 2 + arch/arm64/boot/dts/qcom/sm4450.dtsi | 38 + drivers/clk/qcom/Kconfig | 27 + drivers/clk/qcom/Makefile | 3 + drivers/clk/qcom/camcc-sm4450.c | 1688 +++++++++++++++++ drivers/clk/qcom/clk-alpha-pll.c | 2 +- drivers/clk/qcom/dispcc-sm4450.c | 770 ++++++++ drivers/clk/qcom/gpucc-sm4450.c | 805 ++++++++ include/dt-bindings/clock/qcom,sm4450-camcc.h | 106 ++ .../dt-bindings/clock/qcom,sm4450-dispcc.h | 51 + include/dt-bindings/clock/qcom,sm4450-gpucc.h | 62 + 13 files changed, 3687 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,sm4450-camcc.yaml create mode 100644 Documentation/devicetree/bindings/clock/qcom,sm4450-dispcc.yaml create mode 100644 drivers/clk/qcom/camcc-sm4450.c create mode 100644 drivers/clk/qcom/dispcc-sm4450.c create mode 100644 drivers/clk/qcom/gpucc-sm4450.c create mode 100644 include/dt-bindings/clock/qcom,sm4450-camcc.h create mode 100644 include/dt-bindings/clock/qcom,sm4450-dispcc.h create mode 100644 include/dt-bindings/clock/qcom,sm4450-gpucc.h -- 2.25.1