From patchwork Thu Dec 14 06:28:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveenkumar I X-Patchwork-Id: 13492378 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 644B8C4332F for ; Thu, 14 Dec 2023 06:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Cxwrkp3PVydI3/dMZGv4jorbhPfxIyo6sRQwp9SS1uk=; b=4b1l1RryIquOK6 9r4ABkGsQnjBJOeaAJm90ezgUhkmVJdKP7eA3mkopE9iHGti/datZghZUbOq2gfSMW3M/wZ9dcDFU GE+qWh6cmiSX9+D69UZ7S8NY/Li5hL4bdiAm3gIdzdTu7fkFY2KdH91f3dwqkIB5ty8J+0keG+iZq hMFJ0GUC8Ha+EwHtES68Z0lghQm59LKaxhj+TrB3xwT/HgHD407UrNvsKHcPsj+3nXrmb2zGeHQ4L jTuxY73rsXeGnUi+usPFN39eea0ToWh1fK6WjE9AJOVG0Lm5/Ub2Qbd/L/YXBDfoI98tQaMpqbVk3 YMdbm3thz/OMa1fC6z/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDfDm-00Gyas-07; Thu, 14 Dec 2023 06:29:22 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDfDh-00GyZy-2y for linux-phy@lists.infradead.org; Thu, 14 Dec 2023 06:29:19 +0000 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 3BE3Rr5P026065; Thu, 14 Dec 2023 06:29:10 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=ODCJhiY BeWEU03LHMRasSH8E7YzOuqTWK5pYz/IOpl4=; b=aV03J+iML9O2FRcdASCnAOc upOAvs05PL7uyoSHooUXoaiglVD7ehYw1oVPFX6q7O9FQiIDJDfd6DuEmMY0gvNu nTNVUOZGAL2YC7o7WYYkOcooYO1RRqX9LQdY9j2WzNxPu6DdTrPJyYq5QKuDPffl ndK2MnXzBkvMtwf51ccr7vdt/u3ILD2zXU0HGSaNujK2sDsqx2lYTwm2ic2ZR+Y4 pWnVGzKQnZXjUrvWfLOGqMvU01mYRTEHd6X5XGyVWFBni4C66gTdvvjJM+385txG d9wvJDKw1jLRLnr7hmqlh/MWBqFgJi/nTIOOUDsdUEypLcxarRs2Xl52TZxq8Vg= = Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uyqd50k36-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 06:29:09 +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 3BE6T8p0006439 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 06:29:08 GMT Received: from hu-ipkumar-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, 13 Dec 2023 22:29:01 -0800 From: Praveenkumar I To: , , , , , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH 00/10] Add PCIe support for Qualcomm IPQ5332 Date: Thu, 14 Dec 2023 11:58:37 +0530 Message-ID: <20231214062847.2215542-1-quic_ipkumar@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] 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: v719Z6pncc-Lc86gqsgsO87urvOt3rkD X-Proofpoint-ORIG-GUID: v719Z6pncc-Lc86gqsgsO87urvOt3rkD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 adultscore=0 clxscore=1011 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 mlxlogscore=754 priorityscore=1501 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312140039 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231213_222918_109890_8DFD4297 X-CRM114-Status: GOOD ( 10.31 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Patch series adds support for enabling the PCIe controller and UNIPHY found on Qualcomm IPQ5332 platform. PCIe0 is Gen3 X1 and PCIe1 is Gen3 X2 are added. UNIPHY changes depends on https://lore.kernel.org/all/20231003120846.28626-1-quic_nsekar@quicinc.com/ PCIe driver change depends on https://lore.kernel.org/all/20230519090219.15925-1-quic_devipriy@quicinc.com/ Praveenkumar I (10): dt-bindings: clock: Add separate clocks for PCIe and USB for Combo PHY clk: qcom: ipq5332: Add separate clocks for PCIe and USB for Combo PHY arm64: dts: qcom: ipq5332: Add separate entry for USB pipe clock phy: qcom: Add support for Pipe clock rate from device data dt-bindings: phy: qcom,uniphy-pcie: Add ipq5332 bindings phy: qcom: ipq5332: Add support for g3x1 and g3x2 PCIe PHYs dt-bindings: PCI: qcom: Add IPQ5332 SoC pci: qcom: Add support for IPQ5332 arm64: dts: qcom: ipq5332: Add PCIe related nodes arm64: dts: qcom: ipq5332: Enable PCIe phys and controllers .../bindings/clock/qcom,ipq5332-gcc.yaml | 6 +- .../devicetree/bindings/pci/qcom,pcie.yaml | 36 ++++ .../bindings/phy/qcom,uniphy-pcie-28lp.yaml | 65 +++++- arch/arm64/boot/dts/qcom/ipq5332-rdp441.dts | 74 +++++++ arch/arm64/boot/dts/qcom/ipq5332.dtsi | 188 +++++++++++++++++- drivers/clk/qcom/gcc-ipq5332.c | 7 +- drivers/pci/controller/dwc/pcie-qcom.c | 1 + .../phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c | 49 ++++- 8 files changed, 412 insertions(+), 14 deletions(-)