From patchwork Fri Dec 27 07:24:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Mylavarapu X-Patchwork-Id: 13921560 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 306FA146A71; Fri, 27 Dec 2024 07:25:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284316; cv=none; b=gVyDc1RysnqZ9OJnWoq1GDxO8iEB79YrtFL6QmL0sv9XcRNTwNXCBvlKT5UVMGjP9Kk8YqA5jEjcA75+styPJtjO9tnN+rJ0D72h1VJ2JcTSytgxSLAQo/8fU3erZtBHBapm5SPg7JuSCosSyoNvwOJ/qZpE3GqehGhc2FkGVGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284316; c=relaxed/simple; bh=Bwx4a0ZEY9+M7pERSmkiTSRlo36Bts2rzp3x5RnRyyY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lypIgXUDPqTIkhkOBs6uh2nGS1nyMRVJlixFDyJtdFPMEonv3e70L2YQjBWCZUfU25yzjio/HlVVxVwi7VG34zZhBMvI7YUrAWh1j83ihdxNZSPOWC/caHZXKOtP9f44KLSSnYSnIEurbZjBy8qiMLlE5GCFzBxCt623XvpfXYs= 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=ekbu47FA; arc=none smtp.client-ip=205.220.168.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ekbu47FA" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BQF8JxH016471; Fri, 27 Dec 2024 07:25:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 0mPJvl+ot5GQvmJOrDY/ksPUNVwXjZIAgyZoAPd8A0A=; b=ekbu47FA8nIKTcy2 FfkgueKHNC/AvH8dWX22wXNBr3c0jabarpZpx3O35IiQh1MP6MawnxwkTk8vcgjW T5e/erWDniIRvTtxjZxKNHw4Pl+JE4T3boeCxFtNHQMCnxqzHgUHlDj8zW1Kn01N jHuNERBfOkewqWW+zDRDmGLo7/W3gfEHdvdld15n9/gxjHhnWMFhXCDpIt0nVOz5 04Rrk/0tqvjev3bj1shNau2mrM87V61xdI+7CLyOF+erkvi7vlmFy9Zp3mz9dvTp By/kwqRH8EFwCzA6Ec7X1cxegUPrsEO/4IIqXQwFg41QpmOdlpwuYGRmvAv5V9AC qikGSg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43s9gvka88-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:11 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BR7PAxN014971 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:10 GMT Received: from hu-mmanikan-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.1544.9; Thu, 26 Dec 2024 23:25:05 -0800 From: Manikanta Mylavarapu To: , , , , , , , , , , , , CC: , Subject: [PATCH v3 1/6] dt-bindings: pinctrl: qcom: rename spi0 pins on IPQ5424 Date: Fri, 27 Dec 2024 12:54:41 +0530 Message-ID: <20241227072446.2545148-2-quic_mmanikan@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> References: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: 2VVkE0dUjbfy1MABPxqUe9SnvnJZQpvt X-Proofpoint-GUID: 2VVkE0dUjbfy1MABPxqUe9SnvnJZQpvt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 lowpriorityscore=0 spamscore=0 phishscore=0 malwarescore=0 mlxscore=0 impostorscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412270062 SPI protocol runs on serial engine 4. Hence rename spi0 pins to spi4 like spi0_cs to spi4_cs etc. Signed-off-by: Manikanta Mylavarapu --- .../devicetree/bindings/pinctrl/qcom,ipq5424-tlmm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq5424-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq5424-tlmm.yaml index df284d3645c1..4e0be380caf6 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,ipq5424-tlmm.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq5424-tlmm.yaml @@ -79,7 +79,7 @@ $defs: qdss_cti_trig_out_b0, qdss_cti_trig_in_b1, qdss_cti_trig_out_b1, qdss_traceclk_a, qdss_tracectl_a, qdss_tracedata_a, qspi_clk, qspi_cs, qspi_data, resout, rx0, rx1, rx2, sdc_clk, sdc_cmd, - sdc_data, spi0_cs, spi0_clk, spi0_miso, spi0_mosi, spi1, spi10, + sdc_data, spi4_cs, spi4_clk, spi4_miso, spi4_mosi, spi1, spi10, spi11, tsens_max, uart0, uart1, wci_txd, wci_rxd, wsi_clk, wsi_data ] required: From patchwork Fri Dec 27 07:24:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manikanta Mylavarapu X-Patchwork-Id: 13921561 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 8FCF01DA4E; Fri, 27 Dec 2024 07:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284322; cv=none; b=u5FM6XkZ3YKh0jx5OmeNiuBdtk8eYl673MdOnPcuZhHwag8Aeygeb1WsKvIYk6SjJCf1888Ip+0bJUuH9g0hozqJCJa8bBDf89ONN//Kwij0Grti1tIdK9bXSLDpJbSJIYDlwwfs34RBD1cP6e8gK/uk62AkBFsCFDPJA+g+C6E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284322; c=relaxed/simple; bh=tftfKO0i2BdRBhzDdFuKGH3fxQ+aMDfDYJdawdr/+ZQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=G4OvqdJA7cGRjdnEKX0Sxzht/HQ8HhrAe+foGUR3HjJjd8a+dJTsv2UNS5/+3JH8O6YasXfhAC12RmUDhpHCGKn7tdATwKccuQFbW+/exdsZMP9nJZmtO4+dPwOR0kUE3Rikkl6dTPoQFEfaCJ5mWLd0GRg2i9FG0ziqEZr5pcg= 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=Mloxg8QV; arc=none smtp.client-ip=205.220.168.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Mloxg8QV" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BR6fvua010426; Fri, 27 Dec 2024 07:25:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 2nPGXGtt4i5cRb7ee+Qgp6DoWjjCxrKdejS/8m6yfk0=; b=Mloxg8QVrS3DEZWa conJC1979EMysYZFgrMHRRe3376vZTvDhbyiRzjJZvsiU68oG84UizbxJbG0dHss c0fQx1EEHseZMzLj7DGwjYAQFBwJt/FEFEqNxpaRDS+AJgMJAYrKFbgKyBgLE4GA WrPYwOtasg6oFR/ZdCzoRFoP7MLlbl7VCrSOlMJs7wdQJAEuhbr0gDoFJ7Wx0Ltd A21BrneREmvaWLuW+i7r4EsDG/a4OcmPTtlY7DBuScxr8Gs83J8fmssB6i3ZF2lH yRorZ6NE/MbPYmaoHyB/RFmNnr9WGuWE7yvktmCSI5N/KJOOmXJq90F8bfJAne+Z Wp33IQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43sq6q05x7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:16 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BR7PFpe027919 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:15 GMT Received: from hu-mmanikan-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.1544.9; Thu, 26 Dec 2024 23:25:10 -0800 From: Manikanta Mylavarapu To: , , , , , , , , , , , , CC: , Subject: [PATCH v3 2/6] dt-bindings: clock: qcom: gcc-ipq5424: add spi4 clocks Date: Fri, 27 Dec 2024 12:54:42 +0530 Message-ID: <20241227072446.2545148-3-quic_mmanikan@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> References: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: a2q9sCaiaFNIXFeOP67svzLOs8atuciy X-Proofpoint-GUID: a2q9sCaiaFNIXFeOP67svzLOs8atuciy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 phishscore=0 mlxlogscore=693 adultscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412270062 SPI protocol runs on serial engine 4. Hence we need to rename the spi0 clocks to spi4 clocks. However, renaming spi0 to spi4 will result in the following compilation error's. drivers/clk/qcom/gcc-ipq5424.c:2865:3: error: ‘GCC_QUPV3_SPI0_CLK’ undeclared here drivers/clk/qcom/gcc-ipq5424.c:2866:3: error: ‘GCC_QUPV3_SPI0_CLK_SRC’ undeclared here To add spi4 clocks without compilation error's, do not rename the spi0 clocks. Instead, duplicate the spi0 clock macros and rename them to spi4. After switching to spi4 clocks in the gcc-ipq5424 driver, remove the spi0 clock macros. Signed-off-by: Manikanta Mylavarapu --- include/dt-bindings/clock/qcom,ipq5424-gcc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/qcom,ipq5424-gcc.h b/include/dt-bindings/clock/qcom,ipq5424-gcc.h index 755ce7a71c7c..5dad45a8f614 100644 --- a/include/dt-bindings/clock/qcom,ipq5424-gcc.h +++ b/include/dt-bindings/clock/qcom,ipq5424-gcc.h @@ -123,6 +123,7 @@ #define GCC_QUPV3_I2C0_CLK 113 #define GCC_QUPV3_I2C1_CLK 114 #define GCC_QUPV3_SPI0_CLK 115 +#define GCC_QUPV3_SPI4_CLK GCC_QUPV3_SPI0_CLK #define GCC_QUPV3_SPI1_CLK 116 #define GCC_QUPV3_UART0_CLK 117 #define GCC_QUPV3_UART1_CLK 118 @@ -132,6 +133,7 @@ #define GCC_QUPV3_I2C0_DIV_CLK_SRC 122 #define GCC_QUPV3_I2C1_DIV_CLK_SRC 123 #define GCC_QUPV3_SPI0_CLK_SRC 124 +#define GCC_QUPV3_SPI4_CLK_SRC GCC_QUPV3_SPI0_CLK_SRC #define GCC_QUPV3_SPI1_CLK_SRC 125 #define GCC_QUPV3_UART0_CLK_SRC 126 #define GCC_QUPV3_UART1_CLK_SRC 127 From patchwork Fri Dec 27 07:24:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Mylavarapu X-Patchwork-Id: 13921562 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 D0B02146593; Fri, 27 Dec 2024 07:25:26 +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=1735284329; cv=none; b=VyCsxUfPokxc5nEwfuuAiCK+AIhD5uMkvarMJsr+OUjiUvHIXFA1VwUuU2HyVNOK4Qyz8AdS+LvA83E6+Fc0Iy7Kqbqp0feGk5QWfsupWo9s8l0hBNkJal18GXGu8cnBqxi4UnkKuvlXguxE1W+hRmo00uVHZjjp9jn2fJQemQA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284329; c=relaxed/simple; bh=CJy06DNviaWg4O588IxOHHQVjTPD/LjEZRfoNyONKyQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Xe2dQ+d59rEE/sPWL5BezvsT6zUgZWq//MN8vFM6CKtW5dzhhA6wzVG0IeMjfDdy9Hva/4xeWM2bQIgIS2Z4bC4LPpNrEtFftaUeez1v98ujpy+GPfNTjFzlhDW9WRisNOjX8RP8pj9Uc4EkmejZnsb26Zm69CE9kRtzYJRzbho= 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=mtttOI2y; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="mtttOI2y" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BQLeFCG015236; Fri, 27 Dec 2024 07:25:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= +crJDo5sJg/Yo8dCCpO004q02gFjlSunUhGJb0tM6Qo=; b=mtttOI2yYDoLDeax ox9NqBSWmhBIvCy16ngmtVxwXcLNjsNMOrUuFb4csCVfIxC7v2FNmD1J2e/yjgsZ nOnrI9Nu293fYu55rYk1Zd3wAH5EHHJfe5u1ddLLYmC5drpGHT5PTXXW/oyTrJeo ixbAqh8EvQPTki+vQ/Y9JkCJwIKIojkzqCpZI18jGDQF0dnNmgvWMV3optRIzI8V KYxghez7V64HH7MNQ3sEcOtYfFYRplMUVntBF4uaCyZGRIYBtNzv3RsNi0Kyb1rN v5skjiHQDp9uQB4mXvTLaryeOcJ9o+JofzDQVx/IGcc/hGP5l6sjDarYL6udHh2J W9piuA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43sdpr3b1c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:22 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BR7PLtS026462 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:21 GMT Received: from hu-mmanikan-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.1544.9; Thu, 26 Dec 2024 23:25:15 -0800 From: Manikanta Mylavarapu To: , , , , , , , , , , , , CC: , Subject: [PATCH v3 3/6] pinctrl: qcom: ipq5424: rename spi0 pins Date: Fri, 27 Dec 2024 12:54:43 +0530 Message-ID: <20241227072446.2545148-4-quic_mmanikan@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> References: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: 8yPIeeUBv9TskZhHHeV6r04nfHdGWgvt X-Proofpoint-ORIG-GUID: 8yPIeeUBv9TskZhHHeV6r04nfHdGWgvt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 adultscore=0 phishscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412270062 SPI protocol runs on serial engine 4. Hence rename spi0 pins to spi4 like spi0_cs to spi4_cs etc. Signed-off-by: Manikanta Mylavarapu --- drivers/pinctrl/qcom/pinctrl-ipq5424.c | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-ipq5424.c b/drivers/pinctrl/qcom/pinctrl-ipq5424.c index 0d610b076da3..05c45a115d7a 100644 --- a/drivers/pinctrl/qcom/pinctrl-ipq5424.c +++ b/drivers/pinctrl/qcom/pinctrl-ipq5424.c @@ -233,10 +233,10 @@ enum ipq5424_functions { msm_mux_sdc_clk, msm_mux_sdc_cmd, msm_mux_sdc_data, - msm_mux_spi0_clk, - msm_mux_spi0_cs, - msm_mux_spi0_miso, - msm_mux_spi0_mosi, + msm_mux_spi4_clk, + msm_mux_spi4_cs, + msm_mux_spi4_miso, + msm_mux_spi4_mosi, msm_mux_spi1, msm_mux_spi10, msm_mux_spi11, @@ -300,7 +300,7 @@ static const char * const qspi_clk_groups[] = { "gpio5", }; -static const char * const spi0_clk_groups[] = { +static const char * const spi4_clk_groups[] = { "gpio6", }; @@ -318,7 +318,7 @@ static const char * const qdss_tracedata_a_groups[] = { "gpio38", "gpio39", }; -static const char * const spi0_cs_groups[] = { +static const char * const spi4_cs_groups[] = { "gpio7", }; @@ -326,7 +326,7 @@ static const char * const cri_trng1_groups[] = { "gpio7", }; -static const char * const spi0_miso_groups[] = { +static const char * const spi4_miso_groups[] = { "gpio8", }; @@ -334,7 +334,7 @@ static const char * const cri_trng2_groups[] = { "gpio8", }; -static const char * const spi0_mosi_groups[] = { +static const char * const spi4_mosi_groups[] = { "gpio9", }; @@ -695,10 +695,10 @@ static const struct pinfunction ipq5424_functions[] = { MSM_PIN_FUNCTION(sdc_clk), MSM_PIN_FUNCTION(sdc_cmd), MSM_PIN_FUNCTION(sdc_data), - MSM_PIN_FUNCTION(spi0_clk), - MSM_PIN_FUNCTION(spi0_cs), - MSM_PIN_FUNCTION(spi0_miso), - MSM_PIN_FUNCTION(spi0_mosi), + MSM_PIN_FUNCTION(spi4_clk), + MSM_PIN_FUNCTION(spi4_cs), + MSM_PIN_FUNCTION(spi4_miso), + MSM_PIN_FUNCTION(spi4_mosi), MSM_PIN_FUNCTION(spi1), MSM_PIN_FUNCTION(spi10), MSM_PIN_FUNCTION(spi11), @@ -718,10 +718,10 @@ static const struct msm_pingroup ipq5424_groups[] = { PINGROUP(3, sdc_data, qspi_data, pwm2, _, _, _, _, _, _), PINGROUP(4, sdc_cmd, qspi_cs, _, _, _, _, _, _, _), PINGROUP(5, sdc_clk, qspi_clk, _, _, _, _, _, _, _), - PINGROUP(6, spi0_clk, pwm1, _, cri_trng0, qdss_tracedata_a, _, _, _, _), - PINGROUP(7, spi0_cs, pwm1, _, cri_trng1, qdss_tracedata_a, _, _, _, _), - PINGROUP(8, spi0_miso, pwm1, wci_txd, wci_rxd, _, cri_trng2, qdss_tracedata_a, _, _), - PINGROUP(9, spi0_mosi, pwm1, _, cri_trng3, qdss_tracedata_a, _, _, _, _), + PINGROUP(6, spi4_clk, pwm1, _, cri_trng0, qdss_tracedata_a, _, _, _, _), + PINGROUP(7, spi4_cs, pwm1, _, cri_trng1, qdss_tracedata_a, _, _, _, _), + PINGROUP(8, spi4_miso, pwm1, wci_txd, wci_rxd, _, cri_trng2, qdss_tracedata_a, _, _), + PINGROUP(9, spi4_mosi, pwm1, _, cri_trng3, qdss_tracedata_a, _, _, _, _), PINGROUP(10, uart0, pwm0, spi11, _, wci_txd, wci_rxd, _, qdss_tracedata_a, _), PINGROUP(11, uart0, pwm0, spi1, _, wci_txd, wci_rxd, _, qdss_tracedata_a, _), PINGROUP(12, uart0, pwm0, spi11, _, prng_rosc0, qdss_tracedata_a, _, _, _), From patchwork Fri Dec 27 07:24:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Mylavarapu X-Patchwork-Id: 13921563 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 951AF14831D; Fri, 27 Dec 2024 07:25:31 +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=1735284333; cv=none; b=b0kS972XPd4IMame+zKRQnOt5zgupbaJ6t3tmvQ/ON7wsebX9xI9LPhSNyzrW4rL0SnECuTfpk/ceVWyRcb77ikc4c8max0r03qzbVOG+XbCgZLmsp4Wfc8fZw+mnayPPuvMLwVneeml1vBI06qhBs917FTnPy+Gl4LX4QZorxA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284333; c=relaxed/simple; bh=sHD52yL2eBqz9UYzuxt2YbcGTwawJnFmRudC3e+35IY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jkPrCNRIrfYCC+GY6wX+Y2kF6xCMkCwAgVpgrsFfSPTgJrRbXFryMK+aCc4K2iSDYXqYra1M0g2OU+SYfX5gDSvDIYSl7MYkoGiJzql53XlZ7fAeIAN9d2Q/wqbdN6443gpJekEllqoALqcbmafZU1ULEj7tmKbZo1+LqikZcIM= 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=oEi0G8hf; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oEi0G8hf" 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 4BR5RYlF029178; Fri, 27 Dec 2024 07:25:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 82IUhN7KgfzIIE5sgbZcnRLyPsqXgu9NS/QNY5CYpMk=; b=oEi0G8hfeqWBBhEo yyJ0a/6uhEcDOgxiVKX5tEOVR33c41zNen/K2934a04Y8mV8E8aVhYH9OarQE8p3 1vfVq/37fkD2A5IJryQYDl/5RZHlYFmlfMNxai3AZEwju8HxXz6xIF0Oz77JXwZj 0mFiAMz5LjUxLzcCdk9TZ3Mz0A2w0WAukVjyL8jI0PWuoRraw5zdB6B0AFarB3VA O372EBDUM7HXF2pQRCUAXsZySr7MueDPsyzizDcPidxydPX5L3SADYtNW/Rgq2Nj 9/aQm0rOdoI6GZ36IUZ0wH0QOAE5atU5+9919LomVi8i8TKkOdBVA89VRI2t6SDm aFm8vQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43sp410ntf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:27 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BR7PQP5026469 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:26 GMT Received: from hu-mmanikan-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.1544.9; Thu, 26 Dec 2024 23:25:21 -0800 From: Manikanta Mylavarapu To: , , , , , , , , , , , , CC: , Subject: [PATCH v3 4/6] clk: qcom: ipq5424: rename spi0 clocks Date: Fri, 27 Dec 2024 12:54:44 +0530 Message-ID: <20241227072446.2545148-5-quic_mmanikan@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> References: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: fNQyMOD_HX6bL1g8EX8QKyXG-L5oWRE4 X-Proofpoint-ORIG-GUID: fNQyMOD_HX6bL1g8EX8QKyXG-L5oWRE4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 mlxlogscore=853 priorityscore=1501 phishscore=0 spamscore=0 suspectscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412270062 SPI protocol runs on serial engine 4. Hence rename spi0 clocks to spi4 like GCC_QUPV3_SPI0_CLK to GCC_QUPV3_SPI4_CLK. Signed-off-by: Manikanta Mylavarapu --- drivers/clk/qcom/gcc-ipq5424.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq5424.c b/drivers/clk/qcom/gcc-ipq5424.c index 88a7d5b2e751..5fcf7d9ca390 100644 --- a/drivers/clk/qcom/gcc-ipq5424.c +++ b/drivers/clk/qcom/gcc-ipq5424.c @@ -531,7 +531,7 @@ static struct clk_rcg2 gcc_qupv3_i2c1_clk_src = { }, }; -static const struct freq_tbl ftbl_gcc_qupv3_spi0_clk_src[] = { +static const struct freq_tbl ftbl_gcc_qupv3_spi4_clk_src[] = { F(960000, P_XO, 10, 2, 5), F(4800000, P_XO, 5, 0, 0), F(9600000, P_XO, 2, 4, 5), @@ -543,14 +543,14 @@ static const struct freq_tbl ftbl_gcc_qupv3_spi0_clk_src[] = { { } }; -static struct clk_rcg2 gcc_qupv3_spi0_clk_src = { +static struct clk_rcg2 gcc_qupv3_spi4_clk_src = { .cmd_rcgr = 0x4004, .mnd_width = 8, .hid_width = 5, .parent_map = gcc_parent_map_0, - .freq_tbl = ftbl_gcc_qupv3_spi0_clk_src, + .freq_tbl = ftbl_gcc_qupv3_spi4_clk_src, .clkr.hw.init = &(const struct clk_init_data) { - .name = "gcc_qupv3_spi0_clk_src", + .name = "gcc_qupv3_spi4_clk_src", .parent_data = gcc_parent_data_0, .num_parents = ARRAY_SIZE(gcc_parent_data_0), .ops = &clk_rcg2_ops, @@ -562,7 +562,7 @@ static struct clk_rcg2 gcc_qupv3_spi1_clk_src = { .mnd_width = 8, .hid_width = 5, .parent_map = gcc_parent_map_0, - .freq_tbl = ftbl_gcc_qupv3_spi0_clk_src, + .freq_tbl = ftbl_gcc_qupv3_spi4_clk_src, .clkr.hw.init = &(const struct clk_init_data) { .name = "gcc_qupv3_spi1_clk_src", .parent_data = gcc_parent_data_0, @@ -2072,16 +2072,16 @@ static struct clk_branch gcc_qupv3_i2c1_clk = { }, }; -static struct clk_branch gcc_qupv3_spi0_clk = { +static struct clk_branch gcc_qupv3_spi4_clk = { .halt_reg = 0x4020, .halt_check = BRANCH_HALT, .clkr = { .enable_reg = 0x4020, .enable_mask = BIT(0), .hw.init = &(const struct clk_init_data) { - .name = "gcc_qupv3_spi0_clk", + .name = "gcc_qupv3_spi4_clk", .parent_hws = (const struct clk_hw*[]) { - &gcc_qupv3_spi0_clk_src.clkr.hw, + &gcc_qupv3_spi4_clk_src.clkr.hw, }, .num_parents = 1, .flags = CLK_SET_RATE_PARENT, @@ -2862,8 +2862,8 @@ static struct clk_regmap *gcc_ipq5424_clocks[] = { [GCC_QUPV3_I2C1_CLK] = &gcc_qupv3_i2c1_clk.clkr, [GCC_QUPV3_I2C1_CLK_SRC] = &gcc_qupv3_i2c1_clk_src.clkr, [GCC_QUPV3_I2C1_DIV_CLK_SRC] = &gcc_qupv3_i2c1_div_clk_src.clkr, - [GCC_QUPV3_SPI0_CLK] = &gcc_qupv3_spi0_clk.clkr, - [GCC_QUPV3_SPI0_CLK_SRC] = &gcc_qupv3_spi0_clk_src.clkr, + [GCC_QUPV3_SPI4_CLK] = &gcc_qupv3_spi4_clk.clkr, + [GCC_QUPV3_SPI4_CLK_SRC] = &gcc_qupv3_spi4_clk_src.clkr, [GCC_QUPV3_SPI1_CLK] = &gcc_qupv3_spi1_clk.clkr, [GCC_QUPV3_SPI1_CLK_SRC] = &gcc_qupv3_spi1_clk_src.clkr, [GCC_QUPV3_UART0_CLK] = &gcc_qupv3_uart0_clk.clkr, From patchwork Fri Dec 27 07:24:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Mylavarapu X-Patchwork-Id: 13921564 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 E1E7714B07E; Fri, 27 Dec 2024 07:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284336; cv=none; b=SAImzjMRhH/65+ncYHNshdLaxQrvOPCeWnfC0i5Exw1diWTEsdY7FGBKwfCuMn6JkQYBXts25HEetUq+bFyxKMQa7BKXp8mr1DRsXoEfM553yxVTofVXXiXlin9+B7voK0oByRfpDSy6xPTX7wZFUTjs5IUjRF+4UsK8Kr96Qd4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284336; c=relaxed/simple; bh=2oGk/VMqj9VskBCKKdyaOSHU2Lteh603427duxcbjFI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M/U1KeBB8+3nlcf+fItqc4bgpcy6PiER4jyNKbLc6x8gyn2A6xZ8b/qcsMiJWsLJFIHqZLilzBijGR9BfSj7iBHAYOcaqPgNNZpaLtePzwZCW6pDzPK15La2cot0mhVjEfLfM+CoUc9jgnVWsxw9yp0ZjC+dthmZds0q7eK7Zzg= 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=lUg1gz0K; arc=none smtp.client-ip=205.220.168.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="lUg1gz0K" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BR6fZ0A009740; Fri, 27 Dec 2024 07:25:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Wtbcd/LH7ZFNQL6r5Y9ijwlIMcR2zCXYi0L8t9Mgec4=; b=lUg1gz0K98E87aAX B0Zbzj3boAH9av46WYiBe2uX28yqQUCEnFLkV3c0N0+ReeZS9vIOr1OPIoyN1YW2 30NVq75HcPnpIYhIwNNNxXk3HNs2dirUsFmTA4MShcUPZbuuVNSLIEMZCfpvt3eL elRh9UM7Zky5DG9luUlyVGyvv42G6xSt8BvyYFlGCX3KDrRwtvnclFdhHGJIQCZ3 hoWXXDFbscy8Dbrz6qz+pBFFohWwUHxvgyLvJwIl8Sks32KsRJ9kO9hR+dibj2qU yBYmJ4TjEp6EtSR+FVZ/6BC8PfmO9fzUidSpgOqJHjOAyJ8AG4hkmyT5r8n9EG9Y 6GWu3g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43sq6q05yy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:31 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BR7PVMu015230 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:31 GMT Received: from hu-mmanikan-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.1544.9; Thu, 26 Dec 2024 23:25:26 -0800 From: Manikanta Mylavarapu To: , , , , , , , , , , , , CC: , Subject: [PATCH v3 5/6] arm64: dts: qcom: ipq5424: add spi4 node Date: Fri, 27 Dec 2024 12:54:45 +0530 Message-ID: <20241227072446.2545148-6-quic_mmanikan@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> References: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: okOdeY87nlJhqecJF40lcMIvW60yO1Wz X-Proofpoint-GUID: okOdeY87nlJhqecJF40lcMIvW60yO1Wz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 bulkscore=0 mlxscore=0 phishscore=0 mlxlogscore=925 adultscore=0 suspectscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412270062 Add SPI4 node for IPQ5424 SoC. Signed-off-by: Manikanta Mylavarapu --- Changes in V3: - Replace spi0 with spi4 in all applicable places such as clocks, commit message, heading and dt node name. arch/arm64/boot/dts/qcom/ipq5424.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi index 5e219f900412..d425298d0471 100644 --- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi @@ -201,6 +201,17 @@ uart1: serial@1a84000 { clock-names = "se"; interrupts = ; }; + + spi4: spi@1a90000 { + compatible = "qcom,geni-spi"; + reg = <0 0x01a90000 0 0x4000>; + clocks = <&gcc GCC_QUPV3_SPI4_CLK>; + clock-names = "se"; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; sdhc: mmc@7804000 { From patchwork Fri Dec 27 07:24:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Mylavarapu X-Patchwork-Id: 13921565 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 BBBFC149C6A; Fri, 27 Dec 2024 07:25:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284342; cv=none; b=cQ3aFlp565ud2EpjQ569BM1113pbl9uGus15iHp94nDYMevksJV/4Ik/hFDE9vnj0N6OIl9oBq7JP+ghFUpoyB9TVFwMeVjX3/bts2XU25Ugi6tr3VffK1vk9TsmoZLHZozVBv/DgovolYqR4IFxxVJnXmHFBn4bD7gF7XFIS+c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735284342; c=relaxed/simple; bh=oKy+vdlNueNKDvyQuUaonp3rPjGBkVFZb2zhCOjeZps=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=k11P4stLqU3aqMfWmQbl7zLzPuagvxLu9rXn7r4NH389YCFgXg/eaP0HbhqRnXJOjoAhdfbgNBllZiKMgvZHu1JRTyScGVkkfdOrSdWD/vb80DeT5+wEmo+CDeSDAJRBmnQhO4XUhOWBElHnTMct82/fZ0K+It3sba5HzWpQQXE= 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=PzqvxVlk; arc=none smtp.client-ip=205.220.168.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="PzqvxVlk" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BQDqtHG030839; Fri, 27 Dec 2024 07:25:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= oPCk/W9v6Y7yPcxR1lGK9WTC7WRtf/ZqtQ8qKXF5rac=; b=PzqvxVlk1vMpy4R0 d6XjLYm+s4gyAZfqjAK6RkZHyt7R1BVSdP+aqZ6mMLSyfKXqmFUUDwt+uEwQhDaQ mxCUab2UhbPXLYIGWGpf6+lTENyuRSwKfd/VWogZCe6yt/EsRFNAgWic/kYLUpRb HQitAV4PWYXvk65dbDRlEcxRMICVJt3qSkDN1VdAuqSOhUgLo/nO94FvpeuwavZu OMwllATTTQ3kyfotyE3YKCwDFp+U/1SLWaOydFDZBe2xdhDo4U8n6n15bqJELX8a 6k0bkjA7gJsKlrsbnNga+ZoadWA/mzGggvZvo3Ls0rcCTLANpR8gLkbU7dUrG4PO UfbfeQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 43s8dnkh6f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:37 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4BR7PanX026941 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Dec 2024 07:25:36 GMT Received: from hu-mmanikan-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.1544.9; Thu, 26 Dec 2024 23:25:31 -0800 From: Manikanta Mylavarapu To: , , , , , , , , , , , , CC: , Subject: [PATCH v3 6/6] arm64: dts: qcom: ipq5424: configure spi4 node for rdp466 Date: Fri, 27 Dec 2024 12:54:46 +0530 Message-ID: <20241227072446.2545148-7-quic_mmanikan@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> References: <20241227072446.2545148-1-quic_mmanikan@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: GdsVZfKM7bxqkiTTIZNPxdGAaVILOvgV X-Proofpoint-ORIG-GUID: GdsVZfKM7bxqkiTTIZNPxdGAaVILOvgV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 priorityscore=1501 mlxlogscore=945 mlxscore=0 bulkscore=0 phishscore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412270062 Enable the SPI4 node and configure the associated gpio pins. Signed-off-by: Manikanta Mylavarapu --- Changes in V3: - Replace spi0 with spi4 in all applicable places such as tlmm pin names, commit message, heading and dt node name. arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts | 43 +++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts b/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts index d4d31026a026..1e7c7f73b21e 100644 --- a/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts +++ b/arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts @@ -23,6 +23,36 @@ &sleep_clk { }; &tlmm { + spi4_default_state: spi4-default-state { + clk-pins { + pins = "gpio6"; + function = "spi4_clk"; + drive-strength = <8>; + bias-pull-down; + }; + + cs-pins { + pins = "gpio7"; + function = "spi4_cs"; + drive-strength = <8>; + bias-pull-up; + }; + + miso-pins { + pins = "gpio8"; + function = "spi4_miso"; + drive-strength = <8>; + bias-pull-down; + }; + + mosi-pins { + pins = "gpio9"; + function = "spi4_mosi"; + drive-strength = <8>; + bias-pull-down; + }; + }; + sdc_default_state: sdc-default-state { clk-pins { pins = "gpio5"; @@ -57,3 +87,16 @@ &xo_board { clock-frequency = <24000000>; }; +&spi4 { + pinctrl-0 = <&spi4_default_state>; + pinctrl-names = "default"; + status = "okay"; + + flash@0 { + compatible = "micron,n25q128a11", "jedec,spi-nor"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + }; +};